excel+vba+training - if statement excel
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

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

replyReply Thu 8 Nov 2007, 10:24Delegate Dan said...

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)))

For upcoming training course dates see: Pricing & availability

replyReply Thu 8 Nov 2007, 14:40 Edited on Thu 8 Nov 2007, 14:42Trainer Anthony said...

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

 

Excel tip:

How to select certain data in an Excel 2010 workbook

If you want to select the correct data set in a page full of data, the most accurate and efficient way of doing this is to use the ''Shift and Click'' technique.

For example: If you want to select all data in cells A2 to E10, then click on cell A2, hold down the Shift key and click on cell E10 and all the data you want to see is highlighted.

Keep holding down the Shift key and you can move from cell E10 to any other cell in the spreadsheet.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard