sumif and and or logic

dmheller

Board Regular
Joined
May 26, 2017
Messages
156
Office Version
  1. 365
All,
I am doing a sum(if( and then using the array to do the logic.
=SUM(IF(ISNUMBER(B5:B662),IF(INT(B5:B662)=INT(R5),--((E5:E662>220)+(F5:F662>220)+(G5:G662>220)+(H5:H662>220)>0)*(D5:D662=1))))

I want to add more logic to this. so it will be
column D =1
and
Column k<20
and
Column L<20
and
column E or F or G or H >220
and
column m or n >90

does this have to be done a curtain way or does excel get the logic of it with the + and * signs.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
To create a shorter and more efficient formula you may use helper columns.
For example, in column Y
Y5
=(MAX(E5:H5)>220)*(D5=1)
and copy down

Then instead of
(E5:E662>220)+(F5:F662>220)+(G5:G662>220)+(H5:H662>220)>0)*(D5:D662=1)
you can use
(Y5:Y662=1)

M.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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