Copying Cell Contents Based on Date

mattyn

Board Regular
Joined
Apr 20, 2015
Messages
148
Hi All
I have running a manpower whereabouts spreadsheet - and want to automate some bits of it.

Columns A-P are each employee details.

Column R onwards is a day by day whereabouts - each column is a day and and I have a selection of 6 codes for each whereabouts. The codes are SI, IA, SoS, D, C, L.

Column R onwards is headed by the date in the format dd-mmm-yy.

For each employee I want to automate(copy) column P to match what is in Column R onwards based on the applicable column for todays date.

Cell L1 shows todays date by =Today().

I have thought about saying P = R but I may not delete the columns for past days each day - I would have to delete columns so Column R is always today.

For instance - today Column R is headed 07-Apr-20. On 15 Apr 20 for each row I want Column P to copy what Column Z would say if I had not deleted Columns R to Y. Hope that makes sense? Prefer to use a function/formula rather than code.

Many thanks in advance

Matt
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type

Forum statistics

Threads
1,214,983
Messages
6,122,591
Members
449,089
Latest member
Motoracer88

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