sumif and and or logic

dmheller

Board Regular
Joined
May 26, 2017
Messages
142
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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
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,216,091
Messages
6,128,775
Members
449,468
Latest member
AGreen17

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