Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python word-docx
#1
Hi, I am working with the python library python-docx and trying to extract information from a MS Word table and place it neatly in Excel. The table consists of two columns but some cells are merged. For instance, the first row in the table might have one large spanning cell in the left column and in the right-hand column, there might be 2 or 3 sub-rows for that one spanning cell on the left. Is there a way to have a link between the two? For example, I want to search for a certain criteria in the column on the right, find it, then get the corresponding information in the left-hand column. Is there a way to keep track of the row,column indices or something of that nature? Any help is much appreciated. Thank you very much.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Extracting parts of paragraphs from word documents using python-docx library & lists Den0st 1 26,337 Oct-08-2025, 05:56 AM
Last Post: OtiliaGen
  Python Code Help - pip install PyMuPDF python-docx pillow Splishsplash92 3 4,713 Jun-05-2024, 06:49 AM
Last Post: Pedroski55
  no module named 'docx' when importing docx MaartenRo 1 8,977 Dec-31-2023, 11:21 AM
Last Post: deanhystad
  Replace a text/word in docx file using Python Devan 4 41,221 Oct-17-2023, 06:03 PM
Last Post: Devan
  python-docx: preserve formatting when printing lines Tmagpy 4 8,596 Jul-09-2022, 01:15 AM
Last Post: Tmagpy
  python-docx- change lowercase to bold, italic Tmagpy 0 4,783 Jul-01-2022, 07:25 AM
Last Post: Tmagpy
  python-docx regex : Browse the found words in turn from top to bottom Tmagpy 0 2,832 Jun-27-2022, 08:45 AM
Last Post: Tmagpy
  python-docx regex: replace any word in docx text Tmagpy 4 5,041 Jun-18-2022, 09:12 AM
Last Post: Tmagpy
Question Problem: Check if a list contains a word and then continue with the next word Mangono 2 4,560 Aug-12-2021, 04:25 PM
Last Post: palladium
  Docx Convert Word Header to Body CaptainCsaba 3 5,737 Jun-02-2021, 01:25 PM
Last Post: Larz60+

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020
This forum uses Lukasz Tkacz MyBB addons.
Forum use Krzysztof "Supryk" Supryczynski addons.