Results 1 to 5 of 5

HELP count how many cells are in a specific week number per month

Threaded View

  1. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: HELP count how many cells are in a specific week number per month

    Okay, I made a few minor changes.
    First, in Summary!B6, I changed it to Jan 1, 2016 and formatted it as custom mmm (=Jan)
    then in B10 and copied to appropriate cells down,
    =EDATE(B6, 1) also formatted as mmm

    Then in Sheet1!D2 copied down,
    =IF(C2<>C1, (B2&C2)*1, D1)
    I use this column to find the first and last date (Col A) for each week

    Then in Summary!E7 copied across and down (to appropriate cells), this Golliath

    =COUNTIFS(April!$B$3:$Z$3,">="&INDEX(Sheet1!$A$2:$A$367, MATCH((MONTH($B6)&COLUMNS($E$22:E$22))*1,Sheet1!$D$2:$D$367,0)), April!$B$3:$Z$3, "<="&INDEX(Sheet1!$A$2:$A$367, MATCH((MONTH($B6)&COLUMNS($E$22:E$22))*1,Sheet1!$D$2:$D$367)))

    See attached. Questions?
    EDIT: Modified formulas as they would not work for 2 digit months
    Attached Files Attached Files
    Last edited by ChemistB; 04-28-2016 at 12:59 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] macro to copy specific columns and rows for a specific month and week
    By Shellybelly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-23-2015, 11:23 AM
  2. Count number of cells in column per month, ignore blank cells
    By lamdl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-13-2014, 08:50 PM
  3. Replies: 2
    Last Post: 12-17-2013, 06:30 AM
  4. [SOLVED] Count the number cells > 0 for each day of the month.
    By Chanley24 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-09-2013, 12:37 AM
  5. Receiving a date week by week depends on specific number?
    By ExcelBG in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-27-2013, 10:20 AM
  6. Replies: 10
    Last Post: 01-22-2012, 10:05 AM
  7. Replies: 1
    Last Post: 03-05-2011, 04:18 PM

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