+ Reply to Thread
Results 1 to 8 of 8

Excel if Function

  1. #1
    Registered User
    Join Date
    02-03-2010
    Location
    malta
    MS-Off Ver
    Excel 2003
    Posts
    46

    Excel if Function

    Hi,

    I have used IF functions but never combined 2 together. My problem is this:

    I have Column A which is the sales target, Column B has the sales done, Column C has if 80% of the target has been reached and it displays YES or No. D is the commission to be paid.

    What is i want to do is :

    If B is equal to or larger than A multiply by R5 (where I have the value to be paid). The follwoing is the formula i am using - so far so good

    =IF((F7 >= C7),$R$5, 0)

    Now I want to add to the formula that if the target is not reached but 80% of it is reached I want to multiply by R6

    How can i do this in the same cell.

    Thanks

    Ian
    Last edited by ianmb; 05-31-2010 at 11:24 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Excel if Function

    Maybe:

    =IF(F7 >= C7,$R$5, IF(F7>=0.8*C7,$R$6,0))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Excel if Function

    Perhaps try

    =IF(F7>=C7,$R$5,IF(F7>=C7*80%,$R$6,0))

    That way you don't really need a Yes/No column.....

  4. #4
    Registered User
    Join Date
    02-03-2010
    Location
    malta
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Excel if Function

    Quote Originally Posted by daddylonglegs View Post
    Perhaps try

    =IF(F7>=C7,$R$5,IF(F7>=C7*80%,$R$6,0))

    That way you don't really need a Yes/No column.....
    Hi Thanks for your prompt reply. This has worked ok but I also need (apologies did not specify before) to multiply R6 by the number of sales which where actually achieved (column B) over the 80% mark. Can this be done?

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Excel if Function

    You could do that like this

    =IF(F7>=C7,$R$5,MAX(0,F7-C7*80%)*$R$6)

    ....but do you want to multiply $R$5 by something too?

  6. #6
    Registered User
    Join Date
    02-03-2010
    Location
    malta
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Excel if Function

    Hi,

    I do not need to multiply $R$5 by something too, but I do not think the formula is giving me a correct answer. What i want to achieve for example is if the target is 20, and sales reached where 17 (ie over 80%) i want to pay 17 pro rate so that if I have €2.00 per sale the payout will be 34.

    thanks
    Last edited by NBVC; 05-31-2010 at 11:19 AM. Reason: deleted quoting

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Excel if Function

    OK, I thought that you only wanted to multiply by the amount over 80% not the whole amount, in that case try

    =IF(F7>=C7,$R$5,IF(F7>=C7*80%,$R$6*F7,0))

  8. #8
    Registered User
    Join Date
    02-03-2010
    Location
    malta
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: Excel if Function

    Hi

    This worked perfectly - thanks for your help !!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1