Help with multiple ISBlank and OR Statements

tmpollard

Board Regular
Joined
Jun 12, 2008
Messages
111
Hello,
I am hoping someone can help me with this formula, I can find a lot of info on the internet but not exactly what i'm looking for. Seems like only part of the formula works but not all of it. Thanks for any help.

I'm trying to put a formula for this in cell F2
If E2 is Blank and B2=2 then "Available" or if E2 is Blank and B2=3 then "Not Available" or if E2 is NOT Blank and B2=3 then "Available"

Not sure if I need and Else statement since the results should be either Available or Not Available.

This is what I came up with, but doesn't work
=IF(AND(B2=2,(ISBLANK(E2))),"Available",OR(AND(B2=3,(ISBLANK(E2))),"Not Available",OR(AND(B2=3,NOT(ISBLANK(E2))),"Available")))

Excel 2012
ABCDEF
1SystemLvlTopMain Number2nd NumberStatus
2Boiler2X781402136191781402136192#VALUE!
3Boiler3X781402444391#VALUE!
4Boiler3X781402731902781402731997#VALUE!
5Boiler2X781402731903Available
6Boiler2X781402732002Available
7Boiler3X781402732003#VALUE!
8Boiler2X781402732602Available
9Boiler3X781402732603781402732698#VALUE!
10Boiler2X781402912391Available

<colgroup><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Hi,

This will do what you described. However, the first line of data, Row 2, doesn't match any of your criteria, so my formula leaves the F cell blank, what would you like happened in these cases?


Excel 2010
ABCDEF
1SystemLvlTopMain Number2nd NumberStatus
2Boiler2X781402136191781402136192 
3Boiler3X781402444391Not Available
4Boiler3X781402731902781402731997Available
5Boiler2X781402731903Available
6Boiler2X781402732002Available
7Boiler3X781402732003Not Available
8Boiler2X781402732602Available
9Boiler3X781402732603781402732698Available
10Boiler2X781402912391Available
Sheet19
Cell Formulas
RangeFormula
F2=IF(OR(AND(E2="",B2=2),AND(E2<>"",B2=3)),"Available",IF(AND(E2="",B2=3),"Not Available",""))
 
Upvote 0
=CHOOSE(B2 - 1, IF(E2 = "", "Available", ""), IF(E2 = "", "Not ", "") & "Available")
 
Upvote 0
Thank you. In the case of Row 2 if you could put "I Don't Know" in the cell that would be an indicator that I need to investigate. Thanks
 
Upvote 0
Thank you. In the case of Row 2 if you could put "I Don't Know" in the cell that would be an indicator that I need to investigate. Thanks

You're welcome, updated formula below. You can change the "I Don't Know" to whatever you want:


Excel 2010
ABCDEF
1SystemLvlTopMain Number2nd NumberStatus
2Boiler2X781402136191781402136192I Don't Know
3Boiler3X781402444391Not Available
4Boiler3X781402731902781402731997Available
5Boiler2X781402731903Available
6Boiler2X781402732002Available
7Boiler3X781402732003Not Available
8Boiler2X781402732602Available
9Boiler3X781402732603781402732698Available
10Boiler2X781402912391Available
Sheet19
Cell Formulas
RangeFormula
F2=IF(OR(AND(E2="",B2=2),AND(E2<>"",B2=3)),"Available",IF(AND(E2="",B2=3),"Not Available","I Don't Know"))
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

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