Sumif using a list of criteria

bob2020

New Member
Joined
Oct 30, 2019
Messages
4
I was wondering if there was a formula that I could use to sum a data file using the below columns as the lookup, I would also like to use another criteria in addition to this.

I.e If any of the numbers in column A appears in raw data file, sum the respective number in another column


ABCDE
5616209887
427965
695546110848464
854205331550
484



<tbody>
</tbody>

Thanks in advance
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
[FONT=&quot]The columns B to E can be ignored as I don't think it's actually relevant to the formula, the actual formula I was thinking of was:

=SUMIFS(sum_range, criteria_range1, criteria1, [criteria_range2, criteria2], ...)

However I would like the criteria1 to be replaced with a column of data.

Hope that makes more sense[/FONT]
 
Upvote 0
I was expecting a more verbose description of the problem, possibly with expected output.
 
Upvote 0
I was expecting a more verbose description of the problem, possibly with expected output.


Column A has a number of references. I want the sumif formula to search through a large data dump and sum only the values that corresponds to the references in that list.

e.g. So for example, I want to look up references in column A in the data dump and sum the corresponding figures

Data dump

ABCD
1ReferencesAmount
250650
3496480
4641642
55610
6258
7565

<tbody>
</tbody>


The result would be 15 (Cell B5 + B7)

Hope that makes it clearer

Thanks
 
Upvote 0
As you said just normal SUMIFS should do it

in Sheet1!F2
=SUMIFS('Data dump'!B$2:B$7,'Data dump'!!A$2:A$7,A2)
and copy down
 
Upvote 0
How about


Book1
ABCDEI
1ReferencesAmountRef
2506506556
3496480506
4641642
55610
6258
7565
8
work 2
Cell Formulas
RangeFormula
D2{=SUM(SUMIF(A2:A7,I2:I3,B2:B7))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Thank you both for your response.

I tried your formula but unfortunately it didn't work with my data. I played around with it a bit more and using =SUMPRODUCT(SUMIFS worked for me
 
Upvote 0
Glad you got it working & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,214,605
Messages
6,120,476
Members
448,967
Latest member
visheshkotha

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