Last item in column

Metal

New Member
Joined
Sep 22, 2002
Messages
2
This looks like it should be really easy - but I can't do it.

Say Column A has rows of data (which may be text or numeric). Is there a formula to return the value in the last row of column A(whichever that may be)?

Preferably a formula rather than VBA!

Many thanks!!
 

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.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
( 1.) Activate Insert|Name|Define.
( 2.) Enter BigNum as name in the Names in Workbook box.
( 3.) Enter the following in the Refers to box:

9.99999999999999E+307

( 4.) Click OK.

If col A is of numeric type, use:

=LOOKUP(BigNum,A:A)

If col A is of type text, use:

=INDEX(A:A,MATCH(REPT("z",90),A:A))

If col A is of type mixed, use:

=INDEX(A:A,MAX(MATCH(BigNum,A:A),MATCH(REPT("z",90),A:A)))
 

Metal

New Member
Joined
Sep 22, 2002
Messages
2
Aladin

I've absolutely NO idea where that name range comes from (or how the formulae work with it) but that all worked perfectly.

Thanks v much!!
 

Forum statistics

Threads
1,144,052
Messages
5,722,249
Members
422,418
Latest member
Chipsy

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
Top