Combining Sumifs Help Please

Mathman

Board Regular
Joined
Jan 28, 2017
Messages
152
Office Version
  1. 2016
Platform
  1. Windows
Hi


Is their a way to rewrite these 2 sumifs (array) into 1 so that I would have 4 conditions?


=SUM(IF(($H$2:$H$2634<$N3)*($H$2:$H$2634>=N4),$G$2:$G$2634,""))


=SUM(IF(($A$2:$A$2634<$O3)*($A$2:$A$2634>=O4),$G$2:$G$2634,""))


Thank you!
MM
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi,

With Array Formulas, you can use :

The + (plus) sign to get OR

The * (multiplication) sign to get AND

Hope this will help
 
Upvote 0
Well ...

Difficult for me to guess what is your underlying logic ... i.e. your choice between : OR - AND ...

Just test the following Combined Array Formulas:

A. YourFormula1 + YourFormula2

B. YourFormula1 * YourFormula2

Most probably, given your expected result ... you will be able to determine which Formula is the one you needed ...

HTH
 
Last edited:
Upvote 0
Hi


Is their a way to rewrite these 2 sumifs (array) into 1 so that I would have 4 conditions?


=SUM(IF(($H$2:$H$2634<$N3)*($H$2:$H$2634>=N4),$G$2:$G$2634,""))


=SUM(IF(($A$2:$A$2634<$O3)*($A$2:$A$2634>=O4),$G$2:$G$2634,""))


Thank you!
MM

Control+shift+enter, not just enter:

=SUM(IF(($A$2:$A$2634<$O3)*($A$2:$A$2634>=O4)*($H$2:$H$2634<$N3)*($H$2:$H$2634>=N4),$G$2:$G$2634))

Is this what you are after?
 
Upvote 0
I might have got it to work, will let you know once I run some more tests.

Thank you!
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,912
Members
452,366
Latest member
TePunaBloke

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