+ Reply to Thread
Results 1 to 6 of 6

Thread: Format

  1. #1
    Registered User
    Join Date
    01-25-2012
    Location
    ...
    MS-Off Ver
    Excel 2007
    Posts
    20

    Format

    What is the formula to return a column in the format "B-NNN-00N" or "B-0NN-001" if the displayed column is either in the format "B-NN-00N", "B-NNN-N" where "N" is a number?. For example, if the column displays "B-123-1" then it has to return "B-123-001", and if it displays "B-12-001" then it has to return "B-012-001". I tried "concatenate" but did not get the right result
    Last edited by ashraf999; 01-28-2012 at 09:39 AM.

  2. #2
    Valued Forum Contributor dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    New Delhi, India
    MS-Off Ver
    Excel 1997, 2000, XP, 2003, 2007, 2010
    Posts
    2,398

    Re: Format cquestion

    Hi Ashraf,

    See the attached file and let me know if I understood you correctly. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey
    +919810929744
    dilipandey@gmail.com

  3. #3
    Registered User
    Join Date
    01-25-2012
    Location
    ...
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Format cquestion

    Yes. That is what I meant

    Quote Originally Posted by dilipandey View Post
    Hi Ashraf,

    See the attached file and let me know if I understood you correctly. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  4. #4
    Valued Forum Contributor dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    New Delhi, India
    MS-Off Ver
    Excel 1997, 2000, XP, 2003, 2007, 2010
    Posts
    2,398

    Re: Format cquestion

    Ok..

    It is already done.. check the formula in column B.
    Test this out and let me know if this can fit in all possible scenarios. Thanks.

    Regards,
    DiLIPandey

    <click on below 'star' if this helps>
    DILIPandey
    +919810929744
    dilipandey@gmail.com

  5. #5
    Registered User
    Join Date
    01-25-2012
    Location
    ...
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Format cquestion

    Thanks alot

    Quote Originally Posted by dilipandey View Post
    Ok..

    It is already done.. check the formula in column B.
    Test this out and let me know if this can fit in all possible scenarios. Thanks.

    Regards,
    DiLIPandey

    <click on below 'star' if this helps>

  6. #6
    Valued Forum Contributor dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    New Delhi, India
    MS-Off Ver
    Excel 1997, 2000, XP, 2003, 2007, 2010
    Posts
    2,398

    Re: Format cquestion

    You are welcome ashraf...

    Cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey
    +919810929744
    dilipandey@gmail.com

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0