Formula help

BORUCH

Well-known Member
Joined
Mar 1, 2016
Messages
528
Office Version
  1. 365
Platform
  1. Windows
Hi all

i have been breaking my head to figure this out if someone can help me i would greatly appreciate it

the formula is as follows

=IF(data[Discount Percentge]=0,"no discount",IF(AND(data[Discount Percentge]>0,data[Discount Percentge]<=0.05),"discount 1 .00% to 5.00%",IF(AND(data[Discount Percentge]>=0.05000001,data[Discount Percentge]<=0.1),"discount 2 5.00% to 10.00%",IF(AND(data[Discount Percentge]>=0.10001,data[Discount Percentge]<=0.35),"Discount 3 10.00 % TO 35.00 %",IF(AND(data[Discount Percentge]>=0.35001,data[Discount Percentge]<=0.75),"Discount 4 35.00 % TO 75.00 %",IF(AND(data[Discount Percentge]>=0.75001,data[Discount Percentge]<=100),"DISCOUNT 5 75.00 % TO 100.00 %","NEGATIVE"))))))

my problem is if i have a discount percent of exactly 5.00% it shows negative the question is why

if someone can please help me

thanks
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
I suspect it's not exactly 5%, how about
=IF(data[Discount Percentge]=0,"no discount",IF(data[Discount Percentge]<=0.05,"discount 1 .00% to 5.00%",IF(data[Discount Percentge]<=0.1,"discount 2 5.00% to 10.00%",IF(data[Discount Percentge]<=0.35,"Discount 3 10.00 % TO 35.00 %",IF(data[Discount Percentge]<=0.75,"Discount 4 35.00 % TO 75.00 %",IF(data[Discount Percentge]<=100,"DISCOUNT 5 75.00 % TO 100.00 %","NEGATIVE"))))))
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,212
Members
449,074
Latest member
cancansova

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