+ Reply to Thread
Results 1 to 8 of 8

I want to convert numbers to text in Excel

  1. #1
    Hannibal
    Guest

    I want to convert numbers to text in Excel

    i.e. 0000176 into exactly the same but as text. How do I do this?

  2. #2
    Forum Contributor
    Join Date
    02-15-2005
    Location
    Blackpool, UK
    Posts
    137
    Hi,

    if the number "176" is held in cell A!, then try:

    =RIGHT("0000000" &TEXT(A1,0),7)

    HTH

    Art

  3. #3
    Forum Contributor
    Join Date
    02-23-2005
    Location
    England
    Posts
    110
    This raises a question with me - how is Hannibal getting numbers with leading 0's? When I have in the past tried to use leading 0's, Excel always removes them, unless I type it in & format as text.

  4. #4
    Otto Moehrbach
    Guest

    Re: I want to convert numbers to text in Excel

    Format the cell to Text before you enter the number. Or precede the entry
    with an apostrophe. HTH Otto
    "Hannibal" <[email protected]> wrote in message
    news:[email protected]...
    > i.e. 0000176 into exactly the same but as text. How do I do this?




  5. #5
    Forum Contributor
    Join Date
    02-15-2005
    Location
    Blackpool, UK
    Posts
    137
    Hi Peter,

    you can still use the =RIGHT("0000000"&A1,7) construct, then the right align button. If, for example, you multiply this cell by 52, you still get a numeric answer, so perhaps this is the way to go.

    Art

  6. #6
    Registered User
    Join Date
    02-25-2005
    Posts
    2

    Alternative formula

    I've used the following before:

    =Text(A1,"0000000")

    which works well if you have a standard format. If the number of preceeding zero's are going to change, then you might have to use some fancier formulas to determine the length & drive the number of zero's off of that (if even possible, not sure).

    Not sure if this meets your need though.

  7. #7
    smart.daisy
    Guest

    RE: I want to convert numbers to text in Excel

    try to use formula text( )

    "Hannibal" wrote:

    > i.e. 0000176 into exactly the same but as text. How do I do this?


  8. #8
    Forum Contributor
    Join Date
    02-23-2005
    Location
    England
    Posts
    110
    Quote Originally Posted by HiArt
    you can still use the =RIGHT("0000000"&A1,7) construct, ...

    Art
    Thanks Art, Nice one!

    Peter

+ 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