Using one cell (text separated by comma) as an array in SUMIFS formula

danhendo888

Board Regular
Joined
Jul 15, 2019
Messages
167
Office Version
  1. 365
Platform
  1. Windows
Cannot seem to make the below formula work.
I'm trying to SUM for values using two criteria

One of the criteria is in one cell but separated by a comma. I used Textsplit but it doesn't quite work.

direct operator.xlsx
ABCDEFGHIJ
1Data:
2Criteria2Criteria1USD
3TeslaWHEEL5
4FordOIL10
5FordTYRE15
6TeslaTYRE20
7TeslaDEALER25
8TeslaOIL30Criteria1Criteria2Attempt1Attempt2Correct Output Should Be:
9TeslaGAS35OIL, GASTesla303065
10FordWINDOW15TYRE, WINDOWFord1530
Sheet1
Cell Formulas
RangeFormula
G9:G10G9=MAP(F9:F10,E9:E10,LAMBDA(make,code,SUM(SUMIFS(C3:C10,A3:A10,make,B3:B10,TEXTSPLIT(code,",")))))
H9H9=SUM(SUMIFS(C3:C10,A3:A10,F9,B3:B10,TEXTSPLIT(E9,",")))
Dynamic array formulas.
 
Last edited by a moderator:

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Sorry, please ignore. Spelling mistake:
=SUM(SUMIFS(C3:C10,A3:A10,F9,B3:B10,TEXTSPLIT(E9,", ")))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

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