+ Reply to Thread
Results 1 to 4 of 4

Number Stored as Text

  1. #1
    Forum Contributor
    Join Date
    05-17-2017
    Location
    Tallahassee
    MS-Off Ver
    15.32
    Posts
    206

    Number Stored as Text

    I hope you are all having a good day. I have around 100 Excel files where I realized my company had been making incorrect calculations. There were items where numbers were "Number Stored as Text." I want to find each file that had this to fix the issue. How do I find, in a large workbook, "Number Stored as Text." I don't want to have to go through hundreds of rows in 100 Excel files. Thanks in advance!

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Number Stored as Text

    text is aligned to the left, number to the right
    try to use Text to columns on column with the "numbers" and click Finish. Don't do anything else.

    t2c.jpg

    But if you want go thru ca. 100 files automatically you'll need vba so use Report Post in your 1st post and ask moderator to move this thread to appropriate Forum section.
    Last edited by sandy666; 02-06-2018 at 04:59 PM.

  3. #3
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Number Stored as Text

    There may be a VBA method to check multiple files for this, but that's way above my skill level.

    You can locate those cells with Conditional Formatting (in addition to what Sandy suggested above about alignment, or if default alignments have been changed).
    1. Select all the data on the sheet, starting with A1 (so, something like A1:CD2000).
    2. Click Conditional FormattingNew RuleUse a formula to determine which cells to format
    3. Enter this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    4. Choose some sort of highlight which will stand out - bright yellow or turquoise blue or similar.

    You can change all the cells to numbers by doing this:
    1. Select a blank cell and click Copy (or press Ctrl-C)
    2. Select the range containing the cells with numbers stored as text
    3. Click PastePaste Special
    4. Choose Add and click OK.

    This will add blank to all numbers, including those stored as text, which will have the effect of adding zero, so won't change them, but will convert them all to numbers. It won't affect text, but it will convert any TRUE/FALSE values to 1s and 0s. It will also change any dates/times to just numbers.
    So be careful which ranges you apply this to!

    Hope that helps a bit.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Number Stored as Text

    Up front, I don't have VBA skills so when I have an issue like this I do it with an old school way. If it spreads over several tabs of one workbook I highlight all the tabs, then use find and replace, find what >> 0, replace with >> 0, I do it 10 times with 0 through 9. No formulas needed, no VBA and it hasn't failed me yet.

    Aardigspook's sounds intriguing and I'll have to note it to try it in the future.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

+ 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. Number stored as text
    By kranic3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2017, 10:00 AM
  2. [SOLVED] Number Stored as Text
    By esaban in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-29-2014, 03:29 PM
  3. [SOLVED] Number stored as text
    By muddbog in forum Excel General
    Replies: 7
    Last Post: 04-15-2014, 02:49 AM
  4. Replies: 1
    Last Post: 10-28-2012, 05:42 AM
  5. Number stored as text
    By Prashwee in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2006, 07:25 AM
  6. Number stored as text
    By Andrew Clark in forum Excel General
    Replies: 1
    Last Post: 11-08-2005, 06:30 PM
  7. [SOLVED] Number stored as text
    By sueanne in forum Excel General
    Replies: 1
    Last Post: 03-02-2005, 11:16 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