Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Autogenerating a number (Estimate Ledger)

I would like to know how to create a formula that will accomplish the
following without using a macro, if possible.

Use: I aim to use this worksheet to automatically create ESTIMATE numbers
sequentially without duplication. The file will be located on a server on a
LAN were multiple users can access the file. If possible, I would like to
share the file as well.

The number I would like to generate automatically would include text and
numerical information as follows: "ESTYYYYNNNN" ex. EST2006-0001
Prefix - "EST"
Current Year - "2006"
Hyphen seperating year and number
Number - "xxxx" where the first number would be 0001 the next number 0002
and so forth.

This field should be automatic so that when a new row is added, the number
is automatically created. The user would not be able to edit or delete this
number. Is that possible?

Thank you in advance for your assistance and comments on the above.

Kind regards,
Sollstar
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Autogenerating a number (Estimate Ledger)

="EST2006-" & text(countA(A2:A1000),"0000")

Lock the cell and protect the sheet.

--
Regards,
Tom Ogilvy


"sollstar" wrote:

I would like to know how to create a formula that will accomplish the
following without using a macro, if possible.

Use: I aim to use this worksheet to automatically create ESTIMATE numbers
sequentially without duplication. The file will be located on a server on a
LAN were multiple users can access the file. If possible, I would like to
share the file as well.

The number I would like to generate automatically would include text and
numerical information as follows: "ESTYYYYNNNN" ex. EST2006-0001
Prefix - "EST"
Current Year - "2006"
Hyphen seperating year and number
Number - "xxxx" where the first number would be 0001 the next number 0002
and so forth.

This field should be automatic so that when a new row is added, the number
is automatically created. The user would not be able to edit or delete this
number. Is that possible?

Thank you in advance for your assistance and comments on the above.

Kind regards,
Sollstar

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Autogenerating a number (Estimate Ledger)

Dear Tom,

Thank you for your help. I had to adjust the forumula a little as it was
summing all the records in column "A" therefore the estimate number kept on
changing when I added a new row. The formula with the minor adjustment seems
to be doing the job:

=IF(A2=0,"","EST2006-"&TEXT(COUNTA(A$2:A2),"0000"))

thank you for getting me on my way.

Kind regards,
Sollstar

"Tom Ogilvy" wrote:

="EST2006-" & text(countA(A2:A1000),"0000")

Lock the cell and protect the sheet.

--
Regards,
Tom Ogilvy


"sollstar" wrote:

I would like to know how to create a formula that will accomplish the
following without using a macro, if possible.

Use: I aim to use this worksheet to automatically create ESTIMATE numbers
sequentially without duplication. The file will be located on a server on a
LAN were multiple users can access the file. If possible, I would like to
share the file as well.

The number I would like to generate automatically would include text and
numerical information as follows: "ESTYYYYNNNN" ex. EST2006-0001
Prefix - "EST"
Current Year - "2006"
Hyphen seperating year and number
Number - "xxxx" where the first number would be 0001 the next number 0002
and so forth.

This field should be automatic so that when a new row is added, the number
is automatically created. The user would not be able to edit or delete this
number. Is that possible?

Thank you in advance for your assistance and comments on the above.

Kind regards,
Sollstar

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
Standard Error of the Estimate iperlovsky Excel Worksheet Functions 2 November 3rd 09 03:53 PM
Estimate number of emails to be send CD27 Excel Worksheet Functions 2 October 2nd 08 05:02 PM
Estimate time of arrival (ETA) LOSTHOUND Excel Discussion (Misc queries) 1 April 28th 08 08:50 PM
How to indicate that a value is an estimate? couture57 Excel Discussion (Misc queries) 7 March 26th 08 12:43 AM
Template for estimate DIDI50 Excel Discussion (Misc queries) 0 January 19th 05 12:13 AM


All times are GMT +1. The time now is 12:14 AM.

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

About Us

"It's about Microsoft Excel"