+ Reply to Thread
Results 1 to 8 of 8

Shifted cells if a word table is copied in a excel table

  1. #1
    Registered User
    Join Date
    04-18-2009
    Location
    France
    MS-Off Ver
    Excel 2003
    Posts
    4

    Shifted cells if a word table is copied in a excel table

    Hello,

    I would like to use a word table copying it in excel. But when i copy it in excel, some cells of the column "pièce" are shifted in relation to the original word table. For example, you can see that the number 174 of the column "pièce" is no longer in front of the number 605 of the column "art." and the number 180 of the column "pièce" is no longer in front of the number 637 of the column "art."
    Could you tell me how to solve this problem, because i would like to do subtotals based on the numbers of the column "art." Than you.

    I'm french so excuse me for my english language.

    Here are my word and my excel tables as attachments.
    Attached Files Attached Files

  2. #2
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Shifted cells if a word table is copied in a excel table

    Your table in Word should have the same structure as the table in Excel (i.e., the same number of rows), rather than using carriage returns.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    11,833

    Re: Shifted cells if a word table is copied in a excel table

    In your MS Word document, column Art, you have formattted the paragraphs:
    Spacing:
    before = 1.85 pt,
    after = 0 pt,
    line spacing = exactly @ 7.75 pt
    However, in column Piece the paragraph formatting is:
    Spacing:
    before = after = 0 pt,
    line spacing = exactly @ 8 pt
    Thus, 605 is 20 lines down in column one, but 174 is 21 lines down in column 2 to get it to line up with the unequal spacing parameters.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    04-18-2009
    Location
    France
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Shifted cells if a word table is copied in a excel table

    Hello, so if I understand, there 's no solution to my problem, knowing my word file have 55 pages ?
    Thank you.

  5. #5
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    11,833

    Re: Shifted cells if a word table is copied in a excel table

    My suggestions:
    1. Select the entire Word document and change the paragraph formatting to 0 pt before and after.

    2. Change the line spacing to double

    3. Since you inserted blank lines to get double spacing, you will need to delete the blank lines. Use Find/Replace to find the double paragraph markers ^p^p and replace with a single paragraph marker ^p

    4. In column 4 you have inserted blank lines by putting in a tab mark followed by 29 spaces and a paragraph marker: Use the Find/Replace option to find the ^t.............................^p and replace them with nothing. Note that there are 29 blanks between the ^t and ^p tab and paragraph markers.

    I also suggest that you show all formatting marks: Tools > Options > View > Formatting Marks > All
    ----------------
    Tabs show up as , spaces as dots and paragraph markers as ¶


    Testcopiercollerexcelword(bvj-excelforum).zip
    (In your original Word document, because of the difference in spacings between the two columns, the 174 was copied one row lower than the 605 when pasted into Excel because it was actually one line lower in the Word doc even though they appeared to line up horizontally.)
    Last edited by protonLeah; 04-19-2009 at 08:20 PM.

  6. #6
    Registered User
    Join Date
    04-18-2009
    Location
    France
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Shifted cells if a word table is copied in a excel table

    Hello,

    Please, could you make a macro or vba in my word file to automate all these adjustments and to save time, because i don't know to make a macro ? Indeed, i work daily on this type of file so i would like to use every day your macro . Thank you for your help.
    I send you my word file in full as an attachment.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    11,833

    Re: Shifted cells if a word table is copied in a excel table

    I'll look at it tomorrow; it's late now. Also, the new document you sent was saved in Rich Rext Format (rtf), and in order to save a macro it will have to be a Word doc instead.

  8. #8
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,099

    Re: Shifted cells if a word table is copied in a excel table

    Your post does not comply with Rule 8 of our Forum RULES. Cross-posting is when you post the same question in other forums on the web. You'll find people are disinclined to respond to cross-posts because they may be wasting their time solving a problem that has been solved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser)to the cross-post. We are here to help so help us help you!


    http://www.theofficeexperts.com/foru...ad.php?t=10637
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

+ 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