+ Reply to Thread
Results 1 to 8 of 8

Customized Number Format Required.

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    5

    Customized Number Format Required.

    Dear Users,

    I want to know if someone could get me "42101-7616130-9" <-- this data without quotes which is without any spaces to "4.2..1.0.1..-..7.6..1.6.1..3.0..-.9" without quotes either but please consider dots (.) as spaces as 1 dot equals to 1 space that would be as "4 2 1 0 1 - 7 6 1 6 1 3 0 - 9" I would really be very thankful for this kindness.

    Please help.

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Customized Number Format Required.

    you cannot do that with a number format because the data you have is actually text-number values do not have minus signs within them
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    05-14-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Customized Number Format Required.

    that mean there is no way out? I want to show this number just as I have shown earlier I don't want to use it as an equation or for any calculation purposes.

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Customized Number Format Required.

    you could do it with code or a formula just not a number format
    =TEXT(--SUBSTITUTE(A1,"-",""),"0 0 0 0 0 - 0 0 0 0 0 0 0 - 0")
    for instance

  5. #5
    Registered User
    Join Date
    05-14-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Customized Number Format Required.

    Quote Originally Posted by JosephP View Post
    you could do it with code or a formula just not a number format
    =TEXT(--SUBSTITUTE(A1,"-",""),"0 0 0 0 0 - 0 0 0 0 0 0 0 - 0")
    for instance
    Sir I have tried it but it doesn't show spaces between them suppose:
    a1 b2
    42101-7616130-9 42101-7616130-9 <-- same result no spaces ..

    could you please be more brief sir? Please just paste the formula here supposing A1 is the 42101-7616130-9 what should I put in b1 to get the result as mentioned above? in first post?

  6. #6
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Customized Number Format Required.

    that is the formula-although the forum software removed the double spaces but you know where to put them

  7. #7
    Registered User
    Join Date
    05-14-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Customized Number Format Required.

    thank you so much sir ! by your favour and guidance it worked :D thank you thank you thank you !!!!!!!!!!! Umah !!

  8. #8
    Registered User
    Join Date
    05-14-2013
    Location
    Karachi, Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Customized Number Format Required.

    thank you so much sir ! by your favour and guidance it worked :D thank you thank you thank you !!!!!!!!!!! Umah !!
    if O4 is 4210176161309 then =TEXT($O4,"# # # # # - # # # # # # # - #") the result would be as desired:
    4 2 1 0 1 - 7 6 1 6 1 3 0 - 9 thank you once again Sir ! your really kind.

+ 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.6.0 RC 1