+ Reply to Thread
Results 1 to 6 of 6

Auto generate number with text string

  1. #1
    Forum Contributor
    Join Date
    12-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    387

    Auto generate number with text string

    I am trying to auto generate numbers for a group of records that follows a sequence,

    ie:

    "A" "B"
    1 LM/A/001 Abhay
    2 LM/B/001 Bharat
    3 LM/C/001 Chandresh
    4 LM/A/002 Atul
    5 LM/B/002 Bhavesh

    (in column"A"-A-B-c-is a first letter of name indicate in "B"),

    i want when i input name in cell "B6" excel automatic generate in cell "A6" No.with Name first Character
    ie: in "B6" i input "Champak" -excel automatic generate in cell "A6" "LM/C/2"

    any assistance would be appreciated.
    Last edited by hkbhansali; 10-31-2015 at 05:33 AM.
    My English is very poor, so please be patient >_<"

    Thanks & Regards.
    hkbhansali

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Auto generate number with text string

    A1:

    =IF(B1="","","LM/"&LEFT(B1,1)&"/"&TEXT(COUNTIF(B$1:B1,LEFT(B1,1)&"*"),"000"))

    and filldown

  3. #3
    Forum Contributor
    Join Date
    12-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    387

    Re: Auto generate number with text string

    Hi Jindon,
    Thanks for prompt reply
    its work
    So kind of you!
    Thanks again

  4. #4
    Forum Contributor
    Join Date
    12-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    387

    Re: Auto generate number with text string

    Hi Jindon,
    can you provide vb code instead of formula?

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Auto generate number with text string

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    12-21-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    387

    Re: Auto generate number with text string

    Thanks Jindon,
    Perfect...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA Auto Generate Next Number
    By sagar007 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-22-2013, 12:05 PM
  2. Excel 2007 : Auto Generate Next Number
    By wisedave in forum Excel General
    Replies: 6
    Last Post: 05-11-2011, 10:36 AM
  3. Auto Generate NUmber
    By Mooseman60 in forum Excel General
    Replies: 1
    Last Post: 10-03-2010, 10:52 AM
  4. auto generate number
    By kryt0n in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2010, 07:52 AM
  5. number to auto-generate
    By dsammons3 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-28-2007, 03:48 PM
  6. Auto generate number???
    By iluminatae in forum Excel General
    Replies: 9
    Last Post: 02-11-2007, 07:43 AM
  7. Generate Text String
    By Joe S. in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2005, 12:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1