+ Reply to Thread
Results 1 to 4 of 4

Converting Numbers to text

  1. #1
    Registered User
    Join Date
    11-13-2013
    Location
    Texas
    MS-Off Ver
    Excel 2013
    Posts
    2

    Unhappy Converting Numbers to text

    Hello,
    Could anyone please help me converting a wide range of numbers to text format. I am using the below codes:

    Worksheets("Sheet1").Cells(GenCount, "AI").NumberFormat = "@"

    but when I perform the below action on this cell, it gives me "Type mis-match" error

    if Worksheets("Sheet1").Cells(GenCount, "AI").Value = "#N/A" .. it does not performs this check and gives me Type mi-match error 13.

    Need help. Thanks

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Converting Numbers to text

    Do you want to Ignore cells with error or change them to text as well?
    You could use:
    Please Login or Register  to view this content.
    I believe, but this will replace #N/A errors with #N/A as text.

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Converting Numbers to text

    Note, your check should be:
    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    11-13-2013
    Location
    Texas
    MS-Off Ver
    Excel 2013
    Posts
    2

    Re: Converting Numbers to text

    Thanks yudlugar.... ".Text" option worked perfectly. Thanks a lot for quick resolution...

+ 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. Converting text numbers into real numbers
    By vheying in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-28-2011, 09:17 AM
  2. Converting text to numbers
    By dalewms2 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-22-2011, 04:18 PM
  3. converting numbers stored as text to numbers...
    By firefiend in forum Excel General
    Replies: 3
    Last Post: 02-08-2007, 03:33 PM
  4. [SOLVED] Converting numbers formatted as text to numbers
    By Bill in forum Excel General
    Replies: 1
    Last Post: 07-19-2005, 03:05 PM
  5. converting numbers to text and prefill text field with 0's
    By Jan Buckley in forum Excel General
    Replies: 2
    Last Post: 01-20-2005, 05:06 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