+ Reply to Thread
Results 1 to 4 of 4

Sum/Count/Average based on multi criteria in table, skip duplicates when not needed.

  1. #1
    Registered User
    Join Date
    08-19-2015
    Location
    London, England
    MS-Off Ver
    365
    Posts
    67

    Post Sum/Count/Average based on multi criteria in table, skip duplicates when not needed.

    Hi,

    First of all: thanks for taking the time to read my post

    I've tried numerous of formulas from this forum, but unfortunately I haven't been succesful...

    I have a table with:

    Things---------Date------------Amount-----Day of the week
    Thing 01-----10-08-2015----------5---------------Mo
    Thing 02-----10-08-2015----------2---------------Mo
    Thing 01-----10-08-2015----------3---------------Mo
    Thing 03-----10-08-2015----------2---------------Mo
    Thing 01-----17-08-2015----------2---------------Mo
    Thing 03-----17-08-2015----------1---------------Mo
    Thing 01-----17-08-2015----------6---------------Mo
    Thing 01-----24-08-2015----------1---------------Mo
    Thing 03-----24-08-2015----------4---------------Mo
    Thing 01-----11-08-2015----------3---------------Tu
    Thing 02-----11-08-2015----------4---------------Tu
    Thing 01-----11-08-2015----------1---------------Tu

    Etc.

    The table is about 30.000 rows big and Things run up to 100 different names.

    My variables are; Day of the week & Things

    I would like to calculate how many Mondays (or Tuesdays, Wednesdays as in my table) per unique date I've got. In this case: 3
    Also, I'd like to know the sum of each Monday per Thing. So the correct answer would be:
    Thing 01 - 17
    Thing 02 - 2
    Thing 03 - 7
    And with these I could calculate the average per Thing per Monday (or Tuesdays, Wednesdays as in my table).

    When possible, a option to select Multi Things when needed.

    Many thanks in advance..!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    06-21-2010
    Location
    -
    MS-Off Ver
    Excel 2010
    Posts
    1,211

    Re: Sum/Count/Average based on multi criteria in table, skip duplicates when not needed.

    For the COUNT use:

    Please Login or Register  to view this content.
    For the SUM, use:

    Please Login or Register  to view this content.
    and adjust the formula according to you criteria, e.g. Tuesday or the date or the Thing...
    Thanks,
    HangMan

    You can say "Thank you!" by clicking Add Reputation below the post.
    Please, mark your thread [SOLVED] if you are happy with the solution.

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,557

    Re: Sum/Count/Average based on multi criteria in table, skip duplicates when not needed.

    TestFile-1(PT calc field sol).xlsx
    Here is a possible solution that uses a Pivot Table with a calculated field, also notice that it employees a helper column (count) with the formula:
    Please Login or Register  to view this content.
    Let me know if you have any questions.

  4. #4
    Registered User
    Join Date
    08-19-2015
    Location
    London, England
    MS-Off Ver
    365
    Posts
    67

    Re: Sum/Count/Average based on multi criteria in table, skip duplicates when not needed.

    @HangMan

    Thanks for your quick reply..

    I'm not able to test your solution right now (not at work), so please correct me if I'm wrong:

    Doesn't the last part of your formula (,Tabel1[Date],"10/8/15") mean that I have to specify each date seperately..? As far as my knowledge goes this part would give me a result of 2 for "Thing 01" (with Day of the week value "Mo" on that specific date "18-08-2015").
    The list can go up to a year of data (i.e. 365 different days), so that would be kind of problematic..

    @JeteMC
    Working with Pivot Tables is my Plan B, mos def..! But eventually there are some more criteria I'll have to fit in the formula I'm looking for, and because of that I'mm looking for a formula first.

+ 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] Bring the values based on multi criteria from a data table
    By nadeem.ansari1980 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-12-2014, 07:00 AM
  2. [SOLVED] Help needed making portions of a drag down/multi sheet data pull formula skip cells
    By vmackie in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-21-2014, 05:14 PM
  3. [SOLVED] Count duplicates in column based on criteria
    By roxylai in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-23-2013, 07:32 PM
  4. [SOLVED] count with multiple criteria without duplicates based on a different column
    By antagonanin in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2013, 09:46 AM
  5. [SOLVED] Count without duplicates based on multiple criteria from different cells
    By perryadam in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2013, 12:54 PM
  6. Help needed to perform COUNT based on multiple criteria
    By mattzz11 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-26-2012, 03:25 PM
  7. Skip Repeats without Deleting w/Multi-Criteria involved
    By PowerSchoolDude in forum Excel General
    Replies: 1
    Last Post: 03-18-2010, 04:31 AM

Tags for this Thread

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