MrExcel Message Board


Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Dec 31st, 2008, 07:11 PM   #1
HRSylver
 
Join Date: Jun 2008
Location: Santa Barbara, CA
Posts: 93
Default Last cell of a column...

Hey all. I have a workbook with a sheet for each month of the year so far in 2008. At the end I have a summary sheet that gives me some specific information with what's on each month's pages... is there a way to write a formula on my summary page that will return the last cell of Column A in any given sheet? The last cell at the bottom of each Column is a distinct count. Under the summary for each month i want to return that number. It's easy enough to just say "='Jan2008'!A4150" and then "='Feb2008'!A4193" but I was hoping there was one formula i could write in both cells to get me what i want... Does this make sense?
HRSylver is offline   Reply With Quote
Old Dec 31st, 2008, 07:30 PM   #2
VoG
MrExcel MVP
 
VoG's Avatar
 
Join Date: Jun 2002
Location: UK 51°34'30.38"N, 0°24'59.13"W
Posts: 24,011
Default Re: Last cell of a column...

To return the last numeric value in column A of Sheet1

=VLOOKUP(9.99999999999999E+307,Sheet1!A:A,1)
VoG is offline   Reply With Quote
Old Dec 31st, 2008, 07:55 PM   #3
stanleydgromjr
Banned
 
Join Date: Jul 2006
Location: Northeast Pennsylvania
Posts: 3,656
Default Re: Last cell of a column...

HRSylver,

Jan2008

 A
1 
2 
33
44
55
66
77
88
99
1010
1111
1263.00
13 

Spreadsheet Formulas
CellFormula
A12=SUM(A3:A11)


Excel tables to the web >> Excel Jeanie HTML 4


Feb2008

 A
1 
2 
33
44
55
66
77
88
99
1010
1111
1212
1313
1414
1515
1616
1717
1818
1919
2020
2121
22228.00
23 

Spreadsheet Formulas
CellFormula
A22=SUM(A3:A21)


Excel tables to the web >> Excel Jeanie HTML 4


Summary

 ABC
1 Jan2008Feb2008
2   
3   
4   
5   
6   
7   
8Month Total63.00228.00
9   
10   
11   

Spreadsheet Formulas
CellFormula
B8=VLOOKUP(9.99999999999999E+307,Jan2008!A:A,1)
C8=VLOOKUP(9.99999999999999E+307,Feb2008!A:A,1)


Excel tables to the web >> Excel Jeanie HTML 4



Have a great day,
Stan
stanleydgromjr is offline   Reply With Quote
Old Dec 31st, 2008, 07:56 PM   #4
HRSylver
 
Join Date: Jun 2008
Location: Santa Barbara, CA
Posts: 93
Default Re: Last cell of a column...

You guys are AWESOME
HRSylver is offline   Reply With Quote
Old Dec 31st, 2008, 07:58 PM   #5
mgirvin
 
Join Date: Dec 2005
Location: Seattle, WA
Posts: 321
Default Re: Last cell of a column...

Dear HRSylver,

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

will work also.
__________________
Sincerely, Mike Gel Girvin
mgirvin is offline   Reply With Quote
Old Dec 31st, 2008, 08:07 PM   #6
HalfAce
MrExcel MVP
 
Join Date: Apr 2003
Location: Alaska
Posts: 7,410
Default Re: Last cell of a column...

To take this a step further...
Say your sheets are named "Jan", "Feb", etc.
And on your summary sheet you have the columns for each month with headers of "Jan" (In A1) and ,"Feb" (in B1), etc.
You can use the lookup formula that VoG supplied along with the indirect function to use the header of each column to specify the sheet that column should be referencing.
Try something like this.
(For the Jan value)...
Code:
=VLOOKUP(9.99999999999999E+307,INDIRECT(A1&"!A:A"),1)
(For the Feb value)...
Code:
=VLOOKUP(9.99999999999999E+307,INDIRECT(B1&"!A:A"),1)
Same formula for all columns except for the column reference in the indirect function.

Hope it helps.
__________________
We sent 3 chimps up in a 3.7 billion dollar spacecraft.... What could go wrong???
HalfAce is offline   Reply With Quote
Old Dec 31st, 2008, 08:09 PM   #7
HRSylver
 
Join Date: Jun 2008
Location: Santa Barbara, CA
Posts: 93
Default Re: Last cell of a column...

wow..... cool... Thanks!
HRSylver is offline   Reply With Quote
Old Dec 31st, 2008, 08:14 PM   #8
HalfAce
MrExcel MVP
 
Join Date: Apr 2003
Location: Alaska
Posts: 7,410
Default Re: Last cell of a column...

HRSylver,
You might want to check your thread again. You may have been replying to mgirvin as I was posting to your statement "one formula i could write in both cells to get me what i want"
__________________
We sent 3 chimps up in a 3.7 billion dollar spacecraft.... What could go wrong???
HalfAce is offline   Reply With Quote
Old Dec 31st, 2008, 08:19 PM   #9
HRSylver
 
Join Date: Jun 2008
Location: Santa Barbara, CA
Posts: 93
Default Re: Last cell of a column...

i did see yours my friend. I believe my wording was ill chosen. Everyone's formula worked fine. What i was looking for was a formula that I could put in so I wouldn't have to go check what the number was each time. (basically being lazy and not wanting to shift between 13 sheets...) you formula makes it all the more intense because I can just copy paste through the cells. Very nice...
HRSylver is offline   Reply With Quote
Old Dec 31st, 2008, 08:31 PM   #10
HalfAce
MrExcel MVP
 
Join Date: Apr 2003
Location: Alaska
Posts: 7,410
Default Re: Last cell of a column...

Quote:
Originally Posted by HRSylver View Post
...just copy paste through the cells...basically being lazy
Yep, that's what I'm all about.
__________________
We sent 3 chimps up in a 3.7 billion dollar spacecraft.... What could go wrong???
HalfAce is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting 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 On

Forum Jump


All times are GMT +1. The time now is 03:45 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
All contents Copyright 1998-2009 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes