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
 

Some videos you may like

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

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?
 

Watch MrExcel Video

Forum statistics

Threads
1,122,469
Messages
5,596,325
Members
414,053
Latest member
Dual Showman

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