Python Forum
How to append a value to specific excel cell using openpyxl
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to append a value to specific excel cell using openpyxl
#1
So, I have a code that inserts values to cells on excel sheet. But it does not work. I have a for-loop for 100 values and stores only the 100th, in the 100th cell (columns = 1, 2, 3). I want to test to see if appends does the difference. So I need to append values to specific cell using openpyxl. Any idea how to do this? This is the command for the row = what the counter is at that specific time and column = 2:

sheet.cell(row = counter, column = 2).value = 45
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Color a table cell based on specific text Creepy 11 1,828 Jul-27-2023, 02:48 PM
Last Post: deanhystad
  Excel Automation using Openpyxl pradyumnajpn 1 771 May-16-2023, 09:38 AM
Last Post: Larz60+
  Openpyxl manipulate excel write formula SamLiu 0 1,002 Nov-04-2022, 03:00 PM
Last Post: SamLiu
  Deleting rows based on cell value in Excel azizrasul 11 2,476 Oct-19-2022, 02:38 AM
Last Post: azizrasul
  Using Excel Cell As A Variable In A Loop knight2000 7 4,015 Aug-25-2021, 12:43 PM
Last Post: snippsat
  Using Excel Cell As A Variable In A Loop knight2000 7 4,895 Jul-18-2021, 10:52 AM
Last Post: knight2000
Smile Set 'Time' format cell when writing data to excel and not 'custom' limors 3 6,200 Mar-29-2021, 09:36 PM
Last Post: Larz60+
  Append excel sheet using openpyxl TammyP 1 2,315 Feb-02-2021, 06:32 PM
Last Post: nilamo
  Openpyxl tkinter search a value in Excel column Heathcliff_1 0 3,212 Dec-02-2020, 04:35 PM
Last Post: Heathcliff_1
  P3, openpyxl, csv to xlsx, cell is not number, problem with colorize genderbee 1 2,099 Sep-29-2020, 03:20 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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