Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create an IF THEN formula in Excel 2007 1

Status
Not open for further replies.

BlueHorizon

Instructor
Jan 16, 2003
730
US
Hi everyone!

Here's my question:

I have the value 250 in a cell. If the value is <=200, I want to multiply the value by 2. If the value is >=200, I want the multiply the first 200 by 2 and I want to multiply whatever is >200 by .5

Any help in constructing this formula is welcome and appreciated!

TIA,


Best,
Blue Horizon [2thumbsup]
 


hi,
have the value 250 in a cell. If the value is <=200, I want to multiply the value by 2. If the value is >=200, I want the multiply the first 200 by 2 and I want to multiply whatever is >200 by .5

Assuming that the value is in A1...
[tt]
=if(a1<=200,a1*2,(a1-200)*.5+400)
[/tt]


Skip,

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Thanks so much, Skip! You da' bomb! Works like a charm!

HAGD,
Kathy

Best,
Blue Horizon [2thumbsup]
 

Note:

If the value is <=200 do something
If the value is >=200 do something else

In both cases you have the value = 200, that usually doesn't work.

Usually it's <=200 with > 200
Or <200 with >=200

sam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top