+ Reply to Thread
Results 1 to 8 of 8

What week numbers are in a specific month

  1. #1
    Registered User
    Join Date
    07-04-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    3

    What week numbers are in a specific month

    Hi all,

    I'm new to this forum and in a little bit of a bind with an excel report I need to create.

    I am receiving automatically weekly data into an excel spreadsheet (i.e. 1-52). This weekly data I now need to group by month (i.e. 1-12). Ideally I could use a PivotTable to do this but the software I'm using (which has excel embedded) doesn't allow PivotTables.

    Is there any other way to group the weekly data into month? I'm conscious that each year will have a varying number of weeks in a month so any help which you can give would be appreciated.

    Thanks in advance

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: What week numbers are in a specific month

    How your data look like? Are there any dates in any column?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    07-04-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: What week numbers are in a specific month

    Yes. I'm getting a timestamp column and data column. The raw data which I have is coming with a timestamp of yyyy-mm-dd hh:mm

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: What week numbers are in a specific month

    In this case, perhaps you can use month function for getting the month of the date..

    =Month(a1)

    ..and then use this information to create your report..using INDEX & MATCH functions...

    But i'll be able to help you more if you upload a small sample workbook...

    Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  5. #5
    Registered User
    Join Date
    07-04-2013
    Location
    Ireland
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: What week numbers are in a specific month

    Sure no problem.

    Essentially I converted the timestamp to week number using the function WeekNum. From here I have data from week 1 to (currently) week 25. What I'm looking for is a way to automatically populate the month (i.e. Month 1) with the number of weeks within that month. Manually it's not an issue as I can do through calendar and identify how many weeks are in a specific month but I'd like to automate it so any given month will know exactly the required number of weeks to sum.

    I hope this makes sense.
    Attached Files Attached Files

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

    Re: What week numbers are in a specific month

    2013 4 309.063

    What value belongs to januar and what value belongs to februar?
    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.

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: What week numbers are in a specific month

    We can use the Timestamp column to use in our formula.

    =SUMPRODUCT((MONTH($A$2:$A$1000)=F3)*($D$2:$D$1000))
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    07-02-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    197

    Re: What week numbers are in a specific month

    I dont think there is any possibilty to make a formula to based only on Year and Weeknumbers to calculate this.

    I suggest that you manually insert a new column C called "Month" and for each week put in the month number that you want to allocate that week to.

    Then you can do this formula in cell G2 (old F3):

    =SUMIF(C:C,F3,D:D)

    Copy the formula down

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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