Index-Match For Sum_range In Sumifs Formula?

emus007

New Member
Joined
Mar 23, 2013
Messages
5
Hi,

I've used an index-match formula as the sum_range in a sumif formula, but when I try to do the same with a sumifs formula I return a #VALUE! error.

Is it possible to do this normally?

Thanks,
Elu.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi,

I've used an index-match formula as the sum_range in a sumif formula, but when I try to do the same with a sumifs formula I return a #VALUE! error.

Is it possible to do this normally?

Thanks,
Elu.

Would you post what you have tried?
 
Upvote 0
Correctly formed there is no reason that should not work.

Can you post what you have tried that isn't working?
 
Upvote 0
I have table which has labour information from the current financial
year, and one of my colleagues is wanting to look at some of the
information a different way. The following is an example of a portion of
the information and what I'm trying to achieve...

I have the following data on Sheet1 in cells A1:G18:
SiteTypeOrganisation UnitWk30Wk31Wk32Wk33
ALAL Albany 7.25
ALAL Mainstream43.5723.17107.3713.82
ALAL Bar66.0848.2049.5328.08
ALAL Floor275.57238.50203.50173.03
ALAL POS418.72422.43348.38303.97
ALAL Management140.98129.78159.17134.30
ALPROJAL Projection111.05109.7397.8886.05
ALGCALGC Gold Class
ALGCALGC Management100.42116.3289.5882.55
ALGCALGC Service457.97476.93384.33308.10
BWBW NewMarket / Broadway8.0032.008.00
BWBW Mainstream199.8255.8541.3527.27
BWBW Bar25.8521.9320.2325.72
BWBW Floor92.8784.7285.0776.38
BWBW POS121.73210.75203.20167.70
BWBW Management117.97126.37108.43133.33
BWPROJBW Projection99.6086.6595.17104.53

<colgroup><col><col><col><col span="4"></colgroup><tbody>
</tbody>

On Sheet2 I have the following table in cells A1:E4:
<table style="width: 445px;" border="0" cellSpacing="0" cellPadding="0"><colgroup><col span="5"></colgroup><tbody></tbody>
PROJ
WK ENDMONTHWEEKALBW
2013-01-30JULWk30
2013-02-06JULWk31

<colgroup><col span="5"></colgroup><tbody>
</tbody>

On Sheet2 in cell D3 I've tried the formula:
=SUMIFS(INDEX('Sheet1'!$D$1:$G$18,0,MATCH('Sheet2'!$C3,'Sheet1'!$D$1:$G$1,0)),'Sheet1'!$A:$A,'Sheet2'!D$2,'Sheet1'!$B:$B,'Sheet2'!$A$1)

What
I'm after is a formula that I can copy from cell D3 to cells D4, as
well as to C3:C4 that sums information from Sheet1 when the Site &
Type match from columns A&B, and the sum_range (and I hope this
makes sense) is variable, dependent on the week from Sheet2.

I'm not sure if the sumifs formula is the best one to use or if I've written it correctly.
 
Upvote 0
You need to ensure the criteria ranges are the same size (number of rows in this case) as the Sum range, but you are using whole column ('Sheet1'!$A:$A) refs which leads to a mismatch and hence the #VALUE! error. Try:

=SUMIFS(INDEX('Sheet1'!$D$1:$G$18,0,MATCH('Sheet2'!$C3,'Sheet1'!$D$1:$G$1,0)),'Sheet1'!$A$1:$A$18,'Sheet2'!D$2,'Sheet1'!$B$1:$B$18 ,'Sheet2'!$A$1)
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,377
Members
448,955
Latest member
BatCoder

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