How can I copy and paste a value down in a column until the next value in a sequence?

Sadsmileyface

New Member
Joined
Mar 21, 2013
Messages
11
I have a sheet that comes out in a terribly unfriendly format. It has a date that appears in column C at variable intervals to denote the day that the times underneath it occurred.

I'd like the first instance of the date in C2 to be copied to A2, and then still paste that same date value into the likes of C3, C4 etc until the next date appears in column C, such as C7, then to take the value of C7 and paste it in A7 and repeat that sequence.

I think this would need to be VBA?

HrXtYLX.png


Example: https://pasteboard.co/HrXtYLX.png
jtctQT
HrXtYLX.png
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
It looks like you could use a simple formula entered into A2 and copied down:

=IF(B2="Date",C2,A1)
 
Upvote 0
Really, you should be regretting not asking sooner. ;)

Glad to help.
 
Upvote 0

Forum statistics

Threads
1,216,105
Messages
6,128,861
Members
449,472
Latest member
ebc9

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