+ Reply to Thread
Results 1 to 5 of 5

Calculating the number of times a value appears based on Month and Year

  1. #1
    Registered User
    Join Date
    02-10-2015
    Location
    Bozeman, Montana
    MS-Off Ver
    2013
    Posts
    9

    Calculating the number of times a value appears based on Month and Year

    I have attached a sample of what I'm trying to do and hope someone can help. I have one worksheet with a date and an ID value and another worksheet that contains a list of the same ID values that may repeat multiple times. I'm trying to get a count for the number of times the ID value repeats but only include IDs that fall within a specified month/year.

    Sample.xlsx

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Calculating the number of times a value appears based on Month and Year

    with an pivot table.

    See the attached file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    02-10-2015
    Location
    Bozeman, Montana
    MS-Off Ver
    2013
    Posts
    9

    Re: Calculating the number of times a value appears based on Month and Year

    Thank you for your quick response, but I don't think this is working as expected. There are values on the second sheet that should be counted not the number of items per month. January should have 4 for a value because A1, B1, C1 appear 4 times on sheet 2.

    Thanks,

    Alex

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Calculating the number of times a value appears based on Month and Year

    with an pivot table.

    see the attached file.

  5. #5
    Registered User
    Join Date
    02-10-2015
    Location
    Bozeman, Montana
    MS-Off Ver
    2013
    Posts
    9

    Re: Calculating the number of times a value appears based on Month and Year

    I appreciate your help with this but I think we are looking at the results differently. Sheet1 contains an ID column and a Date. For each month in the date column we need to determine the number of times the ID on sheet one appears on Sheet2 based on the month so:

    On Sheet1 if we look at January we have IDs of A1, B1 and C1. We would then look at Sheet2 for any rows that contain A1, B1 and C1. A1 appears twice, B1 appears once, and C1 appears once. This means that on Sheet1 under January we should have a value of 4. (2+1+1)

    Thanks,

    Alex

+ 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. Calculating number of times individual number appears in a pivot table
    By snoopy1461 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-15-2014, 08:39 AM
  2. Counting the number of times a month appears in a list
    By john dalton in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-16-2013, 12:48 PM
  3. Counting the number of times a month appears
    By Kololo in forum Excel General
    Replies: 3
    Last Post: 02-24-2012, 10:29 PM
  4. Replies: 2
    Last Post: 11-06-2011, 11:01 PM
  5. Counting number of times a cell reference appears in a 12 month period
    By Alistar3000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2010, 04:52 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