+ Reply to Thread
Results 1 to 4 of 4

format of cells from database

  1. #1
    Registered User
    Join Date
    05-08-2009
    Location
    New Hampshire
    MS-Off Ver
    Excel 2003
    Posts
    14

    format of cells from database

    Hi All,

    Scenario:
    -I have an excel export from a database.
    -The export has multiple columns of data.
    -The column I am interested consists of numbers and some text.
    -The numbers are preceeded by "zeros", e.g. "00054" or "0021"
    -The text is usually "N/A"

    Problem:
    -The column cells are formatted as "General".
    -I need to get the "00054" to just "54"
    -I am looking for a solution other than re-writing the column by hand (hundreds of column entries)

    I've Tried:
    -Changing column format to "Number", but the "00054" format remains.
    -Played around with other cell format types
    -If I double click the cell, the entry then goes to the format I need!!! e.g. "00054" -- double click-- "54". Wallaaaaa... I will get carpal tunnel if I have to double click all these columns entries!!

    Once again, thanks in advance for your help!! You guys are a great resource!!!

    DaveRust
    Attached Files Attached Files
    Last edited by DaveRust; 05-13-2009 at 01:09 PM.

  2. #2
    Forum Contributor
    Join Date
    04-01-2009
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2010
    Posts
    280

    Re: format of cells from database

    You could use the Data --> Text To Columns option (just highlight the one column and click through).

    Or add code to select the column and use...
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    02-12-2008
    Location
    Doha-Qatar
    MS-Off Ver
    Excel 2007
    Posts
    137

    Re: format of cells from database

    Hi,

    To work out the current exported data, in I20 use code =1*H20, this will remove the zeros preceeding the numbers but still you have to find another way for the cells that do not contain numbers

    Regards

  4. #4
    Registered User
    Join Date
    05-08-2009
    Location
    New Hampshire
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: format of cells from database

    malnahar,

    thanks, I found that if I place '1' in a cell, then copy special and click multiply to the whole column, it works just fine.

    Thanks for the input

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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