Need to simplify IF statement

JimB

Board Regular
Joined
Sep 19, 2002
Messages
81
Can anyone simplify this formula for me? This is the only way I could get the result I need and my brain is fried :)

=IF(I19<1501,1,0)*IF(L19=0,1,0)+IF(I20<1501,1,0)*IF(L20=0,1,0)+IF(I21<1501,1,0)*IF(L21=0,1,0)+IF(I22<1501,1,0)*IF(L22=0,1,0)+IF(I23<1501,1,0)*IF(L23=0,1,0)+IF(I24<1501,1,0)*IF(L24=0,1,0)+IF(I25<1501,1,0)*IF(L25=0,1,0)+IF(I26<1501,1,0)*IF(L26=0,1,0)+IF(I27<1501,1,0)*IF(L27=0,1,0)+IF(I28<1501,1,0)*IF(L28=0,1,0)+IF(I29<1501,1,0)*IF(L29=0,1,0)+IF(I30<1501,1,0)*IF(L30=0,1,0)+IF(I31<1501,1,0)*IF(L31=0,1,0)+IF(I32<1501,1,0)*IF(L32=0,1,0)+IF(I33<1501,1,0)*IF(L33=0,1,0)


Thanks all.
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Mark W.

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,654
{=SUM((I19:I33<1501)*(L19:L33=0))}

Note: This is an array formula which must be entered using the Control+Shift+Enter key combination. The outermost braces, { }, are not entered by you -- they're supplied by Excel in recognition of a properly entered array formula. For more on array formulas see the Excel Help topic for "About array formulas and how to enter them".
This message was edited by Mark W. on 2002-10-03 16:37
 

JimB

Board Regular
Joined
Sep 19, 2002
Messages
81
Thank you! I had a similar formula that I succesfully simplified with "SUMPRODUCT", but for some reason this one had me going in circles.
 

Forum statistics

Threads
1,181,338
Messages
5,929,390
Members
436,665
Latest member
MonkeyNotDonkey

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
Top