+ Reply to Thread
Results 1 to 5 of 5

Translate ~Number of days in a week to number of days across months

  1. #1
    Registered User
    Join Date
    04-07-2004
    Posts
    11

    Translate ~Number of days in a week to number of days across months

    Hi,

    I am putting together a sheet where we are looking to get users to estimate the number of days to do a task for each week, i.e. W/c 17/11 = 5-days, 24/11 - 5 days, 1/12 - 5 days.

    And then I need to provide an output of this as days per months, i.e. November - 10; December - 5.

    Of course the start and end of weeks don't tie up witht the start and end of months so I have to be a little clever. I have started with an idea of using an intermediary sheet to list all of the days individually and then do a countif against the dates to pull back the number of days in each month.

    But this is going to be unwieldy and also the number of columns in a sheet is going to limit the amount of time that users can enter the effort for, i.e. 254 columns = 254 days = 36-weeks.

    Is there a way to use an array formula or something similar to do this calculation?

    Thanks,

    Martin

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi,

    You don't need anything as complicated as that. Provided you use date values, formatted however you want, you'll always be able to perform date arithmetic, probably with a SUMIF() function or some other variations. But you do need to define your requirement. For instance if someone projects 5 days for the w/c 29th December, does that count in the December total or January? Only you can decide that.

    HTH

  3. #3
    Valued Forum Contributor
    Join Date
    09-19-2008
    Location
    It varies ...
    MS-Off Ver
    Office365 - 64bit
    Posts
    862
    If someone enters 1 day in (say) w/c 29 Sep 08 (which has 2 days in Sep and 3 days in Oct) ... are you OK to have that time allocated to Oct? Similarly, if they enter 2 days, both go against Oct; 3 days = 1 in Oct / 1 in Sep; 4 days ... well, you get the idea - start at Monday and count forward. Reason is that they might have worked the Thursday but on a weekly basis there's no way to allocate to the correct day. If this is not OK, there's no way I can think of to do this without detailing the timesheet to a daily basis. If it is OK, then this is pretty simple
    MatrixMan.
    --------------------------------------
    If this - or any - reply helps you, remember to say thanks by clicking on *Add Reputation.
    If your issue is now resolved, remember to mark as solved - click Thread Tools at top right of thread.

  4. #4
    Registered User
    Join Date
    04-07-2004
    Posts
    11
    Thanks for the suggestions so far. I agree that I can just use some simple arithmetic to allocate the days all to the month that the week starts in - but as it ends up driving financial forecasting I don't think that this wil be sufficient.

    I need to split the days across the months so there is an accurate split on the assumption that each week will 5-working days and if not then the days will split pro-rata across the month, i.e. if someone enters 3-days then there would be 0.6 days allocated to each day of that week.

    Does anyone have any other ideas? Otherwise it does look like the best option will be to use the intermediate page.

    Thanks,

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi Martin,

    I came up with the following, but have just realised that your working week is 5 days. The following is based on 7, but you can no doubt modify it - I haven't time just at the moment.

    I created a table of months with 1-12 in the first column and the days in each month in the second column, and named this table "ME_Table".

    Then with the Monday week start days starting in A6 going down, e.g. 24/11, 1/12, 8/12 etc. and the days for that week in B6....the following formula in C6 apportions the days when a week straddles a month boundary.

    Please Login or Register  to view this content.
    As I say it perhaps wants tweaking to reflect 5 day working week. Then presumably you'll just have a second table of month names with a SUMIF() to add the week values in each month.

    HTH

+ 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