+ Reply to Thread
Results 1 to 7 of 7

Calculate the totals for each supplier between two dates

  1. #1
    Registered User
    Join Date
    08-15-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2013
    Posts
    18

    Calculate the totals for each supplier between two dates

    Hi,

    I am not sure if this is possible in its current format, however I need to find all occurrences of each supplier over a given period (i.e start date & end date) and add their corresponding invoice totals to get the total spend for that period.

    Attached is a sample of the data set.

    I have tried using SUMPRODUCT but have only managed to get it to calculate how many times a given supplier is shown in the period but not sum their invoice totals.

    i.e =SUMPRODUCT((A2:A15>=B18)*(A2:A15<=B19)*(C2:X15=A23)) --> when i have tried adding arguments to this formula to add invoice totals, I get #value or #N/A.

    Any assistance would be most appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Calculate the totals for each supplier between two dates

    g23 =SUMPRODUCT(($A$2:$A$15>=$B18)*($A$2:$A$15<=$B19)*(E$2:E$15=$A23)*(G$2:G$15)) and copy to the right in column K, O etc

    after that drag the formula (for the whole range) down.

    b23 =SUM(E23:X23) and drag the formula down.

    See the atttached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    12-11-2012
    Location
    London
    MS-Off Ver
    2010
    Posts
    9

    Re: Calculate the totals for each supplier between two dates

    Hi,

    You can try sumif option
    Please Login or Register  to view this content.
    If you remove dates it will sum whole range and dates can work as range limiters. At the moment it will work for only one block of invoices but you could expand it more. What i would suggest is duplicating dates and keeping everything its separate row.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    In /dev/null No One Can Hear You Scream

  4. #4
    Registered User
    Join Date
    08-15-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2013
    Posts
    18

    Re: Calculate the totals for each supplier between two dates

    Thank you both for your great suggestions.

    I slightly modified oeldere's formula to check all corresponding columns together and it worked perfectly.

    thanks again..

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Calculate the totals for each supplier between two dates

    Please add the modified solution (including the file) on the forum, so other forummembers can also learn from it.

  6. #6
    Registered User
    Join Date
    08-15-2015
    Location
    Sydney, Australia
    MS-Off Ver
    2013
    Posts
    18

    Re: Calculate the totals for each supplier between two dates

    Yes, good point.

    Here is the modified formula and file.
    =SUMPRODUCT(($A$2:$A$15>=$B$18)*($A$2:$A$15<=$B$19)*(($E$2:$E$15=$A23)*($G$2:$G$15)+($I$2:$I$15=$A23)*($K$2:$K$15)+($M$2:$M$15=$A23)*($O$2:$O$15)+($Q$2:$Q$15=$A23)*($S$2:$S$15)+($U$2:$U$15=$A23)*($W$2:$W$15)))

    It is essentially Oeldere's formula but with the additional step taken out of having to sum the totals under each column.

    Thank you again guys.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Calculate the totals for each supplier between two dates

    Thanks for marking the question solved.

    It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

+ 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. [SOLVED] Formula to calculate supplier evaluation scores based on their profit margin %
    By The_Snook in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-09-2015, 06:03 PM
  2. Replies: 3
    Last Post: 04-08-2014, 04:54 AM
  3. I have supplier name in excel.. I need a VBA to the Supplier Web URL
    By Kiran Kurapati in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2013, 01:25 AM
  4. Replies: 11
    Last Post: 02-11-2013, 08:10 AM
  5. Replies: 3
    Last Post: 01-03-2013, 10:42 AM
  6. How to calculate discounts based on certain supplier codes/tags?
    By rishim in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-06-2012, 04:16 AM
  7. [SOLVED] calculate totals
    By Marilyn in forum Excel General
    Replies: 3
    Last Post: 07-10-2006, 03:29 AM

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