Looking for non-array sequential numbering skipping blank rows. The non-array formula should look into column A and Column B and add numbers skipping blank cells. Desired outcome is in column C. See attached sample file.
Thanks
Looking for non-array sequential numbering skipping blank rows. The non-array formula should look into column A and Column B and add numbers skipping blank cells. Desired outcome is in column C. See attached sample file.
Thanks
Put this formula in C2:
=IF(A2&B2="","",MAX(C$1:C1)+1)
then copy down as required.
Hope this helps.
Pete
Pete_UK: Thanks for the proposed solution. I would like to use this formula =IF($A2&$B2="","",TEXT(IFERROR(LOOKUP(9.99999999999999E+307,$C$1:C1+0),0)+1,"0000")). However, it is displaying leading zeros before the actual numbers.
Please assist in adjusting the formula not to show leading zeros. See attached file showing the leading zeros the above formula is displaying.
Thanks
Can't help wondering why. ButFormula:Please Login or Register to view this content.
One, it depends on the values calculated in column C. And two, it produces a Text value. Why?
Trevor Shuttleworth - Retired Excel/VBA Consultant
I dream of a better world where chickens can cross the road without having their motives questioned
'Being unapologetic means never having to say you're sorry' John Cooper Clarke
Way longerAnd three, it is longer to type !!
My mistake. It doesn't have to be dependent on column C, I was just confused by the example with the formula in column D.
So, have it your way, but you probably need this for a numeric output:
Formula:Please Login or Register to view this content.
And it doesn't really need to be the biggest number that Excel can handle - a million would do.
Pete
TMS: Excellent work, TMS! Thanks for the rep.
Pete_UK: Great solution, Pete_UK! Thanks
Cell C2 formula , Drag down
Formula:Please Login or Register to view this content.
Last edited by wk9128; 01-29-2023 at 05:36 AM.
You're welcome. Thanks for the rep.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks