Copying account numbers down till next account number and repeat!

fawnlemur

New Member
Joined
Dec 9, 2018
Messages
29
Hi

I have data that looks like this:


iKSOa.png



I want a code that will copy the account number (9999999, 88888888,7777777).

So A2 would have the account number on D2 and it will keep coping down until it reaches the net account number and start coping that down and so on until there is no more data.

so it would look like this:

PYPjH.png



I have tried searching and I'm not too sure what to actually search for. I'm new to VBA .


Is this possible as the we have 26 account number but only get 10 to 15 random ones that stretch to thousands of rows everyday and the order isn't always the same.

This would save us a lot of time, so thank you for your help in advance.

if you need any further data please let me know.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,214,527
Messages
6,120,058
Members
448,940
Latest member
mdusw

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