Need to add another condition to existing function...but where?

jmpatrick

Active Member
Joined
Aug 17, 2016
Messages
482
Office Version
  1. 365
Platform
  1. Windows
Here's what I have:

Excel Formula:
=IF(OR(ISNUMBER(SEARCH({"*1114M*","*1110*","*1109M*","*1091*"},$C5))),"No Floors",IF(OR(ISNUMBER(SEARCH({"SLAB - GL","SLAB - GR","SLAB"},H5))),"Slab",IF(OR(ISNUMBER(SEARCH({"Open Web"},$H5))),"Open Web","Floor Plans"))))

This works but I need to add one more condition, a check to see if an asterisk is present in $BR5. If it is then "Floor Plans" should be displayed. Here's the additional code but I'm not sure where to insert it:

Excel Formula:
,IF(OR(ISNUMBER(SEARCH("~*",$BR5))),"Floor Plans"

What seems to be tripping me up is "Floor Plans" should be the result if NONE of the conditions are met.

I'm stumped.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
You've contradicted yourself! In your first statement you want "Floor Plans" if there is an asterisk in BR5 but in the second statement you want "Floor Plans" if none of the conditions are met?
 
Upvote 0
What should happen if BR5 does not contain an asterix?
 
Upvote 0
Ok, how about
Excel Formula:
=IF(OR(ISNUMBER(SEARCH({"*1114M*","*1110*","*1109M*","*1091*"},$C5)),ISERR(SEARCH("~*",BR5))),"No Floors",IF(OR(ISNUMBER(SEARCH({"SLAB - GL","SLAB - GR","SLAB"},H5))),"Slab",IF(ISNUMBER(SEARCH({"Open Web"},$H5)),"Open Web","Floor Plans")))
 
Upvote 0
Ok, how about
Excel Formula:
=IF(OR(ISNUMBER(SEARCH({"*1114M*","*1110*","*1109M*","*1091*"},$C5)),ISERR(SEARCH("~*",BR5))),"No Floors",IF(OR(ISNUMBER(SEARCH({"SLAB - GL","SLAB - GR","SLAB"},H5))),"Slab",IF(ISNUMBER(SEARCH({"Open Web"},$H5)),"Open Web","Floor Plans")))

All conditions result in No Floors except the asterisk.
 
Upvote 0
If you have an asterisk in BR5 & Slab - GL in H5 then you will get Slab.
Is that not what you want?
 
Upvote 0
If you have an asterisk in BR5 & Slab - GL in H5 then you will get Slab.
Is that not what you want?

Sorry, I should have been more specific in my reply.

- The default (any number but the four listed below) should be: Floor Plans. This is not working. I'm getting No Floors no matter the number in C5.
- If 1114M, 1110, 1109M, or 1091 appear anywhere in C5 I should get No Floors (which is not working), EXCEPT when an asterisk is in BR5. If there is an asterisk in BR5 I should get Floor Plans, which IS working correctly.
- You are correct, if SLAB - GL, SLAB - GR, or SLAB appear in H5 I should get SLAB. This is not working.

Thanks for all your help.
 
Last edited:
Upvote 0
So if there is an asterisk in BR5 it overules all other criteria?
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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