Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > How to find last row with number in a column in Excel?

How to find last row with number in a column in Excel?
Thread Tools
timmerk
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
Mar 3, 2007, 07:22 PM
 
I have an Excel spreadsheet that I'm using to monitor my weight loss. In one column, I enter my weight each day; one day per row. I want to add a "Lost so far:" field, but not sure of a function in Excel that I can specify a range of cells or column and it spits how the last row with a number in it. Any ideas?

Thanks!
     
moonmonkey
Professional Poster
Join Date: Jan 2001
Location: Australia
Status: Offline
Reply With Quote
Mar 3, 2007, 08:28 PM
 
Why not just calculate the sum of the column for "lost so far:"?

Also try to swap bread and pasta for vegetables, and make sure you eat something for breakfast!
     
Shades of Gray
Dedicated MacNNer
Join Date: Jun 2000
Status: Offline
Reply With Quote
Mar 3, 2007, 10:00 PM
 
This will tell you row of the last cell used in Column B

=MATCH(9.99999999999999E+307,B:B)


And this will tell you the value of that last cell

=INDEX(B:B,MATCH(9.99999999999999E+307,B:B))

and this will
Ignore the argumentative nature of this poster. He is old and can't engage in meaningful dialog
very long. Therefore, management asks that you at least humor him. Thanks.
     
timmerk  (op)
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
Mar 3, 2007, 11:02 PM
 
moon monkey: its not a column - its just one field that shows how much i lost all together

shades of gray - thanks! what were you going to say after the last "and this will"?
     
Shades of Gray
Dedicated MacNNer
Join Date: Jun 2000
Status: Offline
Reply With Quote
Mar 4, 2007, 04:56 PM
 
I think I was combining two thoughts, and forgot to erase the last part.

But that happens when you are an old codger.

So, were those two formulas what you needed?
Ignore the argumentative nature of this poster. He is old and can't engage in meaningful dialog
very long. Therefore, management asks that you at least humor him. Thanks.
     
timmerk  (op)
Mac Elite
Join Date: Jan 2001
Status: Offline
Reply With Quote
Mar 4, 2007, 09:40 PM
 
Well "=INDEX(B:B,MATCH(9.99999999999999E+307,B:B))" worked in Google Spreadsheets once, but then when i tried typing another number into the next empty row, it showed an error of "N/A Did not find value 999999999...." and so on. Any ideas?

Thanks!
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 12:09 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,