+ Reply to Thread
Results 1 to 5 of 5

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

Hybrid View

  1. #1
    Registered User
    Join Date
    06-10-2014
    Posts
    8

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

    Hello. Please help. I badly need to track the orders (or codes) that needed to be completed in the specified date. This is my Data looks like (sheet1 named "April." my date is horizontal instead of vertical):

    "refer to attached screenshot"

    In a separate sheet (sheet2 named "Summary"), I created the below table to gauge on how many codes are expected be completed in a specific week (based on the dates in sheet1:

    "refer to attached screenshot"

    I have Sheet3 (named "Sheet1") prepared as reference for the dates (column A) and their month number (column B) with the week number (slightly altered as I need exact week number of the month i.e. week 1, week2, week 3, week 4 or week 5 or the month of May):

    "refer to attached screenshot"

    What I want to do is get the date fom sheet1 for the expected completion dates and reference it with sheet 3 and count how many codes and record it in sheet 1.

    PLEASE PLEASE HELP. *sorry for the sheet naming :(
    Attached Images Attached Images
    Attached Files Attached Files

  2. #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

  3. #3
    Registered User
    Join Date
    06-10-2014
    Posts
    8

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

    Thank you very much for helping me on this. One question though, the sheet named April, next week, I will need to create another sheet named May and input data there same as April the formula (the long one) I noticed has the April sheet only as reference.

    What if I created another sheet for codes that will be assigned to me starting next week and named it "May" (different month different sheet).

    I still want the Summary sheet to still capture and count the codes of the completion dates regardless of the sheet the dates are entered. It will still be in the same row though - row 3.

    Please help.

  4. #4
    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

    You would need to copy that formula for all the sheets which would be crazy. Can you enter all your data on a single sheet and then have it dispersed to multiple sheets (if you need it by month?) The other solution would be a VBA macro that does everything for you.

  5. #5
    Registered User
    Join Date
    06-10-2014
    Posts
    8

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

    We are expected to complete 80 codes per week which I just thought the file will be difficult to open or modify which such a large file size as data gets added in just one sheet. Still, thank you for all of your help. I appreciate it.

+ 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] 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