column formula

sdc83

New Member
Joined
Nov 26, 2020
Messages
14
Office Version
  1. 365
Platform
  1. Windows
hi, I'm trying to figure out a formula to show the last entry from K5:K300 in cell K301, the range of cells will contain a numerical value. this range of cells also have SUM formulas and all variants of formulas I've tried returns 0 in cell K301 which I presume is due to the formulas which must be there. how can I have cell K301 show the last number which has been calculated and ignore the empty cells that the SUM formula has not calculated anything yet.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi,

For last Numeric value in Column use one of these:

Excel Formula:
=LOOKUP(2,1/K5:K300,K5:K300)

Excel Formula:
=LOOKUP(9.99999999999999E+307,K5:K300)

Edit: Typo in first formula, changed 1 to 2
 
Last edited:
Upvote 0
Hi,

For last Numeric value in Column use one of these:

Excel Formula:
=LOOKUP(1,1/K5:K300,K5:K300)

Excel Formula:
=LOOKUP(9.99999999999999E+307,K5:K300)
thats worked perfect, thank you very much.
 
Upvote 0
You're welcome, thanks for the feedback.

I had a typo in the first formula, changed the 1 to 2.
 
Upvote 0
thats worked perfect, thank you very much.
Not sure which one you chose, but I would definitely recommend the second one. I don't know if it would be possible with your data but the first formula would give incorrect results if the last number in the column happened to be anywhere in the range 0 <= number < 1
Example

21 02 21.xlsm
KLM
535
650.4
70.4
8
Last num
Cell Formulas
RangeFormula
M5M5=LOOKUP(2,1/K1:K300,K1:K300)
M6M6=LOOKUP(9.99999999999999E+307,K1:K300)
 
Upvote 0

Forum statistics

Threads
1,214,945
Messages
6,122,395
Members
449,081
Latest member
JAMES KECULAH

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