My spreadsheet has values in columns A and B. Column A has values only in some rows and column B has values in all rows. I need to count the number of rows between values in column A. If it helps to make sense, these are families with the family name in column A and the first names in column B. I'm trying to calculate family sizes.
After a lot of thinking about it, I figured the easiest way to do it is with this MATCH function: =MATCH(TRUE,LEN(A2:A$12)<>0,0) in C1 and dragged down. Of course I'll also add an IF function to return the value only when wanted, but for now I'm just concerned with this part. I've tried a number of different permutations of this but it always returns an error, either #VALUE or #N/A. However, click the fx button to look at the formula result, it looks right and gives the right result. I've attached an example.
Can someone explain the error, or at least point out my error? Thanks.
ETA: I titled this as finding the first non-blank cell, but now that I think about it it should be something about counting cells up to the first non-blank cell. My original idea about how to solve this required finding the first non-blank cell, but I guess this method doesn't really require that. Sorry about the not-so-accurate title.
Bookmarks