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

jmpatrick

Active Member
Joined
Aug 17, 2016
Messages
486
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.
 
Ok how about
Excel Formula:
=IF(ISERR(SEARCH("~*",BR5)),"No Floors",IF(OR(ISNUMBER(SEARCH({"1114M","1110","1109M","1091"},$C5))),"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

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Once again, you led me to the water! I had to tweak it slightly, but it works:

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

I really appreciate the expertise on this site. I've learned a lot over the years by dissecting the code ideas from the members here.

Thanks.
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,226,114
Messages
6,189,052
Members
453,522
Latest member
Seeker2025

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