Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Generating Unique Numbers

Hi there,

I'm trying to create a process form for an ordering department in our
company that will generate a new order number in one of the cells each time a
new order is created.
Once the order is created though, I don't want the number to change until a
new order is created. Does this make sense?
I've tried looking through the forums and Googling it, but haven't been able
to find an answer.

Can anyone help me with this one,
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Generating Unique Numbers

have a look here

http://www.mcgimpsey.com/excel/udfs/sequentialnums.html

Mike

"Meredith" wrote:

Hi there,

I'm trying to create a process form for an ordering department in our
company that will generate a new order number in one of the cells each time a
new order is created.
Once the order is created though, I don't want the number to change until a
new order is created. Does this make sense?
I've tried looking through the forums and Googling it, but haven't been able
to find an answer.

Can anyone help me with this one,
Thanks!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Generating Unique Numbers

Sorry, I should add that I'm using Office 2003.
Thanks.
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Generating Unique Numbers

Use two workbooks: template.xls and reserved.xls

Say A1 in Sheet1 in reserved.xls has the value 13 (any starting value will
do.)

When you create a new order using the template, open reserved.xls and get
the number 13 from there, then increment the cell in reserved.xls to 14.
This says that 13 has been already used and 14 is the next available order
number.

This can easily be automated with a macro if you want to avoid the manual
activity of opening two workbooks.
--
Gary''s Student - gsnu200759


"Meredith" wrote:

Hi there,

I'm trying to create a process form for an ordering department in our
company that will generate a new order number in one of the cells each time a
new order is created.
Once the order is created though, I don't want the number to change until a
new order is created. Does this make sense?
I've tried looking through the forums and Googling it, but haven't been able
to find an answer.

Can anyone help me with this one,
Thanks!

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,440
Default Generating Unique Numbers

Look he

http://www.mcgimpsey.com/excel/udfs/sequentialnums.html

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Meredith" wrote in message ...
| Hi there,
|
| I'm trying to create a process form for an ordering department in our
| company that will generate a new order number in one of the cells each time a
| new order is created.
| Once the order is created though, I don't want the number to change until a
| new order is created. Does this make sense?
| I've tried looking through the forums and Googling it, but haven't been able
| to find an answer.
|
| Can anyone help me with this one,
| Thanks!


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
Generating Random numbers. Tyler Excel Discussion (Misc queries) 3 September 22nd 07 09:48 PM
Generating Unique Sequential Numbers Emma Winskill Excel Discussion (Misc queries) 3 June 22nd 07 10:12 PM
create self-generating numbers with letters and numbers cxlough41 Excel Discussion (Misc queries) 11 January 4th 06 01:16 AM
generating Unique ID numbers for students Maltenrazer Excel Worksheet Functions 2 November 6th 04 12:32 AM
generating Unique ID numbers for students Maltenrazer Excel Worksheet Functions 0 November 5th 04 11:59 PM


All times are GMT +1. The time now is 10:59 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"