Referencing the last input of a column

Ody

Board Regular
Joined
Oct 14, 2010
Messages
215
Hello all,

I'm stuck trying to figure out how to dynamically reference the last input of a column on my roll up sheet (i.e. there are multiple sheets). I know the answer is simple but it escapes me presently.

Thanks for the help
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Is the data numbers or text, or mixture of both?

If Numbers, use
=LOOKUP(9.99999999999999E+307,A:A)

If it's Text, use
=LOOKUP(REPT("Z",255),A:A)

hope that helps.
 
Upvote 0
Thanks for the quick response. The data is numerical.

I tried your lookup solution with out any luck. I used the following: =lookup(9.999999999999999,Sheet1!G:G) and received the #N/A error.

Suggestions?
 
Upvote 0
That means the numbers in column G are not really numbers
They are "Numbers Stored As Text"

Try the second one with REPT("Z",255)


Or convert the values in column G to real numbers..
Copy any blank cell, highlight column G, Right Click - Paste Special -Values - Add
 
Upvote 0
Thanks for the update.

The numbers aren't stored as text but in trying to get your solution to work I considered trying an index formula and that solved my dilemma.

Thanks for your help! :)
 
Upvote 0
Sure! I used the following:

=INDEX(A:A,COUNT(A:A))

Just edit for sheet names(and appropriate columns) as necessary.
 
Upvote 0
Wait, I see the problem...

You said
I used the following: =lookup(9.999999999999999,Sheet1!G:G)

However, my suggestion was

=LOOKUP(9.99999999999999E+307,A:A)


The difference between
9.99999999999999E+307
and
9.999999999999999

is enormous.
 
Upvote 0
You know what, I forgot the "E" in 9.9999999+307 when I used the formula. After making that adjustment it works, lol. So i guess that's 2 solutions!

Thanks again!
 
Upvote 0
Yes, 2 possible solutions.

However, the lookup will be more robust.
Indexing with Count will be eroneous if there are blanks in the range..


Hope that helps..

Excel Workbook
ABCD
1HeaderLookupIndex/count
2420377443
3435
4
5
6443
7778
8
9175
10377
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,289
Members
452,902
Latest member
Knuddeluff

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