Create a auto sequencing based on the other column value

pratheesh1983

Board Regular
Joined
Aug 13, 2015
Messages
55
Office Version
  1. 365
Platform
  1. Windows
I need to create a table that consists of two columns, the first being Serial No., in a sequence from 1 to 100,000. Columns. 2 is having a code value that will have a format that is based on the serial number value from column 1, i.e., if the serial number is between 1 and 1000, then the code value will be 1, and if the serial number is between 1001 and 2000, the code value will be 2, which means after each 1000, the code value will change, and this needs to be followed until the serial value is 100,000. Can you please help find a simple way to pull the value in column 2, i.e., for code, buy auto-populate the number based on the serial number?
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
In Cell A2 use formula

Excel Formula:
=SEQUENCE(100000,,1,1)

In cell B2 use formula

Excel Formula:
=ROUNDUP(A2#/1000,0)

Done
 
Upvote 0
You're welcome. Hopefully you were able to get something of use. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,119
Messages
6,123,172
Members
449,094
Latest member
bes000

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