Excel- any formula to return last number in a column

Ebraham

Board Regular
Joined
Mar 21, 2015
Messages
215
Hi.


In sheet one. In cell b20. I want to return last number of column d of sheet2.
 
Hi.


In sheet one. In cell b20. I want to return last number of column d of sheet2.

B20, just enter:
Rich (BB code):

=LOOKUP(9.99999999999999E+307,Sheet2!D:D)
which delivers the last numeric value from column D.

In case the last text is wanted...
Rich (BB code):

=LOOKUP(REPT("z",255),Sheet2!D:D)
If column D contains text and numbers and you want the last value (text or number, whichever is the case)...

B19:
Rich (BB code):

=LOOKUP(REPT("z",255),Sheet2!D:D)
B20:
Rich (BB code):

=IF(ISNA(B19),
    LOOKUP(9.99999999999999E+307,Sheet2!D:D),
    INDEX(Sheet2!D:D,MAX(MATCH(REPT("z",255),Sheet2!D:D),
    MATCH(9.99999999999999E+307,Sheet2!D:D)

The foregoing set ups are fast as intended.

See for more information: http://www.mrexcel.com/forum/excel-questions/102091-9-9999999-a.html.
 
Upvote 0

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Forum statistics

Threads
1,215,429
Messages
6,124,837
Members
449,193
Latest member
MikeVol

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