Add a row and populate missing numbers in a repeating sequence

MHMoore

New Member
Joined
Aug 23, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello, I am looking for help with with the below data example. I would like to be able to run a macro to insert an entire row where the number sequence in column C is missing a number and have that number in column C populated. But I only want the number populated if it falls between 100 and 106. Anything between 106 and 110 wouldn't need to be added. Also the number sequence repeats itself for the different account and product numbers. Is this possible? I would appreciate any help!

AccountProductCustomer
320000010100
320000010101
320000010102
320000010103
320000010104
320000010105
320000010106
320000010110
320000011100
320000011102
320000012100
320000012106
320000020100
320000020101
320000020102
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!

Forum statistics

Threads
1,215,052
Messages
6,122,878
Members
449,097
Latest member
dbomb1414

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