sumifs(index(match vs sumproduct

Kmitchell

Active Member
Joined
Feb 27, 2007
Messages
353
Hello - I have a formula that isn't doing what I had hoped (shown below), it's returning the first value that meets the index(match criteria but I'm looking to have it sum up all values that match row 6 and column H.


F7:BK124 sits all the data to sum up. Should I be using a sumproduct instead? Any suggestions greatly appreciated.

SUMIFS(INDEX('SCHEDULE USE'!$F$7:$BK$124,0,MATCH(SUMMARY!C$6,'SCHEDULE USE'!$F$3:$BK$3,0)),'SCHEDULE USE'!$BO$7:$BO$124,SUMMARY!$H18)
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Try

=SUMPRODUCT(('SCHEDULE USE'!$F$3:$BK$3=SUMMARY!C$6)*('SCHEDULE USE'!$BO$7:$BO$124=SUMMARY!$H18)*'SCHEDULE USE'!$F$7:$BK$124)
 
Upvote 0

Kmitchell

Active Member
Joined
Feb 27, 2007
Messages
353
Thank you for your quick reply.

I modified it to grab H7 instead of H18 but it's returning #N/A. Am I missing a parenthesis?

SUMPRODUCT(('SCHEDULE USE'!$F$3:$BK$3=SUMMARY!C$6)*('SCHEDULE USE'!$BO$8:$BO$124=SUMMARY!$H7)*'SCHEDULE USE'!$F$8:$BK$124)
 
Upvote 0

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
If there are any pre-existing #N/A errors within any of the referenced ranges
That would cause the formula to return #N/A as well.
 
Upvote 0

Kmitchell

Active Member
Joined
Feb 27, 2007
Messages
353
ADVERTISEMENT
Does row 3 have to have a value in every cell or can they be intentionally left blank?
 
Upvote 0

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Blanks in Row3 won't cause any Error (they won't meet the criteria of =C6, but no error).
 
Upvote 0

Kmitchell

Active Member
Joined
Feb 27, 2007
Messages
353
ADVERTISEMENT
The #N/A isn't apparent to me as to the cause...there are no pre-existing #N/A errors on the source tab
 
Upvote 0

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
Your formula refers to more than 1 tab.

#N/A in ANY of the referenced cells within that formula will cause the formula to be #N/A
 
Upvote 0

Kmitchell

Active Member
Joined
Feb 27, 2007
Messages
353
I'll have to trouble shoot, every single row and column is returning #N/A yet when I manually grab those elements on source tab there aren't any errors
 
Upvote 0

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,210
Hello - I have a formula that isn't doing what I had hoped (shown below), it's returning the first value that meets the index(match criteria but I'm looking to have it sum up all values that match row 6 and column H.


F7:BK124 sits all the data to sum up. Should I be using a sumproduct instead? Any suggestions greatly appreciated.

SUMIFS(INDEX('SCHEDULE USE'!$F$7:$BK$124,0,MATCH(SUMMARY!C$6,'SCHEDULE USE'!$F$3:$BK$3,0)),'SCHEDULE USE'!$BO$7:$BO$124,SUMMARY!$H18)

Could you clarify what range exactly is this formula intended to pick out and sum?
 
Upvote 0

Forum statistics

Threads
1,195,936
Messages
6,012,394
Members
441,695
Latest member
MickRobertson

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
Top