Automatically shift columns based on start/end date

rflee97

New Member
Joined
May 6, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello everyone,

I am working on a project employee capacity-sheet, with several projects and the capacity for each month.
I want the percentages (D2:M4) shifted automatically when I, let's say, change the end date to 2023-05.

How do I achieve this? Thank you so much in advance! :-)


Map1
ABCDEFGHIJKLMNO
12022-052022-062022-072022-082022-092022-102022-112022-122023-012023-022023-032023-042023-05
2Project APerson A100%100%100%100%100%100%100%100%100%100%
3Person B100%100%100%100%100%100%100%100%100%100%
4Person C100%100%100%100%100%100%100%100%100%100%
5
6Start date2022-06
7End date2023-03
Blad1
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hello,

Your question seems to be lacking detail. You state that you want the percentages (D2:M4) to shift automatically but its not clear how exactly you would like things shifted.

Using the example you gave in this case changing the End Date in C7 from 2023-03 to 2023-05 you want the percentages to "shift"

Does this mean you then want the percentages to shift from D2:M4 over to F2:O4

Or are you then trying to have it populate N2:O4 with 100% so you then have D2:O4 set to 100%

Maybe include a before and after example of what you are trying to achieve, and what should it do for the blanks? In this example if you extend the End Date to 2023-05 there are no values in Columns N and O.

Please clarify what you are trying to achieve.
 
Upvote 0
Is this what you're looking for?

Before
shift.xlsx
ABCDEFGHIJKLMNO
12022-052022-062022-072022-082022-092022-102022-112022-122023-012023-022023-032023-042023-05
2Project APerson A 100%100%100%100%100%100%100%100%100%100%  
3Person B 100%100%100%100%100%100%100%100%100%100%  
4Person C 100%100%100%100%100%100%100%100%100%100%  
5
6Start date2022-06
7End date2023-03
Sheet1
Cell Formulas
RangeFormula
C2:O4C2=IF(AND(C$1>=$C$6,C$1<=$C$7),1,"")


After
shift.xlsx
ABCDEFGHIJKLMNO
12022-052022-062022-072022-082022-092022-102022-112022-122023-012023-022023-032023-042023-05
2Project APerson A 100%100%100%100%100%100%100%100%100%100%100%100%
3Person B 100%100%100%100%100%100%100%100%100%100%100%100%
4Person C 100%100%100%100%100%100%100%100%100%100%100%100%
5
6Start date2022-06
7End date2023-05
Sheet1
Cell Formulas
RangeFormula
C2:O4C2=IF(AND(C$1>=$C$6,C$1<=$C$7),1,"")
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,184
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top