If Then Statements

makiboy

New Member
Joined
Sep 13, 2011
Messages
3
I have been successful doing if then statements, however for some reason I'm stuck on this one.

I have a section of cells that contains 10 rows. Within the 10 rows, I am only concerned about 3 of the rows of information. These three rows are considered "Critical" to my project.

I have to cells, B3 and B4 and B6 that I am concerned with.

Of the 10 rows, if any of the 3 I am concerned with are of a certain criteria, then there is a "compliance" issue.

For example, if any of the three rows B3, B4 and B6 contain a "1", then we are "in compliance" (which is what the cell should show). If any of the three rows B3, B4 and B6 contain a "0" then we are "Out of compliance".

I tried doing a =IF(B3=1,"In Compliance",IF(B3=0, "Out of Compliance",IF(B4=0, "In Compliance".....etc......

but this didn't work. Any ideas on how to write this formula? Thanks!
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Welcome to the board.

Try this, I think it should work for you.

=IF(AND(B3=0,B4=0,B6=0),"In Compliance","Out of Compliance")
 
Upvote 0
Thanks Jberwald......

Your suggestion didn't work. Maybe I didn't make it clear enough. I need it to report an "Out of Compliance" if any of the 3 statements are "0". If two are "1" and one is "0"....it should report "Out of Compliance". If all three are 1's, it would report "In Compliance". Does that make sense? Putting your formula in, it only gives me an "Out of compliance" if all of them are at "0".

Thanks SO MUCH! For your help, I really appreciate it!
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,337
Members
452,907
Latest member
Roland Deschain

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