Googlesheet APIv4 getting empty cells

后端 未结 9 1565
我寻月下人不归
我寻月下人不归 2021-01-03 22:03

I have a googlesheet where a column may contain no information in it. While iterating through the rows and looking at that column, if the column is blank, it\'s not returni

9条回答
  •  半阙折子戏
    2021-01-03 22:22

    I know that this is super late, but just in case someone else who has this problem in the future would like a fix for it, I'll share what I did to work past this. What I did was increase the length of the range of cells I was looking for by one. Then within the Google Spreadsheet that I was reading off of, I added a line of "."s in the extra column (The column added to the array now that the desired range of cells has increased). Then I protected that line of periods so that it can't be changed from the "." This way gives you an array with everything you are looking for, including null results, but does increase your array size by 1. But if that bothers you, you can just make a new one without the last index of the arrays.

提交回复
热议问题