I need to find the last cell in range AM3:BD3 with data (text or number) and get the value from the cell above.
So if the last cell with data in range AM3:BD3 is AP3, get value from cell AP2.
I need to find the last cell in range AM3:BD3 with data (text or number) and get the value from the cell above.
So if the last cell with data in range AM3:BD3 is AP3, get value from cell AP2.
Would there be gaps in the data (i.e. blank cells mid range)?
try this array formula
=INDEX(2:2,MAX((AM3:BD3<>"")*COLUMN(AM3:BD3)))
Confirm with ctrl+Shift+Enter and not just Enter
or this non-array formula
=LOOKUP(2,1/(AM3:BD3<>""),AM2:BD2)
Life's a spreadsheet, Excel!
Say thanks, Click *
If its VBA code you are after, try:
Please Login or Register to view this content.
Regards,
Rudi
Well explained in post #4 of this thread
http://www.excelforum.com/excel-gene...-in-range.html
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks