![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Join Date: Jun 2008
Location: Santa Barbara, CA
Posts: 93
|
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?
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Jun 2002
Location: UK 51°34'30.38"N, 0°24'59.13"W
Posts: 24,011
|
To return the last numeric value in column A of Sheet1
=VLOOKUP(9.99999999999999E+307,Sheet1!A:A,1) |
|
|
|
|
|
#3 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Banned
Join Date: Jul 2006
Location: Northeast Pennsylvania
Posts: 3,656
|
HRSylver,
Jan2008
Excel tables to the web >> Excel Jeanie HTML 4 Feb2008
Excel tables to the web >> Excel Jeanie HTML 4 Summary
Excel tables to the web >> Excel Jeanie HTML 4 Have a great day, Stan |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
|
|
#4 |
|
Join Date: Jun 2008
Location: Santa Barbara, CA
Posts: 93
|
You guys are AWESOME
|
|
|
|
|
|
#5 |
|
Join Date: Dec 2005
Location: Seattle, WA
Posts: 321
|
Dear HRSylver,
=LOOKUP(9.99999999999999E+307,Items!A:A) will work also.
__________________
Sincerely, Mike Gel Girvin |
|
|
|
|
|
#6 |
|
MrExcel MVP
Join Date: Apr 2003
Location: Alaska
Posts: 7,410
|
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) Code:
=VLOOKUP(9.99999999999999E+307,INDIRECT(B1&"!A:A"),1) Hope it helps.
__________________
We sent 3 chimps up in a 3.7 billion dollar spacecraft.... What could go wrong??? |
|
|
|
|
|
#7 |
|
Join Date: Jun 2008
Location: Santa Barbara, CA
Posts: 93
|
|
|
|
|
|
|
#8 |
|
MrExcel MVP
Join Date: Apr 2003
Location: Alaska
Posts: 7,410
|
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??? |
|
|
|
|
|
#9 |
|
Join Date: Jun 2008
Location: Santa Barbara, CA
Posts: 93
|
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...
|
|
|
|
|
|
#10 |
|
MrExcel MVP
Join Date: Apr 2003
Location: Alaska
Posts: 7,410
|
Yep, that's what I'm all about.
__________________
We sent 3 chimps up in a 3.7 billion dollar spacecraft.... What could go wrong??? |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|