Another If/Then Statement Please

Carol Fraser

Board Regular
Joined
Oct 15, 2007
Messages
56
Here are my arguments:

If E3=85,.5
If E3=90,.75
If E3=95,.9
If E3>1,E3
If E3<.85,0

Help please.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

Jon von der Heyden

MrExcel MVP, Moderator
Joined
Apr 6, 2004
Messages
10,894
Office Version
  1. 365
Platform
  1. Windows
Perhaps:

=IF(ISNA(VLOOKUP(E3,{85,0.5;90,0.75;95,0.9},2,0)),IF(E3>1,E3,0),VLOOKUP(E3,{85,0.5;90,0.75;95,0.9},2,0))

...but what do you want to do if E3 is greater than 0.85 and less than 0?



EDIT: Hello Andrew... Long time :)
 
Last edited:
Upvote 0

Andrew Fergus

MrExcel MVP
Joined
Sep 9, 2004
Messages
5,452
Office Version
  1. 365
  2. 2021
  3. 2016
Platform
  1. Windows
Hi Carol

Assuming you have made some typos with your example, for instance 85 should be .85 or 85%, what result would you want to see for 0.86?

Andrew
 
Upvote 0

Carol Fraser

Board Regular
Joined
Oct 15, 2007
Messages
56
I'm a dork. Yes, there needs to be something in between. So, .5 for 85 to 90, .75 for 90 to 95, etc.

Sorry about that....very tired.

Thanks.

carol
 
Last edited:
Upvote 0

Andrew Fergus

MrExcel MVP
Joined
Sep 9, 2004
Messages
5,452
Office Version
  1. 365
  2. 2021
  3. 2016
Platform
  1. Windows
ADVERTISEMENT
Hi

Using Jon's approach, try this formula:
=IF(E3>=1,E3,VLOOKUP(E3,{0,0;0.85,0.5;0.9,0.75;0.95,0.9},2))

Andrew

P.S. Hi Jon, yes it has! I've been flat out lately......:)
 
Upvote 0

Carol Fraser

Board Regular
Joined
Oct 15, 2007
Messages
56
Andrew, sorry but as I said earlier, I'm a dork. How would I write it if:

E3 is between .85 and .90, .5
E3 is between .90 and .95, .75
E3 is between .95 and 1.0, .9
E3 > 1, E3
E3 < .85, 0
 
Upvote 0

schielrn

Well-known Member
Joined
Apr 4, 2007
Messages
6,941
His solution should meet your needs? Have you tried it, are you not getting the results you expect?
 
Upvote 0

Andrew Fergus

MrExcel MVP
Joined
Sep 9, 2004
Messages
5,452
Office Version
  1. 365
  2. 2021
  3. 2016
Platform
  1. Windows
Hi Carol

As suggested by schielrn in what way is this not working? Are the values at each cusp causing problems - e.g. should 0.9 be 0.50 or 0.75?

And don't be too hard on yourself.....:)

Andrew
 
Upvote 0

Forum statistics

Threads
1,195,673
Messages
6,011,087
Members
441,582
Latest member
Topkapi

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
Top