+ Reply to Thread
Results 1 to 5 of 5

How to calculate discounts based on certain supplier codes/tags?

  1. #1
    Registered User
    Join Date
    08-06-2012
    Location
    Worldwide
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to calculate discounts based on certain supplier codes/tags?

    Hi everyone,

    I am trying to write a formula that will automatically calculate NET pricing based on set discount rates for various suppliers.

    The formula I have used is as follows:
    =IF(B2=OR("AA","BB","CC","DD","EE","FF","GG"),G2*0.9)

    Supplier tags are located in B2 and are two characters.

    Basically, the subtotals are located in G2 and I want to formula to show the NET pricing (10% off).

    I am trying to say that if the value in B2 is equal to any of the above mentioned tags, that the formula should reflect a 10% discount.

    My apologies in advance if this post is not clear.

    Thank you.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: How to calculate discounts based on certain supplier codes/tags?

    Hi

    Try

    =IF(B2={"AA","BB","CC","DD","EE","FF","GG"},(G2*0,9),"")

    ---------- Post added at 08:49 AM ---------- Previous post was at 08:36 AM ----------

    Apologize for this...

    =IF(OR(B2={"AA","BB","CC","DD","EE","FF","GG"}),(G2*0.9),"")
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    08-06-2012
    Location
    Worldwide
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to calculate discounts based on certain supplier codes/tags?

    Awesome... It worked. Thank you!

    Would there be any way to expand this and use a single formula to say if HH, II, and so on = 15%, LL = 25%, MM = 30% (for example)? A few of my suppliers have higher discount levels.

    The idea is to keep track of all my components ordered for the month in a single excel worksheet so it would be easier for me to check Statements the following month.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: How to calculate discounts based on certain supplier codes/tags?

    You might be better of using a LOOKUP then. Make sure the suppliers are alhabetically listed in the array

    =LOOKUP(A1,{"AA","BB","CC","DD","EE","FF","GG","HH","II","JJ",........},{0.9,0.9,0.9,0.9,0.9,0.9,0.9,0.15,0.15,0.15,......})
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: How to calculate discounts based on certain supplier codes/tags?

    hello
    another approach.

    compute.xlsx
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

+ 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