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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
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
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
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
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
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
His solution should meet your needs? Have you tried it, are you not getting the results you expect?
 
Upvote 0
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,214,848
Messages
6,121,917
Members
449,055
Latest member
KB13

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