Why doesnt this formula work?

zcemf64

New Member
Joined
Aug 3, 2011
Messages
10
What is wrong with this formula?

=IF(AND(I2=OPP,J2=TL,H2<32.5,F2<=O2),"N",(IF(AND(I2=OPP,J2=TR),"",(IF(AND(I2=OPP,J2=BL,H2>327.5,F2<=O2),"N",(IF(AND(I2=OPP,J2=BR),"",(IF(AND(I2=SAME,J2=TL,H2>32.5,F2<=O2),"N",(IF(AND(I2=SAME,J2=TR,H2<147.5,F2<=O2),"N",(IF(AND(I2=SAME,J2=BL,H2<327.5,F2<=O2),"N",(IF(AND(I2=SAME,J2=BR,H2>212.5,F2<=O2),"N",(IF(AND(I2=VER,J2=TL,F2<=O2),"N",(IF(AND(I2=VER,J2=TR,H2<122.5,F2<=O2),"N",(IF(AND(I2=VER,J2=BL,H2>327.5,F2<=O2),"N",(IF(AND(I2=VER,I2=BR),"","")))))))))))))))))))))))

I typed this in the formula bar and apparently there's an error. I can't locate it though. Would really appreciate help :)
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
It exceeded 7 if conditions, try vlookup, lookup or index & match
 
Upvote 0
I think this would do the same thing...
<font face=Courier New> =IF(OR(<br>        AND(I2=OPP,J2=TL,H2<32.5,F2<=O2),<br>        AND(I2=OPP,J2=BL,H2>327.5,F2<=O2),<br>        AND(I2=SAME,J2=TL,H2>32.5,F2<=O2),<br>        AND(I2=SAME,J2=TR,H2<147.5,F2<=O2),<br>        AND(I2=SAME,J2=BL,H2<327.5,F2<=O2),<br>        AND(I2=SAME,J2=BR,H2>212.5,F2<=O2),<br>        AND(I2=VER,J2=TL,F2<=O2),<br>        AND(I2=VER,J2=TR,H2<122.5,F2<=O2),<br>        AND(I2=VER,J2=BL,H2>327.5,F2<=O2)),<br>            "N","")</FONT>
 
Upvote 0
Can you post sample data?

I would avoid hard coding values in formula like 32.5,327.5,147.5,137.5,212.25,122.5 becuz if your criteria changes then you manually need to update those values.

I would use cells references containing these values. Changes to criterias is so easy instead of changing the formula.

Biz
 
Upvote 0

Forum statistics

Threads
1,212,927
Messages
6,110,703
Members
448,293
Latest member
jin kazuya

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