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

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
( 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)))
 
Upvote 0
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!!
 
Upvote 0

Forum statistics

Threads
1,215,700
Messages
6,126,279
Members
449,308
Latest member
VerifiedBleachersAttendee

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