+ Reply to Thread
Results 1 to 3 of 3

format cells before opening

  1. #1
    Registered User
    Join Date
    06-17-2015
    Location
    marin, ca
    MS-Off Ver
    2011
    Posts
    4

    format cells before opening

    Hi,
    I am a new excel user. I am using a spreadsheet with a lot of data that is six digits... written as, for example, 120-196 or 1109-81 or 06-0899. When I open up my spreadsheet, some of those codes end up automatically switching to dates: Dec-96 or Nov-09 or June-99.

    When I re-format the cells, for some reason, the numbers aren't correct. Nov-99 turns into 2664749. Not only is this not the original number (I have printouts of the original data), but I have no idea how excel got nov-99 from that.

    I feel like if I can reformat the cells as text before opening the sheet, excel won't have a chance to switch it to dates and the original numbers will be preserved. Anyone know why this is happening, or how I could fix it?

    thank you, all.

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: format cells before opening

    What are you formatting the cells as? If you format them as numbers and save it, it should keep the numbers as they are.
    If you have already done this, can you attach a sample workbook for us to review?
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Valued Forum Contributor nigelbloomy's Avatar
    Join Date
    11-06-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    1,011

    Re: format cells before opening

    You can also try formatting the cells as text. Then Excel won't mistake them for dates or numbers.
    Some people volunteer in soup kitchens or hospitals. I choose to make the world better by trying to help you with Excel. We're all learning.

    <---Click * Add Reputation for all helpful comments. It's like giving a smile.
    Forum Rules: How to mark your post [Solved] and have a happier, Excel enriched life.

+ 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. Macro Opening .txt as workbook changes format.
    By stefankw in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-03-2014, 07:19 AM
  2. Change format from .XLS to .CSV without opening the .XLS
    By Mr.FutureCoder in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-01-2013, 05:48 AM
  3. Replies: 2
    Last Post: 11-19-2008, 01:49 AM
  4. Keep dbf format when opening dbf files in excel
    By Alex St-Pierre in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-02-2006, 12:45 PM
  5. Opening dif format sheet via VBA
    By It'sme in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-09-2005, 05:28 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