If functions in an array

paul_willie78

New Member
Joined
Mar 23, 2004
Messages
31
Hi folks

I have a working set of If functions in an array formula. I was wondering if anyone had a neater way of doing this.

{=IF(IF(OR(K3="A",K3="B",K3="C",K3="A*"),1,0)+IF(OR(L3="A",L3="B",L3="C",L3="A*"),1,0)+IF(OR(M3="A",M3="B",M3="C",M3="A*"),1,0)+IF(OR(O3="A",O3="B",O3="C",O3="A*"),1,0)+IF(OR(U3="A",U3="B",U3="C",U3="A*"),1,0)+IF(OR(W3="A",W3="B",W3="C",W3="A*"),1,0)>=5,TRUE,FALSE)}

if a cell is a A,B,C or A* then then set a value of 1
in this instance i'm only looking at 6 non adjacent cells
if they equate to 5 or more i would ilke a true else false.

Thanks in advance

Paul
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
1 - you don't need this to be array-entered;
2 - when you add true + true, it works as 1+1, so you don't need the interior IF's. This is somewhat shorter:

=IF(OR(K3="A",K3="B",K3="C",K3="A*")+OR(L3="A",L3="B",L3="C",L3="A*")+OR(M3="A",M3="B",M3="C",M3="A*")+OR(O3="A",O3="B",O3="C",O3="A*")+OR(U3="A",U3="B",U3="C",U3="A*")+OR(W3="A",W3="B",W3="C",W3="A*")>=5,TRUE,FALSE)
 
Upvote 0
Hello, Also Try

=SUM(COUNTIF(K3:M3,{"A*","B","C"}),COUNTIF(U3,{"A*","B","C"}),COUNTIF(W3,{"A*","B","C"}))>=5
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,280
Members
452,902
Latest member
Knuddeluff

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