SUMIFS & AND Function

CassieL

Board Regular
Joined
Jun 14, 2016
Messages
90
Hi everyone,
I have a condition that I want to use sumifs with and funtion.
Ex: The dropdown list (A2) is A, sumifs criteria of "123" and "456"

I have tried separate the criteria to 2, "sumifs(X:X,A2,"123",A2,"456) but does not work. Please advised and I appreciate your help!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Your description isn't clear, but I'm guessing you want to sum
Column X, if column A is 123 or 456

Try

=SUM(SUMIF(A:A,{"123","456"},X:X))
 
Upvote 0
Sorry, It does not work. I have multiples criteria, so I will need sumifs. One of the criteria within sumifs has the condition above and yes, column X is the sum range.
 
Upvote 0
It's still not clear, can you give a more detailed description?

I want to sum column ??
If Column ?? = ??
AND
If Column ?? = ??
 
Upvote 0
If A2 = A, sumifs(X:X,D:D,"123""456") --> this is what I have in mine.

So, if cell = A2, when A2(drop down list) is A, I want to sum in column X with cell that contains "123" and "456" in column D.

Im sorry for the confusion.
 
Upvote 0
Yes, it works! I have multiples criteria, so I incorporate the sum(sumifs(...), the trick is the {} sysmbol! THANK YOU SO MUCH!!
 
Upvote 0
You didn't post multiple criteria.
You described 2 criteria 'On The Same Column', that's really 1 set of criteria (and it's an OR not an AND)

Anyway, You're welcome. Glad to help.
 
Upvote 0

Forum statistics

Threads
1,214,611
Messages
6,120,510
Members
448,967
Latest member
screechyboy79

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