+ Reply to Thread
Results 1 to 7 of 7

How To Count Unique Values in COL A Subject for each unique value in COL B ??

  1. #1
    Registered User
    Join Date
    06-05-2012
    Location
    Sydney,Australia
    MS-Off Ver
    Excel 2010
    Posts
    2

    How To Count Unique Values in COL A Subject for each unique value in COL B ??

    This is my 1st post on this forum..
    How To Count Unique Values in COL A Subject for each unique value in COL B ??

    My COL A is Date
    My COL B is Text (Driver)
    My COL C is $Amount,

    Would like to find out for each unique value in COL B
    How Many Uniqe days he has worked in COL A ??
    Members of COL B ( Drivers ) get a daily base wage for every day that they work ..
    ( in any day that they work they could be doing many number of jobs )
    this is why I need to find out the unique number of days ( COL A ) that each unique Driver (COL B ) has worked ??

    Once I get this part sorted I can easily Find out how much to pay for
    and later on work out their pay and commission ..
    Harderst thing at this stage for me is the 1st part ..

    Please help me ..

    Regards
    Amir
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How To Count Unique Values in COL A Subject for each unique value in COL B ??

    Hi Amir and welcome to the forum,

    See the attached where there are 2 Pivot Tables that might solve most of your problem. As for commissions above a certain hour mark, I'd need to deal with that in another try. Let us know if Pivot Tables are any help.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    06-05-2012
    Location
    Sydney,Australia
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How To Count Unique Values in COL A Subject for each unique value in COL B ??

    Hi Marvin
    Thank you for your table.
    I it does solve most of my problem.
    The driver get paid for every day that turn up for work.
    Still need to figure out how to count the rows between drivers (AA,BB,CC,DD,... )
    AA only worked 5 days but how do I get this 5 from the table ??
    Amir From Sydney ..

  4. #4
    Valued Forum Contributor mohd9876's Avatar
    Join Date
    05-04-2011
    Location
    Amman, Jordan
    MS-Off Ver
    Excel 2010
    Posts
    426

    Re: How To Count Unique Values in COL A Subject for each unique value in COL B ??

    Check the attachment.
    Attached Files Attached Files

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How To Count Unique Values in COL A Subject for each unique value in COL B ??

    Okay, maybe a bit late in joining in, but see if this helps, at least for stage 1.
    I have hidden the helper columns K:L with a grouping button, helper columns save using array entered formulae.
    Attached Files Attached Files
    Last edited by Marcol; 06-05-2012 at 08:36 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How To Count Unique Values in COL A Subject for each unique value in COL B ??

    Hey - you are never too late with a good answer.

    Here is a Pivot Table that does a similar thing using 2 helper columns. Why can't I get my Helper 2 column in a single step? I'm not good enough with SumProduct or CSE . I'd love to see a formula that didn't need helper1 and just gave helper2. See attached for count of days a driver works.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: How To Count Unique Values in COL A Subject for each unique value in COL B ??

    Since you are looking for unique DATES, try this with CTRL+SHIFT+ENTER,

    =SUM(IF(FREQUENCY(IF(B$2:B$56=I2,A$2:A$56),A$2:A$56),1))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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