The formula does not sum

Geo Jul

Board Regular
Joined
Nov 19, 2022
Messages
125
Office Version
  1. 2016
Platform
  1. Windows
Dear All
my formula does not sum =SUM(INDEX($H$6:$S$148,MATCH(H2,$F$6:$F$148,0),MATCH(H1,H5:S5,0)))
please I need your help with this issue
your prompt action is highly appreciated
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
The expression inside the SUM( ) will give you a single cell. So there is no point in summing it.

Therefore I think that you have written a formula that does not do what you really want. But we don't know what you really want.

Please describe (or better yet, show) your data layout and explain what you want to do.
 
Upvote 0
This is a guess, but maybe:
=SUMPRODUCT(($F$6:$F$148=$H$2)*($H$5:$S$5=$H$1)*($H$6:$S$148))
 
Upvote 0
If that is what you need here is an alternative. Not necessarily better.

Excel Formula:
=SUMIFS($H$6:$S$148, $F$6:$F$148, $H$2, $H$5:$S$5, $H$1)
 
Upvote 0
If that is what you need here is an alternative. Not necessarily better.

Excel Formula:
=SUMIFS($H$6:$S$148, $F$6:$F$148, $H$2, $H$5:$S$5, $H$1)
Actually ignore that, it won't work. Ranges are not the same shape.
 
Upvote 0
Actually ignore that, it won't work. Ranges are not the same shape.
Slight modification:
(Index returns a range not an array so should work on pre 365)
Excel Formula:
=SUMIFS(INDEX($H$6:$S$148,0,MATCH($H$1,$H$5:$S$5,0)), $F$6:$F$148,$H$2)
 
Last edited:
Upvote 1
Solution
Slight modification:
(Index returns a range not an array so should work on pre 365)
Excel Formula:
=SUMIFS(INDEX($H$6:$S$148,0,MATCH($H$1,$H$5:$S$5,0)), $F$6:$F$148,$H$2)
Many Thanks for your time and your help
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,107
Members
452,302
Latest member
TaMere

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