G
G
god_dan632021-11-23 18:37:19
Python
god_dan63, 2021-11-23 18:37:19

How to write data in xlsx to a specific cell using python?

I open xlsx file like this:

import xlrd, xlwt
workbook = xlrd.open_workbook("C:\СправЭкс.xlsx")
worksheet = workbook.sheet_by_index(0)

I can take data from there, but I can’t write it down.
Tried in different ways - it does not work. How can I write data to a specific cell?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MrSpirit, 2021-11-24
@MrSpirit

Try openpyxl

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question