+ Reply to Thread
Results 1 to 9 of 9

count unique values across multiple sheets based on date

  1. #1
    Registered User
    Join Date
    11-03-2010
    Location
    cape town
    MS-Off Ver
    Excel 2007
    Posts
    27

    count unique values across multiple sheets based on date

    good day

    i wish to count how many times a specific value occur on a specific date across different sheets. i am attaching a sample workbook.
    Book1_sample.xlsx
    in the workbook, the dates are extracted from the various sheets and added in cells C3:L3 (or as many dates there are)
    B4:B are constants that will remain there and the values that needs to be found and counted
    the values being counted are always in column F in the different sheets.

    either code or a formula would work, pivot tables not ideal.

    your assistance is highly appreciated

    regards

  2. #2
    Forum Guru XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,508

    Re: count unique values across multiple sheets based on date

    Hi,

    A couple of questions:

    What do you mean by count 'unique' values in your thread title?

    Just checking the first of your desired outcomes, how do you arrive at a result of 4 for 02084876 on 02-Feb-14? I see only 3: 1 in A Codes and 2 in B Codes.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    11-03-2010
    Location
    cape town
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: count unique values across multiple sheets based on date

    i meant that the values are unique.
    i miscounted on your second question. my apologies... (happens when one stares too long at these things)

  4. #4
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, United Kingdom
    MS-Off Ver
    Office 365
    Posts
    1,217

    Re: count unique values across multiple sheets based on date

    Hi, try the attached

    Please Login or Register  to view this content.
    Cheers, berlan
    Attached Files Attached Files

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,749

    Re: count unique values across multiple sheets based on date

    1st, put all your sheet names in a small table, then give that range a name - I used "codes"

    You can then use this, copied down and across...
    =SUMPRODUCT(COUNTIFS(INDIRECT("'"&codes&"'!F2:F50"),$B4,INDIRECT("'"&codes&"'!a2:a50"),C$3))

    My answers dont match what you had, so hopefully they were all dummy answers?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,749

    Re: count unique values across multiple sheets based on date

    Quote Originally Posted by XOR LX View Post
    Just checking the first of your desired outcomes, how do you arrive at a result of 4 for 02084876 on 02-Feb-14? I see only 3: 1 in A Codes and 2 in B Codes.

    Regards
    Thats what I get too

  7. #7
    Registered User
    Join Date
    11-03-2010
    Location
    cape town
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: count unique values across multiple sheets based on date

    thanks guys.... works brilliant

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    50,749

    Re: count unique values across multiple sheets based on date

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: count unique values across multiple sheets based on date

    Using COUNTIFS this will work. I changed the "TEXT" numbers to real numbers.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. Replies: 8
    Last Post: 07-13-2012, 06:00 AM
  2. count unique values in columns based on date values
    By cclntn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-29-2010, 06:16 PM
  3. how to count unique values in excel based on multiple criteria
    By IDBUGM in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2006, 12:10 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