+ Reply to Thread
Results 1 to 14 of 14

Resource allocation based on week numbers

  1. #1
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Resource allocation based on week numbers

    Hi,
    I am trying to have excel count the week numbers automatically based on the duration of the project.
    I have attached an example.

    The red text is filled in manually.
    The blue text is based on the week number function based on the date I put in.
    What I want to achieve is when I add a number to "Weeks in total" I want that number, i.e. 2, to automatically give me the week numbers for the duration of the job.
    If it is 4 weeks, I want it to count all 4 week numbers per column. Columns highlighted in green.

    The purpose of it is to be able to use a table in another sheet counting the value in the week numbers column to show it on a timeline.
    So if Resource 1 (Name 1) has a job starting 01.january 2023 and it lasts for 2 weeks I need excel to automatically find both week numbers and show me in the table.
    The desired output is marked in blue.

    I really hope that this is doable
    Attached Files Attached Files
    Last edited by maximelling; 01-04-2023 at 09:28 AM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Resource allocation based on week numbers

    Delete the expected results.

    =SEQUENCE(,C2,WEEKNUM(B2,2))

    copied down.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Resource allocation based on week numbers

    Hi, thank you! This is extactly what I needed.

    And this has caused another question, while trying to extract the values I have a timeline like this:

    Attachment 811697

    The formula to get the data:
    =COUNTIFS(PROJECTS!B:B;"Active";PROJECTS!M:M;C9;PROJECTS!P:P;2)
    Where 2 is the week date. My problem now is that I do not only get week numbers from column P, but all the way to W. How can I write the COUNTIFS with multiple columns?

    Thanks

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Resource allocation based on week numbers

    A picture is of little use. Post an Excel sheet, please.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,585

    Re: Resource allocation based on week numbers

    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    1 is the week number.

    Note: Try to avoid referring the whole column or whole row. It will slow down Excel. Give some definite range, say B1:B10000.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 01-03-2023 at 11:39 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Resource allocation based on week numbers

    Hi,
    I tried adding the SUMPRODUCT but it did not work.
    I have uploaded an example.
    Attached Files Attached Files

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,585

    Re: Resource allocation based on week numbers

    What does W1 ,W2 indicate.
    Pl see file. Formula working
    Attached Files Attached Files

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Resource allocation based on week numbers

    Is this it?

    =SUMPRODUCT(($B$2:$B$5=$P10)*($E$2:$J$5=Q$9))
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Resource allocation based on week numbers

    Yes, it works now!

    THANK YOU!!!

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Resource allocation based on week numbers

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please click on "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  11. #11
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Resource allocation based on week numbers

    Hi,
    sorry - I am missing the function to ensure that only active projects are a part of the equation.
    The status Active is in column A.


    I tried kvsrinivasamurthy's solution, but I did not get it to work.

  12. #12
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,419

    Re: Resource allocation based on week numbers

    One way: Expands on Glenn's formula in Post #8:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  13. #13
    Registered User
    Join Date
    04-12-2012
    Location
    Stavanger
    MS-Off Ver
    Office 365
    Posts
    39

    Re: Resource allocation based on week numbers

    That worked! Thank you!!

  14. #14
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,419

    Re: Resource allocation based on week numbers

    Glad to have helped. Thanks for the feedback and rep .

+ 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. Solver for Resource Allocation
    By hiwire03 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-24-2022, 10:42 PM
  2. [SOLVED] Resource scheduler: HELP! formula that will place 7-week bar on dates based on source date
    By bhughes73 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-04-2022, 12:02 AM
  3. [SOLVED] Resource Allocation per day
    By chullan88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-07-2017, 01:10 PM
  4. [SOLVED] Resource Allocation Problem
    By chullan88 in forum Excel General
    Replies: 13
    Last Post: 08-25-2016, 02:50 AM
  5. [SOLVED] Solver - Resource Allocation Example
    By zanshin777 in forum Excel General
    Replies: 12
    Last Post: 12-21-2015, 01:49 PM
  6. Resource allocation Per Project
    By excelhelpexcel in forum Excel General
    Replies: 0
    Last Post: 04-07-2014, 05:14 PM
  7. resource allocation
    By andrugrasu in forum Excel General
    Replies: 0
    Last Post: 02-26-2014, 01:17 PM

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