IF(ISNUMBER(SEARCH with a 2nd criteria

Deelof

New Member
Joined
Aug 30, 2023
Messages
46
Office Version
  1. 2019
Platform
  1. Windows
Hi, if column A contains "Core" and column B >=2 return 2 specific text conditions, "Good", "Need". What's the best formula?

1725966867840.png
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Excel Formula:
=IF(AND(ISNUMBER(SEARCH("CORE",A2)),B2>=2),"Good","Need")

should do it.
 
Upvote 0
Excel Formula:
=IF(AND(ISNUMBER(SEARCH("CORE",A2)),B2>=2),"Good","Need")

should do it.
Works a treat, thanks. How about if I want a 3rd condition adding as below example
 

Attachments

  • 1725973704717.png
    1725973704717.png
    10.3 KB · Views: 4
Upvote 0
You've got overlap with the 1st and 3rd conditions as you've used >=2 and <=2 so both would include 2.
 
Upvote 0
What I'm saying is that with the conditions as you have written them there, if B=2 and C>=5, the answer could be either Good or Need, so which should it be?
 
Upvote 0
What I'm saying is that with the conditions as you have written them there, if B=2 and C>=5, the answer could be either Good or Need, so which should it be?
Ah, maybe I haven't explained it well enough.
If B is equal or greater than 2 AND C is equal or greater than 5 then "Good"
If B is equal or greater than 2 AND C is equal or less than 5 then "Good"
If B is less than 2 AND C is equal or greater than 4 then "Need"
If B is less than 2 AND C is equal or less than 4 then "Not Required"
 
Upvote 0
Yeah, that is not what was in your picture! ;)

Do we still need to check if Core is part of column A?
 
Upvote 0
OK then. It would just be:

Excel Formula:
=IF(B2>=2,"Good",IF(C2>=4,"Need","Not required"))

although I just noticed that you introduced another overlap if column C is equal to 4:
If B is less than 2 AND C is equal or greater than 4 then "Need"
If B is less than 2 AND C is equal or less than 4 then "Not Required"
 
Upvote 0

Forum statistics

Threads
1,224,080
Messages
6,176,254
Members
452,716
Latest member
Elo

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