LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Combining VLOOKUPS?

Removing the parenthesis worked. Thanks much

"Harlan Grove" wrote:

PT40 wrote...
I am trying to tally the fields in several sheets of the same
workbook. I can use either hidden fields or link one cell to a
hidden sheet with several lookups, but would really like to put it
all in one cell. I've put an example below of what I would like to
do. Is there an easy way to go about this? I'd like to tally the
cells of 7 sheets manytimes over.

....

You have several more left parentheses than right parentheses, so I've
removed the unnecessary ones.

=VLOOKUP(C4, '2-2'!$C$4:$J$25, 5, FALSE)
+VLOOKUP(C4, '2-3'!$C$4:$J$25, 5, FALSE)
+VLOOKUP(C4, '2-4'!$C$4:$J$25, 5, FALSE)
+VLOOKUP(C4, '2-5'!$C$4:$J$25, 5, FALSE)
+VLOOKUP(C4, '2-6'!$C$4:$J$25, 5, FALSE)
+VLOOKUP(C4, '2-7'!$C$4:$J$25, 5, FALSE)
+VLOOKUP(C4, '2-8'!$C$4:$J$25, 5, FALSE)


Your ranges aren't too big, and if there were only one instance of the
value of C4 in the first columns of each range on the different
worksheets, you could use

=SUM(SUMIF(INDIRECT("'"&{"2-2","2-3","2-4","2-5","2-6","2-7","2-8"}
&"'!C4:C25"),C4,INDIRECT("'"&{"2-2","2-3","2-4","2-5","2-6","2-7",
"2-8"}&"'!G4:G25")))

Better, enter the worksheet names in a range, name the range W, and
shorten this formula to

=SUM(SUMIF(INDIRECT("'"&W&"'!C4:C25"),C4,INDIRECT( "'"&W&"'!G4:G25")))

If your ranges were big or you could have multiple instances of the C4
value in some of these ranges, summing separate VLOOKUP calls is
optimal.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUPS SLONDON Excel Discussion (Misc queries) 1 October 26th 07 04:32 PM
Vlookups UlvaZell Excel Worksheet Functions 4 August 30th 07 09:00 PM
vlookups T Excel Discussion (Misc queries) 4 May 13th 06 12:15 PM
Vlookups Shaya M Excel Discussion (Misc queries) 3 May 27th 05 07:17 AM
vlookups Valerie S. Excel Worksheet Functions 0 January 28th 05 12:55 AM


All times are GMT +1. The time now is 04:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"