problems with nested IF

CharJT

New Member
Joined
Jan 20, 2005
Messages
2
Hi :)

I'm trying to create a spreadsheet for my husband, who has to pay commissions based on the amount. However, no matter what is typed in D3, the result is always 4.8. (I get that I goofed up somewhere...I just can't figure out where!)

This is the equation:

=IF(AND(D3>0.01,D3<0.99),0.3,IF(AND(D3>1,D3<9.99),0.35,IF(AND(D3>10,D3<24.99),0.6,IF(AND(D3>25,D3<49.99),1.2,IF(AND(D3>50,D3<199.99),2.4,IF(AND(D3>200,D3<499.99),3.6,4.8))))))

What have I done wrong?

Thank you for your help :)

Char
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
Try to use a lookup table of commissions and a lookup formula instead of a chain of IFs.
 

Forum statistics

Threads
1,147,689
Messages
5,742,633
Members
423,745
Latest member
rtaylor1987

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