+ Reply to Thread
Results 1 to 6 of 6

Double height cell in xlsx becomes two rows in xls

  1. #1
    Registered User
    Join Date
    09-12-2013
    Location
    London
    MS-Off Ver
    Excel 2003 & Excel 2010
    Posts
    9

    Double height cell in xlsx becomes two rows in xls

    I have been sent a xlsx (Excel 2010) spreadsheet which I have to import into Access. The row shows in the xlsx sheet as double height with the text layout as shown below

    Apple
    Fruit Date Quantity Country

    But each entry in their own single cell in the one row

    i.e. the fruit type is on a higher level than all the others

    When I cut and paste into excel 2003 it pastes as two rows (duplicating my access import problem)

    I have tried formatting the cells so that the text shows in a standard cell height (align top, bottom etc.) and looks as if it’s all in aligned correctly but when I cut and paste into excel 2003 it still pastes as two rows.

    Is there a way of correcting the xlsx formatting please

    Thanks

    Pieter

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Double height cell in xlsx becomes two rows in xls

    Can you upload a small sample of the Excel 2010 file so that this can be analyzed. Difficult to determine the cause without actually seeing the file. The first thing that comes to mind is that after the word apple the originator may have used the Alt + Enter key to make it appear as two lines. In the 2010 file, put your cursor on the cell in question. Click on F2, does the cell contents appear on two lines in the formula window?

    What version of Access are you using? Is it 2003 and therefore the need to convert the file before importing.

    Instead of cutting and pasting, what happens when you open the 2010 file and try to do a save as .xls 2003 file?
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    09-12-2013
    Location
    London
    MS-Off Ver
    Excel 2003 & Excel 2010
    Posts
    9

    Re: Double height cell in xlsx becomes two rows in xls

    Sample.xlsx

    Did I attach sample file correctly? - new to forum

    I used excel 2010 as there are 190,000 rows. Converting to 2003 not an option I'm afraid. I'm aware I could split into smaller no of rows and still use 2003 but the data I am being sent is increasing exponentially so I'd rather solve the format problem. I use Access 2003 (deliberately as unhappy with later version's relational integrity). Therefore cannot import from xlsx directly. However can save xlsx to csv and import - if it wasn't for this single to double line problem.

    Thanks for the help

    Pieter

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,873

    Re: Double height cell in xlsx becomes two rows in xls

    The issue is an Ascii character for a carriage return in the cell. Alt + Enter. To remove this, insert a helper column next to the column in Question (Assume B)

    In the helper cell type =substitute(B2,Char(12),"") and then copy down.

    You can then copy the column you just filled and paste Special Values onto Column B. Now delete the helper column.

    Alan

  5. #5
    Registered User
    Join Date
    09-12-2013
    Location
    London
    MS-Off Ver
    Excel 2003 & Excel 2010
    Posts
    9

    Re: Double height cell in xlsx becomes two rows in xls

    Thanks. As soon as you said non printing char it clicked. I tried your substitute formula but when I dragged down it just repeated the text. I also tried =CLEAN(B2) just in case there were other non printing chars lurking around. Same problem.

    Obviously being new to 2010 I’m missing something. I tried it in 2003 and worked no problem so no typos. Helper column formatted as general.

    Thanks for taking the time to help a newbie to 2010

    Pieter

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Double height cell in xlsx becomes two rows in xls

    This worked on the worksheet that I downloaded from you

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  7. #7
    Registered User
    Join Date
    09-12-2013
    Location
    London
    MS-Off Ver
    Excel 2003 & Excel 2010
    Posts
    9

    Re: Double height cell in xlsx becomes two rows in xls

    The final problem - showing formulas - require creating a new helper column in a different place, clicking show formula then don't show formula, format as text then reformat as general and then the function worked.

    Pieter

+ 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. Replies: 6
    Last Post: 08-28-2012, 03:51 AM
  2. How to add the columns data of several xlsx files of a folder in another xlsx file
    By ravikumar00008 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-25-2012, 04:29 AM
  3. Excel 2007 : .xlsx extension files won't open on double click
    By RichardMNixon in forum Excel General
    Replies: 9
    Last Post: 04-18-2010, 07:49 PM
  4. Replies: 3
    Last Post: 01-25-2009, 03:09 PM
  5. [SOLVED] need to dbl row height without changing height of cell next to it
    By Excel-Illiterate in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 05-15-2006, 08:15 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