pick up the last entry in a coloum which is not zero

shyam

Active Member
Joined
Jul 18, 2005
Messages
302
I have details as follows:

row 1 1
row 2 2
row 3 3
row 4 4
row 5 5
row 6 6
row 7 0
row 8 0

=LOOKUP(9.999999999999E+306,B:B)

With the above formula we can pick up the last entry, i.e. 0, but if the last entry in that column happens to be 0, then I need to pick up the previous entry which is not 0. The answer in the above problem would be 6 of row 6.

Would appreciate, if someone would revert back on the above.

Tks n rgds
shyam
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Define BigNum as reffering to:

=9.99999999999999E+307

Then invoke:

=LOOKUP(BigNum,1/(B2:INDEX(B:B,MATCH(BigNum,B:B))),B2:INDEX(B:B,MATCH(BigNum,B:B)))
 
Upvote 0
Dear Mr. Kris

Your formula is working fine... could you please explain,

1. what does 2,1/ in your formula is referring to ?. and
2. in case if I do not give the exact range and want to refer to the whole column, then what would the syntax be.

tks n rgds
shyam
 
Upvote 0

Forum statistics

Threads
1,214,838
Messages
6,121,885
Members
449,057
Latest member
Moo4247

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