SumIf using vlookup with multiple matches

elfrider

New Member
Joined
Aug 21, 2014
Messages
22
Hi,

I'm looking to sum the values in one column (column C) based on multiple matches from a vlookup in the table B1:C100. My vlookup is definitely working, but my sumif statement is returning incorrect values:

=SUMIF(B1:C100, VLOOKUP("LookupValue",B1:C100,2,FALSE))

Any ideas on this one please?

Thanks.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Considering your example and what i suppose

SUMIF(C1:C100, VLOOKUP("LookupValue",B1:C100,2,FALSE), SUMRANGE)

Please select Sumrange.


Your formula has various issues
1. criteria range cannot be two range (B1:C100)
2. You have not entered the last Argument i.e Sum Range
3.
I'm looking to sum the values in one column (column C)

I am not able to understand the Line because in vlookup you are taking C1:C100 as your lookup value which is the criteria.

Please reframe the question to make me understand better
 
Upvote 0
Hi,

Thanks for the reply,

I've changed the criteria range to be C1:C100. The values I'm looking to sum are also held within C1:C100 (I probably should have specified that instead just saying Column C).

What do I put in the SUM_RANGE argument? Is that not the same (C1:C100)?

My formula now looks like this but the result is the exact same as before:

SUMIF(C1:C100, VLOOKUP("LookupValue",B1:C100,2,FALSE), C1:C100)

Thanks.
 
Upvote 0
Can you post some sample data, including expected results, using the XL2BB add-in?
Also please update your account details to show which version of Excel you are using, as this affects which functions you have.
 
Upvote 0
Hi,

See attached image with sample data (can't install XL2BB as using my corporate laptop). I need my formula to return the value 23 by looking up 'LookupValue' in column B and adding the 4 matches from the Column C.

Thanks.
 

Attachments

  • example.JPG
    example.JPG
    32.9 KB · Views: 8
Upvote 0
How about
=sumifs(C1:C100,B1:B100,"LookupValue")

Also please update your account details to show your Excel version.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top