How to have index match sum all matches

eliephillips

New Member
Joined
Apr 9, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
I need a formula that will sum together the values of the 4101, 4119, and 4122 that are labeled March in row 9. I can get it to return the first value the index match throws back, but I am having trouble adding the sum formula into it. Help would be much appreciated.
 

Attachments

  • Screenshot 2024-04-09 115458.png
    Screenshot 2024-04-09 115458.png
    19.5 KB · Views: 24

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Welcome to the forum. What is your formula?
 
Upvote 0
try this:

Book1
PQRSTUVWXYZAAABACAD
9MarchMarchMarchMarchMarchMarchMarchMarchMarch
102024-01-312024-02-292024-03-312024-04-302024-05-312024-06-302024-07-312024-08-312024-09-302024-10-312024-11-302024-12-312025-01-31
11
12Income
13
14Rental Inc
154101 djfkajsd1,4851,6361,8151,2581,8121,2712,1711,9531,8411,4612,0931,5141,440
164102 dfkjadl1,2411,1902,0771,2031,4842,1431,3371,9701,5661,5132,1271,8081,432
174108 kdfjka1,8691,1371,2851,2361,1371,8181,4091,1321,5571,9041,6411,1431,757
184109 djfak1,4161,4821,2721,9101,6711,1591,8301,3631,1691,5942,0401,5171,451
194110 fkaf2,0941,5671,7591,7321,6291,8341,5502,0261,1701,2391,2031,2091,439
204119 jkdlfj1,5791,2321,5971,6211,4561,2951,4881,4551,8481,4081,7682,0922,222
214122 dkfajd1,5121,7872,0181,1311,2551,3552,0122,0852,1651,8911,2271,4461,270
22
2343251
24
25
26
Sheet7
Cell Formulas
RangeFormula
Q23Q23=LET(data,$Q$15:$AC$21,Top,$Q$9:$AC$9,Side, LEFT($P$15:$P$21,4), SUM(FILTER(FILTER(data,((Side="4109")+(Side="4119")+(Side="4122")),""),Top="March","")))
 
Upvote 1
Another option:

david763.xlsx
PQRSTUVWXYZAAABAC
9MarchMarchMarchMarchMarchMarchMarchMarchMarch
102024-01-312024-02-292024-03-312024-04-302024-05-312024-06-302024-07-312024-08-312024-09-302024-10-312024-11-302024-12-312025-01-31
11
12Income
13
14Rental Inc
154101 djfkajsd1485163618151258181212712171195318411461209315141440
164102 dfkjadl1241119020771203148421431337197015661513212718081432
174108 kdfjka1869113712851236113718181409113215571904164111431757
184109 djfak1416148212721910167111591830136311691594204015171451
194110 fkaf2094156717591732162918341550202611701239120312091439
204119 jkdlfj1579123215971621145612951488145518481408176820922222
214122 dkfajd1512178720181131125513552012208521651891122714461270
22
2344372
2444372
Sheet10
Cell Formulas
RangeFormula
Q23Q23=LET(data,$Q$15:$AC$21,Top,$Q$9:$AC$9,Side, LEFT($P$15:$P$21,4), SUM(FILTER(FILTER(data,((Side="4101")+(Side="4119")+(Side="4122")),""),Top="March","")))
Q24Q24=SUMPRODUCT(Q15:AC21*(Q9:AC9="March")*ISNUMBER(MATCH(LEFT(P15:P21,4)+0,{4101,4119,4122},0)))


awhoohaw, I changed your formula to have Side="4101" instead of Side="4109".
 
Upvote 1
Solution
Another option:

david763.xlsx
PQRSTUVWXYZAAABAC
9MarchMarchMarchMarchMarchMarchMarchMarchMarch
102024-01-312024-02-292024-03-312024-04-302024-05-312024-06-302024-07-312024-08-312024-09-302024-10-312024-11-302024-12-312025-01-31
11
12Income
13
14Rental Inc
154101 djfkajsd1485163618151258181212712171195318411461209315141440
164102 dfkjadl1241119020771203148421431337197015661513212718081432
174108 kdfjka1869113712851236113718181409113215571904164111431757
184109 djfak1416148212721910167111591830136311691594204015171451
194110 fkaf2094156717591732162918341550202611701239120312091439
204119 jkdlfj1579123215971621145612951488145518481408176820922222
214122 dkfajd1512178720181131125513552012208521651891122714461270
22
2344372
2444372
Sheet10
Cell Formulas
RangeFormula
Q23Q23=LET(data,$Q$15:$AC$21,Top,$Q$9:$AC$9,Side, LEFT($P$15:$P$21,4), SUM(FILTER(FILTER(data,((Side="4101")+(Side="4119")+(Side="4122")),""),Top="March","")))
Q24Q24=SUMPRODUCT(Q15:AC21*(Q9:AC9="March")*ISNUMBER(MATCH(LEFT(P15:P21,4)+0,{4101,4119,4122},0)))


awhoohaw, I changed your formula to have Side="4101" instead of Side="4109".
oops, thank you!
 
Upvote 0

Forum statistics

Threads
1,223,703
Messages
6,173,973
Members
452,540
Latest member
haasro02

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