#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default number generator

I have to make 1000 numbers for some gift cards magnetic strip. the numbers
are 14 digits long and the middle 6 numbers are sequential. the first and
last four numbers stay the same for all 1000. The numbers have to be in one
row in excel sot that it can be transfered to the card making machine. how
can i do this without typing all 1000 numbers?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default number generator

="1234"&TEXT(ROWS($1:1),"000000")&"5678"

Adjust to suit
copy down as far as needed


"how can i sequence the middle numbers" wrote:

I have to make 1000 numbers for some gift cards magnetic strip. the numbers
are 14 digits long and the middle 6 numbers are sequential. the first and
last four numbers stay the same for all 1000. The numbers have to be in one
row in excel sot that it can be transfered to the card making machine. how
can i do this without typing all 1000 numbers?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default number generator

Hi,

First, you can't do what you stated unless you are using Excel 2007 because
you can put 1000 entries on a row, Excel 2003 only has 256 columns. So it
would be better to put them in a single columns.

Suppose you enter the start number of the central 6 digit number in cell A1
and suppose that number is 100000, suppose that the first four digits are
1234 and you didn't give us any conditions on the last four digits.

In cell B1 enter the formula
="1234"&A1+row()&RANDBETWEEN(1000,9999)
copy this formula down as far as necessary.

RANDBETWEEN is part of the Analysis ToolPak so to use it you need to attach
it - choose Tools, Add-ins, and check Analysis ToolPak.
===============
Now lets suppose you really wanted something totally different - one digit
in 16 consecutive columns:
1. Enter the first four digits in A1:D1
2. In cell E1 enter
=MID(100000+ROW(),COLUMN(A1),1)
3. Copy this to the right to column J.
4. In the next four columns enter any numbers you want
5. Highlight all 16 columns and drag the fill handle down as many rows as
necessary.

If this helps, please click the Yes button
--
Thanks,
Shane Devenshire


"how can i sequence the middle numbers" wrote:

I have to make 1000 numbers for some gift cards magnetic strip. the numbers
are 14 digits long and the middle 6 numbers are sequential. the first and
last four numbers stay the same for all 1000. The numbers have to be in one
row in excel sot that it can be transfered to the card making machine. how
can i do this without typing all 1000 numbers?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Random number Generator RayT New Users to Excel 14 January 15th 08 11:16 PM
random number generator johnny vino Excel Discussion (Misc queries) 8 April 25th 07 05:51 PM
same number appears in a random number generator Carmel Excel Worksheet Functions 4 May 28th 06 12:22 AM
Random Number generator Neil M Excel Worksheet Functions 2 February 1st 06 06:00 PM
random number generator Jose Luis Excel Discussion (Misc queries) 1 June 14th 05 09:41 PM


All times are GMT +1. The time now is 06:29 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"