PC Review


Reply
Thread Tools Rate Thread

Automaticalle generate sequential reference number

 
 
Rachel
Guest
Posts: n/a
 
      19th Nov 2008
Hi all,

I have a project to make in my office. I need to automatically create a
sequential reference number for a set of data. Please see below table.

Cust No. TA No SI date Amount Rate
008-018970 01 0500247 22-Sep-08 12,000,000.00 0.25%
008-018970 01 0500247 22-Sep-08 11,000,000.00 0.25%
050-101393 01 0500324 20-Oct-08 5,000,000.00 0.25%

I have 4 columns (column a-e). What I need to do is to generate a unique
reference code for each item in the row in this format (TA No._MMDDDYY_####)
#-representing the sequential number. Is this doable? thanks!

 
Reply With Quote
 
 
 
 
Tim879
Guest
Posts: n/a
 
      19th Nov 2008
I was able to do it but needed to use 2 helper columns that you can
hide or put off to the side somewhere:

Assuming your data below is in cols A->E and the first row of data is
row 2

Add 2 helper columns in F and G as follows:
in F2 put: =+B2&"_"&REPT("0",2-LEN(MONTH(C2)))&MONTH(C2)&REPT("0",3-LEN
(DAY(C2)))&DAY(C2)&YEAR(C2)&"_"
In G2 put: =COUNTIF($F$2:F2,F2)

The sequence # will be in col. H as follows:
in H2 put: =+F2&REPT("0",4-LEN(G2))&G2

just copy the formulas down.

The spreadsheet will start to slow down if it gets large so you may
want to copy / paste values over these formulas every so often.



On Nov 19, 11:16*am, Rachel <Rac...@discussions.microsoft.com> wrote:
> Hi all,
>
> I have a project to make in my office. I need to automatically create a
> sequential reference number for a set of data. Please see below table.
>
> Cust No. * * * *TA No * * * * * *SI date * * * * * * * * * * *Amount * * * * * * Rate
> 008-018970 * * *01 0500247 * * *22-Sep-08 * * * *12,000,000.00 *0.25%
> 008-018970 * * *01 0500247 * * *22-Sep-08 * * * *11,000,000.00 *0.25%
> 050-101393 * * *01 0500324 * * *20-Oct-08 * * * *5,000,000.00 * 0.25%
>
> I have 4 columns (column a-e). What I need to do is to generate a unique
> reference code for each item in the row in this format (TA No._MMDDDYY_####)
> #-representing the sequential number. Is this doable? thanks!


 
Reply With Quote
 
Rachel
Guest
Posts: n/a
 
      19th Nov 2008
HI tim,

Thanks for that reply. Then again what I needed is maybe a VBS code so that
I wont need to copy and past as values the whole data everytime. Nontheless I
tried the formula you had given but it seems there was an error in column f2
which I cant figure out. Thanks anyways!

"Tim879" wrote:

> I was able to do it but needed to use 2 helper columns that you can
> hide or put off to the side somewhere:
>
> Assuming your data below is in cols A->E and the first row of data is
> row 2
>
> Add 2 helper columns in F and G as follows:
> in F2 put: =+B2&"_"&REPT("0",2-LEN(MONTH(C2)))&MONTH(C2)&REPT("0",3-LEN
> (DAY(C2)))&DAY(C2)&YEAR(C2)&"_"
> In G2 put: =COUNTIF($F$2:F2,F2)
>
> The sequence # will be in col. H as follows:
> in H2 put: =+F2&REPT("0",4-LEN(G2))&G2
>
> just copy the formulas down.
>
> The spreadsheet will start to slow down if it gets large so you may
> want to copy / paste values over these formulas every so often.
>
>
>
> On Nov 19, 11:16 am, Rachel <Rac...@discussions.microsoft.com> wrote:
> > Hi all,
> >
> > I have a project to make in my office. I need to automatically create a
> > sequential reference number for a set of data. Please see below table.
> >
> > Cust No. TA No SI date Amount Rate
> > 008-018970 01 0500247 22-Sep-08 12,000,000.00 0.25%
> > 008-018970 01 0500247 22-Sep-08 11,000,000.00 0.25%
> > 050-101393 01 0500324 20-Oct-08 5,000,000.00 0.25%
> >
> > I have 4 columns (column a-e). What I need to do is to generate a unique
> > reference code for each item in the row in this format (TA No._MMDDDYY_####)
> > #-representing the sequential number. Is this doable? thanks!

>
>

 
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
How to generate the reference number tlee Microsoft VB .NET 0 22nd Apr 2008 04:47 PM
how to generate a sequential number on a report? =?Utf-8?B?SkZD?= Microsoft Access Reports 1 9th Feb 2007 06:01 PM
create a unique reference number of letters and sequential number =?Utf-8?B?amFuZWFzaGFycA==?= Microsoft Access Getting Started 1 13th Apr 2006 06:43 PM
Generate Sequential Number in Append Bill Sturdevant Microsoft Access Queries 4 12th Dec 2003 12:07 AM
Generate Sequential Number in Append Query Bill Sturdevant Microsoft Access Form Coding 2 11th Dec 2003 10:53 PM


Features
 

Advertising
 

Newsgroups
 


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