sum index match formula

excelprk

New Member
Joined
Mar 7, 2024
Messages
2
Office Version
  1. 365
  2. 2021
  3. 2019
Platform
  1. Windows
Per attached, I am trying to find sum index match formula for columns N and O given store ID numbers with glyphs in between in column M. Please assume column M is a dropdown hence why we have extended index range.

Screenshot 2024-03-07 220912.png
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Welcome to the forum.
Try the SUMIFS function

Book1
ABCDEFGHIJKLMNO
1store idstore name# of Employees# of Customersstore idno store namOther stores nearby (<lmin) Other stores nearby (<5min)Store Name Other stores nearby (<lmin)# of Employees# of Customers
22Red2402Red4|64|6|7Blue5| 61135
34Blue2204Blue5|65|6|7Orange2|4|7530
45Orange5305Orange22|7
56Green7256Green2|4|72|4|7
67Blue9157Blue4|64|6|7
Sheet2
Cell Formulas
RangeFormula
N2:O3N2=SUMIFS(C2:C6,$B2:$B6,$L2)
 
Upvote 0
Thank you! To clarify, sum for columns N and O should be based on the collective sum of store IDs in column M. Also to add another layer to that, would you recommend another formula to get unique sum without double counting store IDs in columns N and O assuming there are same store ID overlaps in blue and orange
 
Upvote 0
Something like this? This formula will not work in Excel 2019, not sure about Excel 2021.
Book1
ABCDEFGHIJKLMNO
1store idstore name# of Employees# of Customersstore idno store namOther stores nearby (<lmin) Other stores nearby (<5min)Store Name Other stores nearby (<lmin)# of Employees# of Customers
22Red2402Red4|64|6|7Blue5| 61255
34Blue2204Blue5|65|6|7Orange2|4|71375
45Orange5305Orange22|7
56Green7256Green2|4|72|4|7
67Blue9157Blue4|64|6|7
Sheet2
Cell Formulas
RangeFormula
N2:O3N2=SUM(SUMIFS(C$2:C$6,$A$2:$A$6,TEXTSPLIT($M2,"|")+0))
 
Upvote 0
This should only count unique stores in column M (see cell M2 in the example).
This formula won't work in Excel 2019.

Book1
ABCDEFGHIJKLMNO
1store idstore name# of Employees# of Customersstore idstore nameOther stores nearby (<lmin)Other stores nearby (<5min)Store NameOther stores nearby (<lmin)# of Employees# of Customers
22Red2402Red4|64|6|7Blue5| 6|51255
34Blue2204Blue5|65|6|7Orange2|4|71375
45Orange5305Orange22|7
56Green7256Green2|4|72|4|7
67Blue9157Blue4|64|6|7
Sheet1
Cell Formulas
RangeFormula
N2:O3N2=SUM(SUMIFS(C$2:C$6,$A$2:$A$6,UNIQUE(TEXTSPLIT($M2,"|"),1)))
 
Upvote 0

Forum statistics

Threads
1,215,123
Messages
6,123,182
Members
449,090
Latest member
bes000

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