excel+vba+training - if statement excel

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel+vba+training - If Statement - Excel

excel+vba+training - If Statement - Excel

resolvedResolved · Low Priority · Version Standard

Dan has attended:
No courses

If Statement - Excel

Hello

I have this IF statement which should work out the commission for a customer baed on how many units they sell
Here is the breakdown of the commission factors (they get a percentage of a set fee)

0-500 35%
501-750 40%
751-1000 45%
1001+ 50%

Now i have the formula for the IF statement as follows, but it doesnt work, can you tell me where im going wrong please

=IF(E4>=1001,((B4*50%)*(E4-1001))+((B4*45%)*250))+((B4*40%)*250)+((B4*35%)*500),IF(E4>751,((B4*45%)*(E4-751))+((B4*40%)*250))+((B4*35%)*500)),IF((E4>501,(B4*40%)*(E4-501))+((B4*35%)*500)),IF(E4<500,(B4*35%)*501),0)))

Edited on Thu 8 Nov 2007, 14:42

RE: If Statement - Excel

Hi Dan:

It's a 'Brackets' problem! I've attached a workbook containing the amended function - the formula is in A10.

By the way, I haven't tested to see if the function works the way you want it to (I'll leave that to you!) - just that it works!

Regards,

Tony Gay

Attached files...

Multiple IFs.xls

 

Training courses

 

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Creating custom lists

In Excel if you type in January in a cell, you can then copy this cell to replicate Febraury, MArch, April etc.

This list has come from Tools- options and Custom lists.

Therefore to save time and create your own list you can click on New (in Tools and custom list tab) and type out the lsit that you want copied quickly.

All you have to do is then type in the 1st word and you will be able to copy the rest of the list quickly.

View all Excel hints and tips


Server loaded in 0.11 secs.