Formula to find last row in set of formulas that has a result in it?

tonywatsonhelp

Well-known Member
Joined
Feb 24, 2014
Messages
3,212
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hi Everyone,

Ok brains gone dead pleae help.

Column P has formulas in rows 2:2000
many formulas return a "" or a zero. but I want the last row number that has something in it.
I say something as it can be a negative or positive or a text.

please help if you can

Thanks

Tony
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hello Tony,

will this work?

=LOOKUP(2,1/(P1:P2000<>""),P1:P2000)

May need to have data sorted by smallest to largest to make it work?
 
Upvote 0
Hello Tony,

will this work?

=LOOKUP(2,1/(P1:P2000<>""),P1:P2000)

May need to have data sorted by smallest to largest to make it work?
No, the data does not have to be sorted in any way... that formula returns the last displayed (non-error) value no matter what it is regardless of the order of the listed items.
 
Upvote 0

Forum statistics

Threads
1,226,112
Messages
6,189,039
Members
453,521
Latest member
Chris_Hed

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