Find last number in a column...

Mykro

Active Member
Joined
Oct 17, 2002
Messages
337
I have workbook with 3 different sheets that are I'm using as check registers. I want to create a sheet that will tally the running balances across of each of those sheets. So the question is: How do I reference the last number in a column?

Thanks
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650

ADVERTISEMENT

Well this is an example I found using Google - I have a better example but that is on my home PC 7,000 miles away at present
http://www.grbps.com/Excel7.pdf


Good luck.
 

CPA Nerd

New Member
Joined
May 30, 2008
Messages
24
If you are just trying to show a running balance or the total of the checks written, there's an easier way than finding the last row. It involves Lists, Names and vlookup, so it might be easiest if you could post a sample of your data.
 

Mykro

Active Member
Joined
Oct 17, 2002
Messages
337

ADVERTISEMENT

=Lookup(9.99E+307,A:A)

to return the last numeric value in column A


This formula works.. There is a twist.. How about finding the last number in a column greater than zero?
 

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
That's only marginally more complicated (you must use specified ranges though, no whole col refs like A:A):

=LOOKUP(2,1/(A2:A1000>0),A2:A1000)
 

Mykro

Active Member
Joined
Oct 17, 2002
Messages
337
That's only marginally more complicated (you must use specified ranges though, no whole col refs like A:A):

=LOOKUP(2,1/(A2:A1000>0),A2:A1000)

Thanks Richard.. Question: How does the 2,1 work in the LOOKUP formula? Actually I am referencing Column U in my spreadsheet...
 

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
The (A2:A1000>0) produces an array (list) of True or Falses. 1/True = 1 but 1/False = Error (ie a DIV0! as FALSE is equivalent to 0). So you end up with a list of 1s and error values. The 2 gets looked up against this list and returns the last valid number 9which is a 1 - the errors are ignored). The value in the corresponding lookup range (also A2:A1000) is then returned.

Make sense?
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,194
Messages
5,835,914
Members
430,394
Latest member
Ace_Quared

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