+ Reply to Thread
Results 1 to 3 of 3

Format text as number

  1. #1
    Registered User
    Join Date
    05-18-2015
    Location
    Europe
    MS-Off Ver
    2010
    Posts
    9

    Format text as number

    Can anyone explain me the logic behind this behavior? When I first type numbers in cells that are preformatted as text, they cannot be turned into numbers without refreshing, but once you've done this just once, you can change from text to number and back without problem. Why the restriction for the first example?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Format text as number

    Probably the cell was formatted to text before you started entering anything?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    05-18-2015
    Location
    Europe
    MS-Off Ver
    2010
    Posts
    9

    Re: Format text as number

    Yes it was. That's exactly what I'm asking. What's the logic behind that behavior?

    Case A:
    1. Format cell as text.
    2. Enter a number, data becomes text.
    3. Format cell as number, data remains text.




    Case B:

    1. Format cell as text.
    2. Enter a number.
    3. Format cell as number, data remains text.
    4. Refresh cell, data becomes number.
    5. Format cell as text.
    6. Format cell as number, data becomes number.

    edit: In this mode you can seem to jump between Date and Text format, although inside the Excel engine Data remains unrefreshed Number.
    Last edited by cronnin; 03-13-2017 at 06:34 AM.

+ 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. [SOLVED] VBA textbox populating cells in text format instead of number format
    By chrismccarthy17 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-03-2016, 07:46 AM
  2. [SOLVED] Number convertions: Number Format to Text Format
    By Old4xford in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-06-2015, 11:38 AM
  3. Need Numbers to Concatenate to Number Format, Not Text Format
    By DJH in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-08-2014, 01:01 AM
  4. Convert date and time in serial number format to text format
    By nda13112 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2013, 02:45 PM
  5. Changing numbers from text format to number format
    By garden_gnome in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2012, 12:48 PM
  6. Replies: 18
    Last Post: 03-07-2007, 05:52 AM
  7. Convert numbers from text format to number format
    By merlin68 in forum Excel General
    Replies: 4
    Last Post: 04-12-2005, 09:06 AM

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