+ Reply to Thread
Results 1 to 10 of 10

Sequencial

  1. #1
    Registered User
    Join Date
    10-04-2014
    Location
    philippines
    MS-Off Ver
    2007
    Posts
    5

    Sequencial

    Hi,

    I have a little problem with CONCATENATE formula, “RU-14-10-001″, where RU=Revenue Unit, “14″=Year, “10″=Month and “001″=series number. Note that series number will reset every month.

    A1=RU-14-10-001, if “B2″ is NOT blank then “A2″=RU-14-10-002. I want it to automatically assign a sequence number in Column “A” every time I Update Column “B”.

    Please see attached excel file.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Sequencial

    =CONCATENATE("RU-",TEXT(B5,"yy-mm"),"-",TEXT(ROW()-4,"000"))
    try this in A5 & drag it down

    Punnam

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sequencial

    try in c5
    ="RU"&"-"&TEXT(B5,"yy-mm")&"-"&TEXT(SUMPRODUCT(--(TEXT($B$5:B5,"mmyy")=TEXT(B5,"mmyy"))),"000")
    Last edited by martindwilson; 10-04-2014 at 04:37 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Sequencial

    Hi cainmedussa ,

    Take some time to give us the feedback , let us know whether your question answered or need any changes .

    Punnam

  5. #5
    Registered User
    Join Date
    10-04-2014
    Location
    philippines
    MS-Off Ver
    2007
    Posts
    5

    Re: Sequencial

    Hi,

    Thanks to your reply, your formula also works fine, but I also want the result to be blank if Column "B" is blank.
    Sorry, I did not include it in my previous Post.

    Thanks again.

  6. #6
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Sequencial

    if(B5="","","RU"&"-"&TEXT(B5,"yy-mm")&"-"&TEXT(SUMPRODUCT(--(TEXT($B$5:B5,"mmyy")=TEXT(B5,"mmyy"))),"000"))
    Try this
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Sequencial

    =IF(B5="","","RU"&"-"&TEXT(B5,"yy-mm")&"-"&TEXT(SUMPRODUCT(--(TEXT($B$5:B5,"mmyy")=TEXT(B5,"mmyy"))),"000")) will give what you asked for
    RU-14-10-001
    RU-14-10-002
    RU-14-11-001
    RU-14-11-002
    RU-14-12-001
    RU-14-12-002
    RU-14-12-003
    RU-14-12-004
    RU-14-12-005

    =CONCATENATE("RU-",TEXT(B5,"yy-mm"),"-",TEXT(ROW()-4,"000"))
    will give
    RU-14-10-001
    RU-14-10-002
    RU-14-11-003
    RU-14-11-004
    RU-14-12-005
    RU-14-12-006
    RU-14-12-007
    RU-14-12-008
    RU-14-12-009
    which is not the same thing

  8. #8
    Registered User
    Join Date
    10-04-2014
    Location
    philippines
    MS-Off Ver
    2007
    Posts
    5

    Re: Sequencial

    Thank you very much. problem solved.

  9. #9
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: Sequencial

    @ martindwilson,

    Thank for correcting me , i didn't observed the second part of OP requirement

    @ cainmedussa ,

    Please refer post 7 , my solution will not take second part of your requirement.
    Punnam
    Last edited by Punnam; 10-04-2014 at 06:30 AM.

  10. #10
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: Sequencial

    Hi Try this

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Click just below left if it helps, Boo?ath?

+ 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] Sequencial Reference Number
    By TonyforVBA in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2012, 07:23 AM
  2. Creating sequencial folders
    By TonyforVBA in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-24-2011, 07:07 AM
  3. How can i sent sequencial ID from userform to 12 wsheets
    By ncaravela in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-27-2010, 12:53 PM
  4. Sequencial file names
    By Neville in forum Excel General
    Replies: 1
    Last Post: 02-14-2006, 10:50 AM
  5. [SOLVED] Sequencial numbering
    By Richard Setford in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2005, 05:05 PM

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