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

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,215,460
Messages
6,124,949
Members
449,198
Latest member
MhammadishaqKhan

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