+ Reply to Thread
Results 1 to 7 of 7

Count data within certain month in a different sheet

Hybrid View

  1. #1
    Registered User
    Join Date
    05-30-2016
    Location
    The Netherlands
    MS-Off Ver
    2013
    Posts
    26

    Count data within certain month in a different sheet

    Hi,

    I'm trying to make a few formula's to get an overview of my data sheet.

    1) Count the amount of rows that contain the month June-2018 in column 'J3 and down' sheet2. Then I want to be able to drag this formula down to also count the following months.
    2) Count how many times the word "JA" occurs in column 'D3 and down' sheet2 within the month June-2018 (dates are noted in column J3 and down). Then I also want to be able to drag this formula down to count the following months aswell.

    Date format is: d-m-yyyy

    Any help would be greatly appreciated!

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Count data within certain month in a different sheet

    Date format d-m-yyyy is irrelevant. Format of the cell is only what it LOOKS like.
    What matters is whether the VALUE of that cell is an actual date or text. Which you haven't said. I'm assuming it's an actual date otherwise this won't work.

    1. Try (untested) =SUMPRODUCT(--(TEXT(Sheet2!J3:J1000,"mmmm-yyyy"=J3))
    2. Try (untested) =SUMPRODUCT((TEXT(Sheet2!J3:J1000,"mmmm-yyyy"=J3)*(D3:D1000="JA"))
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    05-30-2016
    Location
    The Netherlands
    MS-Off Ver
    2013
    Posts
    26

    Re: Count data within certain month in a different sheet

    Please close
    Attached Images Attached Images
    Last edited by Gunther09; 06-05-2018 at 10:42 AM.

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Count data within certain month in a different sheet

    My mistake, should be 3 brackets at the end

    Try these

    1. Try (untested) =SUMPRODUCT(--(TEXT(Sheet2!J3:J1000,"mmmm-yyyy"=J3)))
    2. Try (untested) =SUMPRODUCT((TEXT(Sheet2!J3:J1000,"mmmm-yyyy"=J3)*(D3:D1000="JA")))

  5. #5
    Registered User
    Join Date
    05-30-2016
    Location
    The Netherlands
    MS-Off Ver
    2013
    Posts
    26

    Re: Count data within certain month in a different sheet

    Unfortunately still the same message. I attached the file and removed all sensitive information, so you can see it for your self.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,080

    Re: Count data within certain month in a different sheet

    1. In your original description you stated "Sheet2".
    We can't read minds. You need to tell us what the sheet is called. You didn't. I assumed it was called Sheet2.
    If your Sheet is called something else then you need to change the name of the sheet in the formula.

    2. You also left out the = sign in the formula so Excel will think your formula is data. Any Excel user knows when they enter a formula they need to enter an = sign.

    3. This sheet does not match your original description, Row 3 is now a column header. You implied it was data.
    "Count the number of rows that contain the month June-2018 in column J3."
    It now looks as though you are matching that against the month, ONLY THE MONTH. They wont match.

    There's too much messing around between what you originally described and what you actually want.
    I'm done with this. This is the second time this week I've had someone describe something that doesn't reflect their actual required output.
    Don't bother replying, I've unsubscribed from this thread.

    You're on your own.

  7. #7
    Registered User
    Join Date
    05-30-2016
    Location
    The Netherlands
    MS-Off Ver
    2013
    Posts
    26

    Re: Count data within certain month in a different sheet

    1. With sheet2 i ment second sheet, my bad for the incorrect formulation.

    2. I left out the = sign on purpose because it was impossible to place the formula because of the error. I should have mentioned that.

    3. The second sheet is where the data is coming from, the 3rd row there is actual data. See column 'J' in the second sheet for all dates (including June).

    I'm sorry for wasting your time, and thanks for putting in the time anyway.

+ 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] Count the times a month/year appear in a list of data
    By CliffyBiro in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-05-2018, 11:40 PM
  2. Count of data by day and month - Event locator
    By Broccoli in forum Excel General
    Replies: 2
    Last Post: 07-23-2016, 01:38 PM
  3. How to count data entered in previous month and last week
    By maxi0009in in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-08-2016, 10:09 AM
  4. [SOLVED] Count number of occurrences in month (google sheet)
    By Juliansmity in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-13-2015, 12:17 PM
  5. i need to add data from todays count sheet to tomorrows count sheet
    By elm907 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-06-2015, 08:26 PM
  6. [SOLVED] Populate summary sheet with values within specific month column on data sheet...
    By blue91 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-12-2013, 12:11 PM
  7. Using MONTH() formula's to count data?
    By dandavis1 in forum Excel General
    Replies: 7
    Last Post: 03-25-2010, 10:17 AM

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