+ Reply to Thread
Results 1 to 7 of 7

Thread: Need to SUM units based on multiple criteria while ignoring duplicate dates

  1. #1
    Registered User
    Join Date
    11-03-2011
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2010
    Posts
    10

    Need to SUM units based on multiple criteria while ignoring duplicate dates

    I have a worksheet that I need help on (See attached).

    I need a formula that can track the total # of people impacted (Column 'E') per presenter (Column 'A') , but I need the formula to be able to account for lessons that occured on the same day (Column 'C').

    Example:

    A ............B...............C..........D.....E
    Arun....Lesson 5.....14-Nov...3.75...18
    Arun....Lesson 8.....14-Nov...3.75...18
    Arun....Lesson 11...14-Nov... 3.75...18
    Arun....Lesson 9.....10-Oct....3.75...30
    Arun....Lesson 10...31-Oct....3.75...31
    Sam....Lesson 5.....14-Nov...3.75...18
    Sam....Lesson 8.....14-Nov...3.75...18
    Ben.....Lesson 11...14-Nov... 3.75...18
    Ben.....Lesson 9.....10-Oct....3.75...30
    Ben.....Lesson 10...31-Oct....3.75...31

    For "Arun", a basic SUM function would return 115, but I need a formula that would return a value of 79, because Lessons 5 8 & 11 occured on the same day and only impacted 18 people (i.e., not 54)
    Attached Files Attached Files
    Last edited by StephenAF; 12-16-2011 at 11:40 AM.

  2. #2
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    Location: Location
    MS-Off Ver
    Excel 2007
    Posts
    266

    Re: Need to SUM units based on multiple criteria while ignoring duplicate dates

    Couldn't you accomplish it with a pivot table?
    I '<3' reputation. If I helped, click the scales. This will be helping an internal departmental competition with co-workers.

    Reputation can be granted through the Scales Icon (for classic layout), or the little Star on the bottom of the post next to the blogging function for the new forum layout.

    If you're not busy, and really feel down on life, read my excel blog which may or may not have contents.

  3. #3
    Registered User
    Join Date
    11-03-2011
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Need to SUM units based on multiple criteria while ignoring duplicate dates

    I've tried that, but the way I'm already using the pivot table just totals the numberws per presenter as a whole. So the numbers are much hire than they really are. I need this formula so that I can have the correct info in the source data for the pivot table.

  4. #4
    Valued Forum Contributor dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    New Delhi, India
    MS-Off Ver
    Excel 1997, 2000, XP, 2003, 2007, 2010
    Posts
    2,403

    Re: Need to SUM units based on multiple criteria while ignoring duplicate dates

    Hi StephenAF,

    See the attached file and let me know if this works for you

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey
    +919810929744
    dilipandey@gmail.com

  5. #5
    Registered User
    Join Date
    11-03-2011
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Need to SUM units based on multiple criteria while ignoring duplicate dates

    Hi DILIPandey,

    The results were exactly what I needed, but I need them to show in one cell that is apart of the source code. This dummy sheet represents a piece of a much larger sheet that acts as the source code for another pivot table.

    The ideal state is a formula that can calculate the #'s to the total on your sheet, but not in a pivot table format.

    Cheers,
    StephenAF

  6. #6
    Valued Forum Contributor Haseeb A's Avatar
    Join Date
    05-24-2011
    Location
    India | Kwt
    MS-Off Ver
    2007
    Posts
    1,460

    Re: Need to SUM units based on multiple criteria while ignoring duplicate dates

    This formula will give the Arun's Total # of people impacted (EXCLUDING duplicate dates)

    =SUM(IF(SIGN(FREQUENCY(IF(Table4[Presenter]="Arun",Table4[Date]),Table4[Date])),Table4['# of people impacted]))

    Confirmed with CTRL+SHIFT+ENTER
    HTH; Haseeb

    If your problem is solved, please say so clearly, and mark your thread as Solved:
    Forum Rules & How to Mark a thread as SOLVED

  7. #7
    Registered User
    Join Date
    11-03-2011
    Location
    Seattle, Washington
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Need to SUM units based on multiple criteria while ignoring duplicate dates

    Haseeb,

    That's amazing! Thank you. That works perfectly. Surprisingly I'm already using a code VERY similar to this in this workbook, but I couldn't seem to adjust it for this purpose.

    Thank you very much everyone for your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0