Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python word-docx
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.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rename docx file from tuple gjack 2 189 Oct-20-2020, 05:33 PM
Last Post: gjack
  How to use python to convert pdf to docx impact_code 3 542 Aug-01-2020, 01:58 PM
Last Post: Yoriz
  Write tables from Word (.docx) to Excel (.xlsx) using xlsxwriter jackie 1 428 May-27-2020, 11:47 PM
Last Post: mcmxl22
  –°ombine (Merge) word documents using python-docx Lancellot 0 1,010 Apr-30-2020, 05:27 AM
Last Post: Lancellot
  Python Speech recognition, word by word AceScottie 6 9,261 Apr-12-2020, 09:50 AM
Last Post: vinayakdhage
  docx module alternatives Clunk_Head 0 1,021 Nov-13-2019, 03:12 PM
Last Post: Clunk_Head
  Extracting parts of paragraphs from word documents using python-docx library & lists Den0st 0 2,709 Nov-06-2019, 12:07 AM
Last Post: Den0st
  print a word after specific word search evilcode1 8 952 Oct-22-2019, 08:08 AM
Last Post: newbieAuggie2019
  2 Microsoft word Docx content comparison vintysaw 2 1,116 Oct-17-2019, 10:41 AM
Last Post: vintysaw
  Python if statement docx wount work Selfiatus1 5 807 Jun-07-2019, 11:44 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020