IF Formulas "containing" text

janema

Board Regular
Joined
Nov 28, 2022
Messages
143
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2011
  5. 2010
Platform
  1. Windows
  2. Mobile
I am having a complete mind blank, so turning to the experts here. This sounds like a a very long formula, but I thought I'd give it try. There is one section where it requires two criteria, so I'm not sure what order to write the formula. This is what I am trying to accomplish exactly (and I tried writing it out step by step like this, but keep getting an error):

If the cell O equals "Band 10 Target 70%", then "EXEC"
If the cell O equals "Band 13 Target 100%", then "EXEC"
If the cell O equals "Band 15 Target 125%", then "EXEC"
If the cell O equals "Band 8 Target 45%", then "EXEC"
If the cell O equals "Band 9 Target 50%", then "EXEC"
If the cell O equals "Band 9G Target 60%", then "EXEC"
If the cell O equals "Band 7 Target 40%", then "VP"
If the cell O equals "Band 2 Target 5%", then "Support"
If the cell O equals "Band 5 Target 20%", then "Dir"
If the cell O equals "Band 5S Target 0%", then "Dir"
If the cell O equals "Band 6 Target 30%", then "Sr. Dir"
If the cell O equals "Band 6S Target 0%", then "Sr. Dir"
If the cell O equals "Band 3 Target 10%", and cell K contains these words "Manager", then "Manager", otherwise, "Prof"
If the cell O equals "Band 3S Target 0%", and cell K contains these words "Manager", then "Manager", otherwise, "Prof"
If the cell O equals "Band 4 Target 15%", and cell K contains these words "Senior Manager", then "Sr. Mgr"
If the cell O equals "Band 4 Target 15%", and cell K contains these words "Associate Director", then "Assoc Dir"
If the cell Oequals "Band 4S Target 0%", and cell K contains these words "Senior Manager", then "Sr. Mgr"
If the cell O equals "Band 4S Target 0%", and cell K contains these words "Associate Director", then "Assoc Dir"

Is there a better way? LOL
I was thinking of using INDEX MATCH, but I hate how those formulas always get messed up when you sort or change anything.
Any thoughts would be be so much appreciated!

1693420579205.png
 

Attachments

  • 1693420536004.png
    1693420536004.png
    36.2 KB · Views: 4

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
I'm not sure if MS expanded IF functions in the more recent editions. But, I believe you can only have 15 Nested IF levels.+
correction: It looks like you can have 64. Maybe it is 15 in VBA statements. I am at a loss now.

But, I don't understand your comments on INDEX MATCH. Generally your INDEX area would not be in a worksheet location that would be at risk of manipulation (If it is lookup table type of information).
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

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