+ Reply to Thread
Results 1 to 5 of 5

Using the IF function for various discount cost.

  1. #1
    Registered User
    Join Date
    08-30-2007
    Posts
    82

    Using the IF function for various discount cost.

    Hi all

    i am looking at automatically working out the final discount cost price of individual products with varying levels of % discount. i am assuming that this would use the IF function and is very straight forward.

    can you help. i have added the spreadsheet were column C is the current net price and column D contains the discount code and finally column E would contain the new discount cost. i have added the table where the code has its representative discount value.

    Thank you very much in advance

    Phil
    Attached Files Attached Files
    Last edited by Phil Walters; 04-02-2012 at 09:14 AM. Reason: solved

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Using the IF function for various discount cost.

    in E2:

    C2*(1-SUMPRODUCT((D2=$I$5:$I$15)*1,$J$5:$J$15)/100)

    And copy down.

    You should change "NET" in J15 to 0, otherwise items with discount code K will return an error.
    Last edited by Søren Larsen; 04-02-2012 at 08:12 AM. Reason: Forgot a few "$"
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  3. #3
    Registered User
    Join Date
    08-30-2007
    Posts
    82

    Re: Using the IF function for various discount cost.

    Hi soren

    Thanks but i am cleary missing something. when i copy it in it just copies the formula and does nothing with it.

  4. #4
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Using the IF function for various discount cost.

    Quote Originally Posted by Phil Walters View Post
    Hi soren

    Thanks but i am cleary missing something. when i copy it in it just copies the formula and does nothing with it.
    I forgot an "=", see if it works now:

    =C2*(1-SUMPRODUCT((D2=$I$5:$I$15)*1,$J$5:$J$15)/100)

    If it does not, then try switching the "," with a ";".

  5. #5
    Registered User
    Join Date
    08-30-2007
    Posts
    82

    Re: Using the IF function for various discount cost.

    Excellent work Soren

    Works a treat

    Thank you very much

    Phil

+ 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