find and return last cell in column with data (ignoring those with no data inbetween)

Flick558

New Member
Joined
Apr 17, 2006
Messages
26
Hi,
I need to write a conditional formula that will look up in a 2nd worksheet the last coloumn with data (note that there will be some coloumns in the row that will have data and some that will be blank, I need the last column for that specific row to be the return result)

Thanks!
 
Thanks! that seems to work, is there a way if all cells are blank that the formula can return the result "no record of issue"

Wrap it into an IFERROR call...

=IFERROR(LOOKUP(9.99999999999999E+307,1/(1-(INDEX(Sheet1!C:E,MATCH(A2,Sheet1!A:A,0),0)="")),INDEX(Sheet1!C:E,MATCH(A2,Sheet1!A:A,0),0)),"no record of issue")
 
Upvote 0

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi Aladin, I'd like to add another component to this spreadsheet, I would like to add another cell with a formula to return the title of the column with the last cell of data thanks!
 
Upvote 0
Hi Aladin, I'd like to add another component to this spreadsheet, I would like to add another cell with a formula to return the title of the column with the last cell of data thanks!

I suppose you mean...

D2, copied down:
Rich (BB code):
=IFERROR(LOOKUP(9.99999999999999E+307,1/(1-(INDEX(Sheet1!C:E,MATCH(A2,Sheet1!A:A,0),0)="")),
  Sheet1!$C$1:$E$1),"no record of issue")
 
Upvote 0

Forum statistics

Threads
1,215,343
Messages
6,124,405
Members
449,157
Latest member
mytux

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top