Results 1 to 4 of 4

Thread: DBF to XLS (97)

  1. #1
    3 Star Lounger siflaar's Avatar
    Join Date
    Jan 2001
    Location
    Amersfoort, Netherlands
    Posts
    203
    Thanks
    4
    Thanked 0 Times in 0 Posts

    DBF to XLS (97)

    Hello All,

    I have an exported DBF file that I open in Excel.
    The strange thing is that all numeric data with no decimals are left aligned.
    When using the Autofilter (> 20 e.g.) the filter will give no result, but...
    When selecting a cell, press F2, hit Enter, the alignment is right and the cell is filtered by the autofilter.

    What is happening here? and how can I align all my data (30 columns by 16000 rows) easy?

    Thanks for the response...
    Greetings,

    Patrick Schouten
    (The Netherlands)

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: DBF to XLS (97)

    Hello Patrick,

    This is a known problem. It has been discussed several times on this forum, for instance here. You will find tips there.

    The simplest is:
    <UL><LI>Enter the number 1 in an empty cell.
    <LI>Select and copy this cell.
    <LI>Select the cells that have left-aligned numbers.
    <LI>From the Edit menu, select Paste special... and then Multiply. Click OK.
    <LI>Delete the cell with the 1.[/list]There are also more extended solutions involving VBA.

  3. #3
    3 Star Lounger siflaar's Avatar
    Join Date
    Jan 2001
    Location
    Amersfoort, Netherlands
    Posts
    203
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Re: DBF to XLS (97)

    Thanks hans,

    I searched the database, but problably not with the correct words.
    I'm happy... have a nice weekend
    Greetings,

    Patrick Schouten
    (The Netherlands)

  4. #4
    Platinum Lounger
    Join Date
    Nov 2001
    Location
    Vienna, Wien, Austria
    Posts
    5,009
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: DBF to XLS (97)

    Patrick - the "giveaway" is the alignment. When something shows up as left-aligned, it almost always means that Excel (for whatever reason) has decided that what is in the cell is "text" - even though it may be entirely digits. What the solution provided by HansV did was "convert" the cell contents into numbers. HTH
    Gre

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •