SUMIFS when criteria is a comma separated list

dha17

Board Regular
Joined
May 17, 2004
Messages
62
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to perform a SUMIFS where one criteria is a comma separated list. It is a simple formula when the criteria is a single value (see C4 below), but how do I perform the SUMIF in C2 when the criteria is comma separated (A2)?

1634920966727.png
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Try
Excel Formula:
=SUM(SUMIFS(C8:C13,A8:A13,FILTERXML("<k><m>"&SUBSTITUTE(A2,", ","</m><m>")&"</m></k>","//m"),B8:B13,B2))
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0
Works perfectly. Thank you.
@dha17 - in your future questions, please mark the post that answered your question instead of your feedback post as it will help future readers.
There is no further action necessary for this thread as I already switched the marked solution post.
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,834
Members
449,051
Latest member
excelquestion515

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