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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel IF statement to give a discount

Status
Not open for further replies.

Chris559

Instructor
Dec 29, 2002
30
0
0
GB
I want to give a 5% discount to orders (values) over £50. I have put in the following formula:

=IF(G48<50,G48/100*95,G48/100*100) which doesn't work. It returns whatever the value is in G48 no matter if it is greater than 50 or not.

I also tried =IF(G48<50,G48/100*95,G48) to no avail.

What am I doing wrong?
 
I believe you want:
IF(G48>50,G48-(G48*.95),G48)
Note the use of > and the decimal point
This is the final value after the 5% discount.
If you want a separate column just to show the discount:
IF(G48>50,G48*.05,0)

No need to divide by 100.

Cheers!

Howard Hammerman,
Crystal Training and Crystal Material
On-site classes and one-on-one coaching
Low-cost telephone/email support
FREE independent Crystal newsletter
howard@hammerman.com
800-783-2269
 
Many thanks - will teach me to be more observant!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top