SUMIFS With Multiple Criteria In One Column

jski21

Board Regular
Joined
Jan 2, 2019
Messages
162
Office Version
  1. 2016
Platform
  1. Windows
Good day,

Using the following formula with success:

=SUMIFS(PSData!$J:$J,PSData!$K:$K,">=4/1/2024",PSData!$K:$K,"<=4/30/2024",PSData!$E:$E,"=RES602782",PSData!$Q:$Q,"=HCM")

However, I've found to truly get it accurate in terms of pulling in the right data, I need to have the data in Column E:E pull in "RES602782" AND "RES602497".

How best to add this to the formula or do I need to go in another direction?


Thanks!


jski
 
How about
Excel Formula:
=sumproduct(SUMIFS(PSData!$J:$J,PSData!$K:$K,">=4/1/2024",PSData!$K:$K,"<=4/30/2024",PSData!$E:$E,"{RES602782","RES602497"},PSData!$Q:$Q,"=HCM"))
 
Upvote 0
Thanks. Getting an error at RES602497?

=sumproduct(SUMIFS(PSData!$J:$J,PSData!$K:$K,">=4/1/2024",PSData!$K:$K,"<=4/30/2024",PSData!$E:$E,"{RES602782","RES602497"},PSData!$Q:$Q,"=HCM"))
 
Upvote 0
Change
Code:
"{RES602782", "RES602497" }
on
Code:
{"RES602782", "RES602497" }
 
Upvote 0
Solution
That did it. Thanks Fluff and Sergius. Here's the final solution for the record:

=SUMPRODUCT (SUMIFS (PSData!$J:$J, PSData!$K:$K,">=4/1/2024", PSData!$K:$K,"<=4/30/2024",PSData!$E:$E, {"RES602782","RES602497"}, PSData!$Q:$Q, "=HCM"))
 
Upvote 0

Forum statistics

Threads
1,226,795
Messages
6,193,046
Members
453,772
Latest member
aastupin

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