Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 113
Default Automaticalle generate sequential reference number

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!

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 208
Default Automaticalle generate sequential reference number

I was able to do it but needed to use 2 helper columns that you can
hide or put off to the side somewhe

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 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!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 113
Default Automaticalle generate sequential reference number

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 somewhe

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 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
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
How to calculate (generate) a cell reference LurfysMa New Users to Excel 6 March 13th 07 01:50 PM
generate a random number and use if function to generate new data Dogdoc1142 Excel Worksheet Functions 4 April 26th 06 03:44 AM
Generate random numberes using reference to the other cell. ramana Excel Worksheet Functions 7 October 31st 05 07:09 AM
sequential number Malissa Excel Discussion (Misc queries) 3 August 15th 05 09:54 PM
sequential number Mike W New Users to Excel 4 May 12th 05 11:38 PM


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