r/learnprogramming • u/ceristo • Oct 11 '19
Excel Formula Question
I am trying to write a formula that will only return values associated with blank cells that are bounded by filled cells within a row.
| MONDAY | TUESDAY | WEDNESDAY | THURSDAY | FRIDAY |
|---|---|---|---|---|
| 1 | 1 | 1 | ||
| 1 | 1 | 1 | ||
| 1 | 1 | 1 | 1 | |
| 1 | 1 |
In the table above, this formula would return the days that are blank AND bounded by 1's. So for row 2&4, the formula would return a blank cell. However, for row 3, it would return wednesday and thursday, and for row 5 it would return tuesday, wednesday, and thursday as those cells are both blank and bounded by 1's. The formula does not have to return the day, but just some information that could link to the number and position of 'bounded blanks' for each row. I am trying to find these 'gaps' for 500k+ rows of data, so doing this manually is kind of out of the question
View all comments
Show parent comment
1
u/ceristo Oct 11 '19
So, unfortunately, the example I gave above is a simplified version of my actual task that is just the same principle. The real dataset has 24 columns, which I thought would be excessive to attach as a table here.