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

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
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.
 
Upvote 0
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)
 
Upvote 0
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...
 
Upvote 0
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?
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,213
Members
448,554
Latest member
Gleisner2

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