+ Reply to Thread
Results 1 to 4 of 4

Concatenate whole number

  1. #1
    Forum Contributor
    Join Date
    10-08-2013
    Location
    Chennai, INDIA
    MS-Off Ver
    Excel 2010
    Posts
    157

    Question Concatenate whole number

    Hi All,

    456789123

    I have this kind of number, which i need to change to 456-789123 with an "-" after 3rd number....

    i tried below formula...

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    gives me 456-789123 perfect... but in below two scenarios it gives me wrong answer... Please help...

    If 456089123 gives 456-89123 (Avoids Zero) answer should be 456-089123

    If 056789123 gives 567-89123 (Avoids first letter zero) answer should be 056-789123

    Please help in tackling this two cases with formula....


    Thanks in Advance....
    Last edited by bmbalamurali; 04-15-2014 at 11:11 AM. Reason: Correction
    Bala

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Concatenate whole number

    =LEFT(E6,3)&"-"&MID(E6,4,6)

    Either format the cell as text or as a number with leading zeros (custom format).
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    10-08-2013
    Location
    Chennai, INDIA
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Concatenate whole number

    Thank you Ali....

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,869

    Re: Concatenate whole number

    You are welcome!

+ 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] COncatenate Number and ;
    By Dante_sparda in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-01-2012, 03:58 PM
  2. Concatenate - number zero
    By lynnmc26 in forum Excel General
    Replies: 3
    Last Post: 01-14-2011, 05:03 PM
  3. [SOLVED] How to Concatenate with a text & number
    By Damon Longworth in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 12:05 PM
  4. How to Concatenate with a text & number
    By || cypher || in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 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