Forum Discussion

User9573053's avatar
User9573053
Copper Contributor
Jun 16, 2023
Solved

Dynamically Adjusting Remaining Values

Hello,

 

I have an Excel workbook with two sheets: "Time Allocated" and "Time Spent". At the moment I have the same data in each sheet - in column A I have a list of unique project reference codes; in column B I have the total days allocated for each project; in column C I have the start month of each project (based on the first day of the month); in column D I have the end month of each project (based on the last day of the month). In columns E-W, I have months Jun-23 to Dec-24.

 

In the "Time Allocated" sheet, in each row against each project, I want a formula to automatically split the total days allocated between the relevant project months equally. For instance, in row 9 I have a total project budget of 11 days, a start month of Jun-23 and an end month of Oct-23, so 5 month duration - so I want the project budget split under the monthly columns as 2.2 in each month. I don't want to show any allocated time after Oct-23 for that particular project, but if I had a project with a start month of Nov-23 and an end month of Apr-24, I would only want the allocated time split equally between those months.

 

In the "Time Spent" sheet, I will be entering the time spent in each month under the same monthly columns. Back on the "Time Allocated" sheet, I then want the time available in each subsequent month for that project to reduce accordingly to show the remaining time available, but not to reduce the allocated time in preceding or the same month as the logged time. Continuing my above example, if I log 2.2 in Jun-23 (column E) then the remaining allocation doesn't need to adjust, but if I log 4 in Jul-23 (column F), I want the remaining months (Aug-23 to Oct-23, G-I) to reduce equally accordingly, so in this instance they would show 1.6 days available.

 

I want this formula to work for any project in my range, and any project duration between Jun-23 and Dec-24.

 

Can anyone help please?

7 Replies

  • User9573053 

    Could you attach a small sample workbook with some dummy data, or if that is not possible, make it available through OneDrive, Google Drive, Dropbox or similar?

    • User9573053's avatar
      User9573053
      Copper Contributor

      I can't share the workbook due to workplace settings sorry but here's the data, the same in both sheets - Time Allocated would be where I need the formula, Time Spent would be where I manually input the data.

      Project RefTotal DaysProject Month StartProject Month EndJun-23Jul-23Aug-23Sep-23Oct-23Nov-23Dec-23Jan-24Feb-24Mar-24Apr-24May-24Jun-24Jul-24Aug-24Sep-24Oct-24Nov-24Dec-24
      119Jun-23Jun-23                   
      26Jun-23Jun-23                   
      34Jun-23May-23                   
      44Jun-23Jul-23                   
      57Jun-23Oct-23                   
      62Jun-23Jun-23                   
      72Jun-23Jun-23                   
      811Jun-23Nov-23                   
      916Jun-23Aug-23                   
      106Jun-23Nov-23                   
      1110Jun-23Dec-23                   
      1212Jun-23Dec-23                   
      1312Jun-23Dec-23                   
      141Jun-23Jun-23                   
      154Jun-23Jun-23                   
      161Jun-23Jun-23                   
      171Jun-23Jun-23                   
      181Jun-23Jun-23                   
      190.5Jun-23Jun-23                   
      203Jun-23Jun-23                   
      212Jun-23Jun-23                   
      2210Jun-23Jun-23                   
      231Jun-23Jun-23                   
      243Jun-23Jun-23                   
      251Jun-23Nov-23                   
      260Jun-23Dec-23                   
      270Jun-23Dec-23                   
      280Jun-23Dec-23                   
      2912Jun-23Dec-23                   
      3012Jun-23Dec-23                   
      311Jun-23Jun-23                   
      323.5Jun-23Sep-23                   
      331Jun-23Jun-23                   
      340Jun-23Aug-23                   
      350.5Jun-23Jun-23                   
      368Jun-23Jun-23                   
      372.5Jun-23Jun-23                   
      382Jun-23Jun-23                   
      391Jun-23Jun-23                   
      402Jun-23Jun-23                   
      4122.5Jun-23Jun-23                   
      424.5Jun-23Sep-23                   
      433Jun-23Sep-23                   
    • User9573053's avatar
      User9573053
      Copper Contributor

      HansVogelaar I can't share a workbook due to workplace settings, but here's my table below (apologies, will need pasting into Excel). At the moment, the table is duplicated on each sheet - Time Allocated would be the one with the formula, Time Spent would be where I manually enter the data.

      Project RefTotal DaysProject Month StartProject Month EndJun-23Jul-23Aug-23Sep-23Oct-23Nov-23Dec-23Jan-24Feb-24Mar-24Apr-24May-24Jun-24Jul-24Aug-24Sep-24Oct-24Nov-24Dec-24
      119Jun-23Jun-23                   
      26Jun-23Jun-23                   
      34Jun-23May-23                   
      44Jun-23Jul-23                   
      57Jun-23Oct-23                   
      62Jun-23Jun-23                   
      72Jun-23Jun-23                   
      811Jun-23Nov-23                   
      916Jun-23Aug-23                   
      106Jun-23Nov-23                   
      1110Jun-23Dec-23                   
      1212Jun-23Dec-23                   
      1312Jun-23Dec-23                   
      141Jun-23Jun-23                   
      154Jun-23Jun-23                   
      161Jun-23Jun-23                   
      171Jun-23Jun-23                   
      181Jun-23Jun-23                   
      190.5Jun-23Jun-23                   
      203Jun-23Jun-23                   
      212Jun-23Jun-23                   
      2210Jun-23Jun-23                   
      231Jun-23Jun-23                   
      243Jun-23Jun-23                   
      251Jun-23Nov-23                   
      260Jun-23Dec-23                   
      270Jun-23Dec-23                   
      280Jun-23Dec-23                   
      2912Jun-23Dec-23                   
      3012Jun-23Dec-23                   
      311Jun-23Jun-23                   
      323.5Jun-23Sep-23                   
      331Jun-23Jun-23                   
      340Jun-23Aug-23                   
      350.5Jun-23Jun-23                   
      368Jun-23Jun-23                   
      372.5Jun-23Jun-23                   
      382Jun-23Jun-23                   
      391Jun-23Jun-23                   
      402Jun-23Jun-23                   
      4122.5Jun-23Jun-23                   
      424.5Jun-23Sep-23                   
      433Jun-23Sep-23                   

Resources