IF AND, IF OR AND?

Alex501

Board Regular
Joined
Dec 11, 2015
Messages
61
Office Version
  1. 365
  2. 2019
Hi I have a nested if formula to work out an agents 'status' based on revenue which works fine, however I've been asked to reduce the targets for 2 agents as they have been with us for much less time.

My original formula looke like;

=IF(E20<75000,"None",IF(E20<100000,"Iron",IF(E20<225000,"Bronze",IF(E20<575000,"Silver",IF(E20<750000,"Gold",IF(E20<1250000,"Platinum",IF(E20<1900000,"Diamond",IF(E20<2150000,"Hall of Fame",IF(E20<2600000,"Rockstar",IF(E20>=2600000,"Club President"))))))))))

I somehow need to add in that if the sales agent is Jim or Rob then to use the reduced targets. I''ve tried various incarnations of IF AND and IF OR but getting nowhere.

The targets and stauses are;

1737443414846.png


Any help would be greatly appreciated.

Thanks

Alex
 
I suggest that you investigate XL2BB for providing sample data to make it easier for helpers by not having to manually type out sample data to test with.
(If you have trouble with XL2BB, review the "XL2BB Icons greyed out" link in the 'Known XL2BB issues' section near the top of the XL2BB Instructions page linked above.)

Is this what you want?

25 01 21.xlsm
DEFGHIJ
1TeamJim & Rob
2Iron75,00055,000
3Bronze100,00075,000
4Silver225,000150,000
5Gold575,000350,000
6Platinum750,000575,000
7Diamond1,125,000875,000
8Hall of Fame1,900,0001,250,000
9Rock Star2,150,0001,600,000
10Club President2,600,0002,000,000
11
18
19AgentAmountStatus
20Ken167,458Bronze
21Anne2,500,000Rock Star
22Pam76,625Iron
23Jim76,625Bronze
24Robin161,713Bronze
25Rob1,700,000Rock Star
26Tom1,700,000Diamond
27Jen3,000,000Club President
28Don40,000None
Status
Cell Formulas
RangeFormula
F20:F28F20=IFNA(INDEX(H$2:H$10,MATCH(E20,IF(OR(D20={"Jim","Rob"}),J$2:J$10,I$2:I$10))),"None")
 
Upvote 0
Solution
Hi Peter

Apologies, XL2BB is now installed, thanks for the advice.

Your solution works perfectly, thanks very much for your assistance.

Alex
 
Upvote 0

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