# SUMIF with multi-area selection

#### TomCon

##### Active Member
This does not seem to work

=SUMIF((G417:G419,G422:G425),">0")

Produces #VALUE. In the first argument, I am trying to give a multi-area range.

When using the UI, if you just make a multi-area selection, you will get an error in the formula and it will not even be accepted.

If you hand-edit you can type in the above formula, but it gives #VALUE as the result.

I had thought that if you had a multi-area selection for a function argumet, and enclosed it in (), that it would be treated as a single argument to the function. There are some functions for which this seems to be true. But, for SUMIF it appears to not be true.

So, any way to get a multi-area selection with SUMIF?

Thanks!

### Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

#### AliGW

##### Banned
Use the SUMIFS function:

=SUMIFS(sum_range,criteria_range_1,criteria_1,criteria_range_2,criteria_2, ...)

#### XOR LX

##### Well-known Member
I had thought that if you had a multi-area selection for a function argumet, and enclosed it in (), that it would be treated as a single argument to the function. There are some functions for which this seems to be true. But, for SUMIF it appears to not be true.

You are correct - SUMIF will not accept range unions. FREQUENCY will, however:

=INDEX(FREQUENCY((G417:G419,G422:G425),0),2)

though this only works here since your criterion (">0") happens to be a numerical construction. Otherwise, the solutions become a little more convoluted.

Regards

Replies
0
Views
554
Replies
2
Views
188
Replies
0
Views
1K
Replies
15
Views
866
Replies
1
Views
238

1,191,683
Messages
5,987,991
Members
440,124
Latest member
dippy_egg

### 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.

### Which adblocker are you using?

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

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