Formula using values in a non-predictable number of cells above

excel71

New Member
Joined
May 31, 2011
Messages
9
Hello All,

I need help entering a formula that uses a value that is a certain (non consistent) number of cells above the cell where I need to enter the formula, and also is closest to that cell. For example, let's say that I have this in a column:

2
10
""
""
= formula

where "" means that those cells are empty. The formula will use the value 10 (which is the closest cell to the cell that contains the formula). How can I do this (using only formulas, no scripts)?

Thanks!!!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Hello All,

I need help entering a formula that uses a value that is a certain (non consistent) number of cells above the cell where I need to enter the formula, and also is closest to that cell. For example, let's say that I have this in a column:

2
10
""
""
= formula

where "" means that those cells are empty. The formula will use the value 10 (which is the closest cell to the cell that contains the formula). How can I do this (using only formulas, no scripts)?

Thanks!!!
If you want the last (bottom-most) numeric value in a range of cells:

Book1
A
293
317
470
5_
6_
7_
8_
9_
1070
Sheet1

Formula entered in A10:

=LOOKUP(1E100,A2:A8)
 
Upvote 0
Thanks T. Valko, the formula that I used includes your solution, an if, and an offset formulas too... and it works perfectly!!!

Thanks (again)!!!
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,351
Members
452,907
Latest member
Roland Deschain

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