I'm iterating over a column in a sheet, which contains merged cells spread over a few rows. E.g.
|-----
row 1 | 5
|-----
row 2 |
row 3 | 3
row 4 |
|-----
row 5 |
|-----
row 6 | 1
|-----
I use merging here to show a single value shared by multiple cells.
The problem is that when I'm trying to collect the data and I'm using Range.getValues()
only the first cell in the merged range has a non-empty value (in the example ['5','3','','','','','1']
), so I can't know which cells are actually empty and which ones belong to a merged range.
The only workaround I found here was color everything and look at the color of the cells (but this is super ugly).
Any nice way so solve this problem?