PC Review


Reply
Thread Tools Rate Thread

Autogenerating a number (Estimate Ledger)

 
 
=?Utf-8?B?c29sbHN0YXI=?=
Guest
Posts: n/a
 
      23rd Oct 2006
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 With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      23rd Oct 2006
="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 With Quote
 
=?Utf-8?B?c29sbHN0YXI=?=
Guest
Posts: n/a
 
      26th Oct 2006
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Estimate number of emails to be send CD27 Microsoft Excel Worksheet Functions 2 2nd Oct 2008 05:02 PM
autogenerating bundle number =?Utf-8?B?SmVhbi1GcmFuY29pcyBHYXV0aGllcg==?= Microsoft Access Form Coding 1 27th Feb 2007 06:37 AM
Need help in VBA Funtion for Autogenerating a Number next to the result of the Funtion FA Microsoft Access Form Coding 1 11th Jan 2006 04:25 PM
Formula to estimate number of hrs IT needs =?Utf-8?B?SW10aWF6IEtpYW5p?= Microsoft Windows 2000 0 23rd Jan 2005 07:29 PM
I need a guide to build my ledger using the ledger template in access 2003 M.Hamza Microsoft Access Database Table Design 0 6th Feb 2004 05:54 PM


Features
 

Advertising
 

Newsgroups
 


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