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

I have the following set of data

Trust Account Number SI date (SDA booking date) Principal Amount TF
Rate RESULTING VALUES
01 0500247 22-Sep-08 12,000,000.00 0.25% 01 0500247_0001
01 0500324 20-Oct-08 5,000,000.00 0.25% 01 0500324_0001
01 0500340 05-Sep-08 1,000,000.00 0.55% 01 0500340_0001
01 0500340 10-Sep-08 1,000,000.00 0.55% 01 0500340_0002
01 0500340 19-Sep-08 4,000,000.00 0.35% 01 0500340_0003
01 0500340 22-Sep-08 5,000,000.00 0.35% 01 0500340_0004
01 0500340 22-Sep-08 5,000,000.00 0.35% 01 0500340_0005

Can anyone help me in coming up with a code that will generate the resulting
values? Note that columns a-e are inputted manually while column F should be
automatically generated.

THANKS!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default generating unique reference number

It is kind of hard to tell what data is located in what columns; however,
assuming data you want to add the counter to is located in Column A starting
in Row 2, put this formula in F2 and copy it down...

=A2&"_"&TEXT(COUNTIF(A$2:A2,A2),"0000")

If the data is in Column B, then just change the A's to B's in the formula.

--
Rick (MVP - Excel)


"Rachel" wrote in message
...
I have the following set of data

Trust Account Number SI date (SDA booking date) Principal Amount TF
Rate RESULTING VALUES
01 0500247 22-Sep-08 12,000,000.00 0.25% 01 0500247_0001
01 0500324 20-Oct-08 5,000,000.00 0.25% 01 0500324_0001
01 0500340 05-Sep-08 1,000,000.00 0.55% 01 0500340_0001
01 0500340 10-Sep-08 1,000,000.00 0.55% 01 0500340_0002
01 0500340 19-Sep-08 4,000,000.00 0.35% 01 0500340_0003
01 0500340 22-Sep-08 5,000,000.00 0.35% 01 0500340_0004
01 0500340 22-Sep-08 5,000,000.00 0.35% 01 0500340_0005

Can anyone help me in coming up with a code that will generate the
resulting
values? Note that columns a-e are inputted manually while column F should
be
automatically generated.

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 do I generate a unique reference number??? Rachel Excel Discussion (Misc queries) 3 November 21st 08 03:56 AM
Generating Unique Numbers Meredith Excel Discussion (Misc queries) 4 December 4th 07 03:01 PM
Generating Unique Sequential Numbers Emma Winskill Excel Discussion (Misc queries) 3 June 22nd 07 10:12 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 06:23 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"