polarisking
Member
Easy to do in VBA, not so much in Excel.
Often, I put totals in Row 1 followed by a column header, and the data beginning in row 3. I'm constantly having to do something like =countif(A3:A10000,"ValueToTest") knowing in this instance there would never be anything near 10,000 rows. Seems like there should be a straightforward formula that would dynamically return the last non-blank row number. There's a formula on various Excel sites and blogs that works [=LOOKUP(2,1/(A:A<>""),ROW(A:A))], but it's just too bizarre and complex to put in front of standard Excel users.
Any ideas? I'd prefer nothing with either a hard-coded or dynamic named range. Just let the formula come back with the last row.
Thank you in advance
Often, I put totals in Row 1 followed by a column header, and the data beginning in row 3. I'm constantly having to do something like =countif(A3:A10000,"ValueToTest") knowing in this instance there would never be anything near 10,000 rows. Seems like there should be a straightforward formula that would dynamically return the last non-blank row number. There's a formula on various Excel sites and blogs that works [=LOOKUP(2,1/(A:A<>""),ROW(A:A))], but it's just too bizarre and complex to put in front of standard Excel users.
Any ideas? I'd prefer nothing with either a hard-coded or dynamic named range. Just let the formula come back with the last row.
Thank you in advance