SUMIFS with IF function on sum_range

phelps22

New Member
Joined
Dec 12, 2015
Messages
36
I have a set of SUMIF formula like:

=SUMIFS('Worksheet1'!W:W,'Worksheet1'!AD:AD,Cost!B2,'Worksheet1'!AB:AB,Cost!B3)

But now want to insert criterias on sum_range, let's say

Size > 20, use 'Worksheet1'!Z:Z
<size<=20, use="" 'worksheet1'!y:y
<size<=20, use="" 'worksheet1'!y:y
Size greater than 10 but less than 20, use 'Worksheet1'!Y:Y
the rest, 'Worksheet1'!W:W

How can I modify it to incorporate above criterias on sum_range? As just insert IF functions, too many arguments encountered.</size<=20,></size<=20,>
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
What did you try? Column W is used if none of the other criteria is met.


As per you said, Column W should be used if none of the other criteria is met (i.e. the value is less than 5). But it shows error..

For example, my formula is set like the below table:

ColumnIf input value (at separate cell) is greater than, it will look up the column:
AB>40
AA>30
Z>20
Y>10
X>5
W>0

<tbody>
</tbody>

Now the question is that it cannot look up the value at column W if I input the value <5 (i.e. 3)

=SUMIFS(IF(Cost!H3 > 40,Worksheet1!AB:AB,IF(Cost!H3 > 30,Worksheet1!AA:AA,IF(Cost!H3 > 20,Worksheet1!Z:Z,IF(Cost!H3 > 10,Worksheet1!Y:Y,IF(Cost!H3 > 5,Worksheet1!X:X,Worksheet1!W:W))))),Worksheet1!AF:AF,Cost!B2,Worksheet1!AD:AD,Cost!B3)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,094
Messages
6,123,071
Members
449,092
Latest member
ipruravindra

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