Locked lesson.
About this lesson
There's more than one way to change data in a spreadsheet cell. This method is handy to use when looping using For Loops.
Exercise files
Download this lesson’s related exercise files.
15 Change Existing Cells - Method 2.docx57.1 KB 15 - Change Existing Cells - Method 2 SOLUTION.docx
55.6 KB
Quick reference
Change Existing Cells - Method 2
There's more than one way to change data in a spreadsheet cell. Here's another way...
When to use
Use this method when you don't know the specific name of the cell you want to change, but do know its number.
This method is handy to use when looping using For Loops and you now you've looped a specific number of times.
Instructions
# Change A1
ws.cell(row=1, column=1).value = "This is new!"
Hints & tips
- ws.cell(row=1, column=1).value = "This is new!"
Lesson notes are only available for subscribers.