
Originally Posted by
tays01s
Now this row's cells, generally contains text, so most of the time it's OK, but there are exceptions.
The suggestions in posts 3 & 4 will tell you what column the last number is in but not the last text or the last of either if the type is unknown.
Your original formulas were sort of on the right track but you don't want the MATCH function but instead introduce the COLUMN function.
So you could try
Formula:
=LOOKUP(2,1/(3:3<>""),COLUMN(3:3))
However, I would generally recommend not to use the whole row reference. I would pick a smaller range but make sure it would be big enough to cover any data that you might have.
For example it might be
Formula:
=LOOKUP(2,1/(A3:AZ3<>""),COLUMN(A:AZ))
Another function option would be
Formula:
=AGGREGATE(14,6,COLUMN(A:AZ)/(A3:AZ3<>""),1)
Bookmarks