Why can't I sum several vlookups ??

F

Friday

Currently, I can use vlookup to find the value in a cell for any w'sheet.

Why can't I sum a series of vlookups? Each vlookup would scan a range of
sheets, then find the correct row (if it exists, if not skip this sheet), and
these values could be summed.

=SUM(FIRST:LAST!B3) Works, but does not allow any variation among rows.
To use this, I have to match the rows of a hundred sheets!!

=VLOOKUP(A6,FIRST:LAST!A4:D100,5,FALSE) Does not give an error, but does
not give a value either.

=VLOOKUP(A6,'*',A4:D100,5,FALSE) Same result.

Could I use something like =SUM(VLOOKUP(............) ?

I tried asking for advice and got some ideas that work IF I had a PH.D. in
Excel.

Isn't there a simple way to sum a value, in a range of sheets, where the
value appears in different rows in each sheet, but the same column?

IF COLUMN A CONTAINS A UNIQUE VALUE (ie: DATE or PART#) TO SEARCH.
IF THE COLUMNS IN EACH SHEET ARE THE SAME.

Right now I'm guessing this can only be done by very smart people who make
their living teaching Excel or writing books about Excel.



----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/com...dg=microsoft.public.excel.worksheet.functions
 
J

Jacob Skaria

Try the below which will lookup the value in C1 in Sheet1,Sheet2 ColA and add
the corresponding values in ColB

=SUMPRODUCT(SUMIF(INDIRECT("'"& {"sheet1","sheet2"} &"'!A:A"),C1,
INDIRECT("'"& {"sheet1","sheet2"} &"'!B:B")))

'To try with more sheets Sheet1, Sheet2,Sheet3....Sheet25
=SUMPRODUCT(SUMIF(INDIRECT("'"&"sheet"&ROW(INDIRECT("1:25"))&
"'!A:A"),C1,INDIRECT("'"&"sheet"&ROW(INDIRECT("1:25"))&"'!B:B")))

If this post helps click Yes
 
P

Peo Sjoblom

There is no simple way of doing this since Excel is quite limited using
multiple sheets.

There are some quite complicated methods of getting this done in one fell
swoop, however you seem to have been given some advice in this regard
already.

Btw, why not use a summary sheet where you pull the vlookup to from multiple
sheets and then sum the summary sheet. Other methods require very
complicated formulas
like this


=VLOOKUP(A2,INDIRECT("'"&INDEX($H$2:$H$10,MATCH(TRUE,COUNTIF(INDIRECT("'"&$H$2:$H$10&"'!B2:B100"),A2)>0,0))&"'!B2:F100"),3,0)


array entered where you put the sheet names in H2:H10, where A2 is the
lookup value and B2:F100 the lookup table

--


Regards,


Peo Sjoblom
 
F

Friday

JACOB,
Thank you for your suggestion. However, your solution is exactly what I was
referring to in my post when I previously received suggestions which required
a PH D in Excel. I don't know what half that stuff means. I can't rename my
sheets if I understand you.

Isn't there a simple & direct way to sum a series of vlookups? That's why I
am making this a suggestion for Microsoft this time.
Steve
 
J

Jacob Skaria

Well.. you can rename your sheets..Specify the sheetnames in the range J1:J5
(no blanks please) and try the below formula

=SUMPRODUCT(SUMIF(INDIRECT("'"& J1:J5 &"'!A:A"),C1,
INDIRECT("'"& J1:J5 &"'!B:B")))

If this post helps click Yes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top