SUMIFS INDEX and MATCH

atearth

New Member
Joined
Feb 25, 2015
Messages
39
Office Version
  1. 365
  2. 2013
  3. 2007
Platform
  1. Windows
  2. Web
Hi all,

I'm trying to use SUMIFS INDEX and MATCH but the answer I get is wrong.
Anyone know what the answer is to a problem I have?
Please see the image below.
Thank you in advance

Excel Formula:
=SUMIFS(INDEX($F$15:$M$18,0,MATCH(F$24,$F$14:$M$14,0)),$D$15:$D$18,$D25)


1675461906944.png
 
Last edited:
Here is another version using OFFSET and SUM.
The OFFSET method does not use any array/matrix multiplication.
The index match above is also listed.

Book1
ABCDEFGHIJKLMNOP
1
13
14Jan 23Jan 23Jan 23Jan 23Jan 23Jan 23Feb 23Feb 23Feb 23Feb 23Feb 23
15100450119202345027456
16101767521228910286751112
17102131423249001516291790018
18103226227252622822922130222223224
19
20USING: OFFSETJan 232/1/2023
21100495492
22101742736
23102989980
24103961920
25
26
27
28USING INDEX MATCHJan 232/1/2023
29100495492
30101742736
31102989980
32103961920
sumproduct on grid
Cell Formulas
RangeFormula
F21:G24F21=SUM(OFFSET($F$15,MATCH($D21,$D$15:$D$18,0)-1,MATCH(MONTH(F$20),MONTH($F$14:$P$14),0)-1,1,SUM(--(MONTH(F$20)=MONTH($F$14:$P$14)))))
F29:G32F29=SUM(INDEX($F$15:$P$18,MATCH($D29,$D$15:$D$18,0),1): INDEX($F$15:$P$18,MATCH($D29,$D$15:$D$18,0),COLUMNS($F$14:$P$14)) *(--MONTH(F$28)=MONTH($F$14:$P$14)))
 
Upvote 0

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
OFFSET is a volatile function and will probably slow down your sheet.
 
Upvote 0
In looking at how you have your data set up, if your WBS codes are always going to be in the same order then you could use SUMIFS as below.
Drag formula down and across.

Book1
DEFGHIJ
1
2WBS Codes1/23/20231/23/20231/23/20231/23/20232/23/20232/23/2023
3100450450
4101675675
5102900900
6103225225225225225225
7
8
9
10WBS Codes1/23/20232/23/2023
11100450450
12101675675
13102900900
14103900450
Sheet2
Cell Formulas
RangeFormula
E11:F14E11=SUMIFS($E3:$J3,$E$2:$J$2,E$10)
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,934
Members
449,094
Latest member
teemeren

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