Results 1 to 7 of 7

cannot convert text to number?

Threaded View

  1. #1
    Registered User
    Join Date
    10-16-2008
    Location
    iowa
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    64

    cannot convert text to number?

    I have a spreadsheet of data exported from and ACT database - and it has several issues that make it hard/messy.
    One is that it adds an extraneous NL to each field, and another is that it prepends an invalid character (code=63) to numeric's.

    Each of these are fairly easy to correct, bu I end up with some cells that all look empty, but are not formatted as numbers, and I cannot seem to easily convert them.

    I attach an example. The issue is that actual number cells convert fine, and I can then do arithmetic on them.
    But blank cells, do not work well. The result of the cleanup (=mid(clean(A1),2,99) for blanks looks empty, and tests as isText(), but gives a #Value error on trying to convert it .

    So I tried a formula where I would leave blank cells alone, and just try to convert number cells:
    =IF(ISBLANK(C2),,VALUE(MID(C2,2,99)))
    Which converts empty cells (really empty, I manually clear them) to 0 values, and cells that have resulted from a clean+mid but look empty give an error.

    So the basic question is:
    * What is in the apparently empty but not convertable (value) cells like C4 (=C22) (the user named cell "G11" )?
    Note that manually clearing them, then it works to be convertable to a numeric, but gives a zero (instead of blank).
    * How should I be converting these to numerics? (I want to do sums on them).
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Number stored as text error, convert to number script
    By dw_22801 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-30-2023, 06:05 PM
  2. Replies: 5
    Last Post: 11-30-2014, 07:56 AM
  3. [SOLVED] Macro to convert text number to digital number
    By Patish in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-18-2014, 07:43 AM
  4. Replies: 1
    Last Post: 10-28-2012, 05:42 AM
  5. Convert a number formatted as text to a number in a macro
    By MACRE0 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-21-2005, 09:51 PM
  6. [SOLVED] convert text-format number to number in excel 2000%3f
    By Larry in forum Excel General
    Replies: 1
    Last Post: 07-29-2005, 04:05 PM
  7. [SOLVED] not able to convert text, or graphic number to regular number in e
    By knutsenk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-02-2005, 04:14 AM

Tags for this Thread

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