+ Reply to Thread
Results 1 to 2 of 2

looking for function to calculate discount containing several criteria

  1. #1
    Registered User
    Join Date
    05-08-2014
    MS-Off Ver
    GSheets
    Posts
    20

    looking for function to calculate discount containing several criteria

    Hi,

    I have a GSheet with several Line Items, where i want to calculate the discount given (see attachment)

    however the complication is that i need to know the total discount, whenever there are 2 or more line items with the same client name. basically my discount formula including a check if there are more line items with that client and giving me the the discount of the sum of standard price vs negotiated price

    any idea how the formula needs t look like?
    Attached Images Attached Images
    Last edited by k1282; 12-17-2019 at 08:44 AM.

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,742

    Re: looking for function to calculate discount containing several criteria

    If I correctly understand:


    A
    B
    C
    D
    1
    Name Std price Negt price discount?
    2
    test1
    1490
    1100
    -7.56%
    3
    test1
    890
    1100
    -7.56%
    4
    avesome
    1490
    1490
    0.00%



    A
    B
    C
    D
    1
    Name Std price Negt price discount?
    2
    test1
    1490
    1100
    =(SUMIFS(C:C,A:A,A2)/SUMIFS(B:B,A:A,A2))-1
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Calculate discount but ignore highest value
    By ngocpdn in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2019, 07:53 AM
  2. How to calculate discount in PowerPivot??
    By mrxlsx in forum Excel General
    Replies: 1
    Last Post: 06-13-2015, 12:16 AM
  3. Complex User-Defined Function to calculate CFs and discount them
    By arthuro in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-22-2014, 08:23 AM
  4. Macro to calculate discount
    By amarjeet.it in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2013, 08:55 AM
  5. calculate the value of a mortgage purchased at a discount
    By Jim@cch in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2005, 03:05 AM
  6. calculate the value of a mortgage purchased at a discount
    By Jim@cch in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2005, 12:05 AM
  7. calculate the value of a mortgage purchased at a discount
    By Jim@cch in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2005, 10:05 PM

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