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

I am trying to create a form which will generate a sequential number by
clicking on a command button - one of the example templates in excel seems to
do this by using a macro, but I have no idea how to do this - can anyone help?
--
Emma
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 140
Default Generating Unique Sequential Numbers

1 of many possible ways - without the use of macro's

Asumming
GUID is in Column A
User nput starts in Column B

Format Colum A as Custum 00 (setting below General on custonm Format tab)
+ add 0 to it
in Cell A1 type 01
in Cell A2 enter formula = IF(B2 = "","", A1+1)
Autofill down as far as needed.

Not if user leaves B blank and enters on C, A will show Blank

HTH

"Emma Winskill" wrote:

I am trying to create a form which will generate a sequential number by
clicking on a command button - one of the example templates in excel seems to
do this by using a macro, but I have no idea how to do this - can anyone help?
--
Emma

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

Thanks Steve, but how to I utilise this formula on a command button? The
form I am creating is for use as a quotation so therefore is set up as a
template. So each time a new number is created it will be used as a quote
reference therefore will be unique to each file if you like.

thanks
--
Emma


"steve_doc" wrote:

1 of many possible ways - without the use of macro's

Asumming
GUID is in Column A
User nput starts in Column B

Format Colum A as Custum 00 (setting below General on custonm Format tab)
+ add 0 to it
in Cell A1 type 01
in Cell A2 enter formula = IF(B2 = "","", A1+1)
Autofill down as far as needed.

Not if user leaves B blank and enters on C, A will show Blank

HTH

"Emma Winskill" wrote:

I am trying to create a form which will generate a sequential number by
clicking on a command button - one of the example templates in excel seems to
do this by using a macro, but I have no idea how to do this - can anyone help?
--
Emma

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Generating Unique Sequential Numbers

Emma

John McGimpsey show you how at this site.

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


Gord Dibben MS Excel MVP

On Fri, 22 Jun 2007 09:30:00 -0700, Emma Winskill
wrote:

Thanks Steve, but how to I utilise this formula on a command button? The
form I am creating is for use as a quotation so therefore is set up as a
template. So each time a new number is created it will be used as a quote
reference therefore will be unique to each file if you like.

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 sequential invoice numbers Rod Ben Excel Discussion (Misc queries) 4 July 28th 06 04:09 PM
create self-generating numbers with letters and numbers cxlough41 Excel Discussion (Misc queries) 11 January 4th 06 01:16 AM
unique sequential number excel 2000 Ches Excel Discussion (Misc queries) 0 May 13th 05 10:55 PM
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 09:33 PM.

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"