+ Reply to Thread
Results 1 to 8 of 8

Sub total based on date change and supplier

  1. #1
    Registered User
    Join Date
    06-19-2014
    Location
    Montreal
    MS-Off Ver
    Office 365
    Posts
    12

    Sub total based on date change and supplier

    I need to calculate the number of different orders that have been made based on the supplier and the date. MY Excel file has the supplier name in the collumn A, and the order date in the collumn B. Each date change for a specific supplier is one order. I need to calculate the total of different order.

    Thanks for helping,

    Simon

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sub total based on date change and supplier

    Post about 20 rows worth of sample data and tell us what result you expect.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    06-19-2014
    Location
    Montreal
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Sub total based on date change and supplier

    Hi,

    Here is a sample excel file.
    https://drive.google.com/file/d/0B04...ew?usp=sharing

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sub total based on date change and supplier

    I don't see anywhere that shows us what results you expect?

  5. #5
    Registered User
    Join Date
    06-19-2014
    Location
    Montreal
    MS-Off Ver
    Office 365
    Posts
    12

    Re: Sub total based on date change and supplier

    We made orders to suppliers (collumn A). An order can have multiple different items (Collumn C), ordered on the same date (Collumn B). I want to know how many different orders we made during the year. I guess i need a sub-total for each supplier (A) based on the total of different date (B). For example, A & C AMERICAN CHEMICALS LTEE has 2 different orders, ABRATECH INC. has 8 different orders (different date), etc. I need the total.

    Thanks...

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sub total based on date change and supplier

    Try this array formula**:

    =SUM(IF(FREQUENCY(MATCH(A2:A112&B2:B112,A2:A112&B2:B112,0),ROW(A2:A112)-ROW(A2)+1),1))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Based on your sample this returns 63.

  7. #7
    Registered User
    Join Date
    06-19-2014
    Location
    Montreal
    MS-Off Ver
    Office 365
    Posts
    12

    Thumbs up Re: Sub total based on date change and supplier

    Perfect! Thanks Tony, exactly was I was looking for, it will save time...

    Regards,

    Simon

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sub total based on date change and supplier

    You're welcome. Thanks for the feedback!

+ 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] Lookup Fee Based on Supplier and Rate Charged
    By The_Snook in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-20-2016, 06:44 PM
  2. Replies: 0
    Last Post: 01-28-2014, 07:37 AM
  3. Show total amount per supplier in one click
    By jaymkent in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-08-2013, 09:15 AM
  4. Replies: 2
    Last Post: 10-06-2013, 02:03 PM
  5. Replies: 3
    Last Post: 05-08-2013, 07:25 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. Replies: 2
    Last Post: 07-08-2009, 05:45 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