Results 1 to 9 of 9

Extract data by month and year

Threaded View

  1. #1
    Registered User
    Join Date
    05-03-2023
    Location
    U.S.
    MS-Off Ver
    365
    Posts
    4

    Extract data by month and year

    I have a large 2 column data set that contains date & time and their corresponding values recorded every 15 minutes (mm-dd-yy h:mm format) for multiple years. I need to create a table that counts the number of data points >zero by month for each year. I titled and formatted the table columns by date, Jan-2020, Feb-2020, etc. off to the side in row 9. I want to search the data set based on the month and year of the column title. I have tried both of the following but get 0 (zero) as a result.

    =COUNTIFS($D$10:$D$35049,"="&DATE(YEAR(P$9),MONTH(P$9),1),F10:F35049,">0")
    =COUNTIFS($D$10:$D$35049,"="&MONTH(Q$9),$D$10:$D$35049,"="&YEAR(P$9), F10:F35049,">0")

    Where dates for the data are in column D, the data are in column F, and row 9 is the targeted month and year, which is column P in this example.

    Is there another way to do this?
    Attached Files Attached Files
    Last edited by Kekeken; 05-03-2023 at 12:35 PM. Reason: attachment

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Formula to extract Data based on Month & Year
    By Howardc1001 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-17-2020, 09:17 AM
  2. [SOLVED] formula to extract month and year
    By Howardc1001 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 07-25-2019, 01:24 PM
  3. Extract month number and year
    By Howardc1001 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-28-2019, 12:28 PM
  4. Extract month and year from a cell
    By Wojtek-AU in forum Excel - New Users/Basics
    Replies: 24
    Last Post: 08-15-2016, 02:56 AM
  5. [SOLVED] Extract Year, Month, Day from date
    By stoicy in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-28-2016, 11:48 PM
  6. Extract Year, Month, Day from date
    By stoicy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-28-2016, 01:41 PM
  7. Extract data based on month/year to a simple table.
    By maax555 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-15-2014, 09:55 AM

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.6.0 RC 1