Issue with double IF

slam

Well-known Member
Joined
Sep 16, 2002
Messages
873
Office Version
  1. 365
  2. 2019
I'm trying to build a formula for the following:

If D2 = any part of H2, ORD
else if D2=N2, WBS
else Not Ready

Here's what I have, that Excel is not happy with. Where am I going wrong?

Excel Formula:
=IF(D2="*"&H2&"*","ORD",IF(D2=N2,"WBS","Not Ready")"Not Ready")

Thanks!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Can you show us some examples of what you mean by "D2 is any part of H2"?
Because the way you coded it looks backwards of your description, so I am not sure which one is what you really mean.
 
Upvote 1
Maybe
Excel Formula:
=IF(ISNUMBER(SEARCH(D2,H2)),"ORD",IF(D2=N2,"WBS","Not Ready"))
But like Joe I'm a bit confused by your formula.
 
Upvote 0
Solution
Can you show us some examples of what you mean by "D2 is any part of H2"?
Because the way you coded it looks backwards of your description, so I am not sure which one is what you really mean.

Sorry, I started out with a different formula, and I probably didn't evolve it very well. I started using COUNTIF to do this before changing it to just IF and then the double IF.

Anyhow, Fluff's formula is doing exactly what I need it to, so thank you very much!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,312
Messages
6,124,192
Members
449,147
Latest member
sweetkt327

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