Find last value in column >0

ForrestGump01

New Member
Joined
Mar 15, 2019
Messages
23
Office Version
  1. 365
Platform
  1. Windows
Hello all,

I'm trying to find the last value in a column that is greater than one. I've got a bunch of columns each with 110 rows of expense data. Each column is a different product type, and each row is a date of the price. Some dates have a zero for the input, as there was no charge on that date.

I'm hoping to write a formula to find the last number in the range, that is greater than zero for each column, that is to say I'm looking for the most recent price per charge. Any suggestions?
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Last value in a column greater than 1 or greater than 0? The title suggests greater than 0 but you have stated greater than one in the description.

Try this for column A anyway:
=LOOKUP(2,1/(A:A>0),A:A)

Or if you need greater than 1:
=LOOKUP(2,1/(A:A>1),A:A)

EDIT: If text underneath is skewing these formulas then try incorporate ISNUMBER in to the formula as such:

=LOOKUP(2,1/(ISNUMBER(A:A)*(A:A>0)),A:A)

Or change the range to a more suitable range instead of the entire column
 
Last edited:
Upvote 0
Last value in a column greater than 1 or greater than 0? The title suggests greater than 0 but you have stated greater than one in the description.

Try this for column A anyway:
=LOOKUP(2,1/(A:A>0),A:A)

Or if you need greater than 1:
=LOOKUP(2,1/(A:A>1),A:A)

EDIT: If text underneath is skewing these formulas then try incorporate ISNUMBER in to the formula as such:

=LOOKUP(2,1/(ISNUMBER(A:A)*(A:A>0)),A:A)

Or change the range to a more suitable range instead of the entire column


Perfect! The lookup formula worked exactly as needed. Thank you.

For clarity, I was intending to say that I'm looking for values greater than zero.

Cheers!
 
Upvote 0

Forum statistics

Threads
1,214,885
Messages
6,122,085
Members
449,064
Latest member
MattDRT

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