SOLVED

Dynamically Adjusting Remaining Values

Copper Contributor

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?

@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                   

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 

Could you provide one or two rows from both sheets with values filled in, showing the expected result?

@HansVogelaar 

Sure thing! So on "Time Allocated", before anything is entered into "Time Spent" the allocations for Projects 4 & 8 should show like this (I've included less rows for ease):

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-2322                 
57Jun-23Oct-23                   
62Jun-23Jun-23                   
72Jun-23Jun-23                   
811Jun-23Oct-232.22.22.22.22.2              
916Jun-23Aug-23                   

 

Then on "Time Spent", if I enter this 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-232                  
57Jun-23Oct-23                   
62Jun-23Jun-23                   
72Jun-23Jun-23                   
811Jun-23Nov-232.2                  
916Jun-23Aug-23                   

 

There shouldn't be any change to the data in "Time Allocated" as the correct allocated time was used, so future month allocations remain the same. But, if I enter the data below into "Time Spent":

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-231                  
57Jun-23Oct-23                   
62Jun-23Jun-23                   
72Jun-23Jun-23                   
811Jun-23Nov-232.24                 
916Jun-23Aug-23                   

 

I've gone under the allocation on Project 4 in June, and as-expected on Project 8 in June, but then I've gone over in July. I would then want the data in "Time Allocated" to dynamically update to:

 

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-2313                 
57Jun-23Oct-23                   
62Jun-23Jun-23                   
72Jun-23Jun-23                   
811Jun-23Oct-232.241.61.61.6              
916Jun-23Aug-23                   

This has then decreased the allocation for Project 4 in June and increased the remaining allocation for July. On Project 8, it's kept June's allocation the same as it was, increased July's and subsequently reduced the available allocation for August-October. 

 

Hope that makes sense, thanks Hans 🙂

best response confirmed by User9573053 (Copper Contributor)
Solution

@User9573053 

Thanks. See the attached demo workbook. Please note that the formulas in columns F, G etc. are different from those in column E.

I think this is it, thank you so much Hans! I'll do some more testing 🙂
1 best response

Accepted Solutions
best response confirmed by User9573053 (Copper Contributor)
Solution

@User9573053 

Thanks. See the attached demo workbook. Please note that the formulas in columns F, G etc. are different from those in column E.

View solution in original post