Python Forum
Excel Automation using Openpyxl
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Excel Automation using Openpyxl
#1
Hi Experts,

Very new to python specially excel automation. Please suggest
I ve an excel template having a header and a sample data. Now depending on the hostname
input it should create a new row(next to sample data row) containing the same sample data along with the updated hostname. In the below example it Column B(abcd1234) and Column C(UXT_abcd1234) only update the hostname and the rest data should be as it is. Once it is created delete the sample data row and send the email.

For Ex:

Input File:
Output:
Col A | Col B | Col C | Col D | Col E -------------------------------------------------------------------------------------------- Request | Hostname |Acct Name | Account Owner | Domain name Createhostgroup | xyz1234 |UXT_xyz1234 | x123456 | XYZ.com
Output File:
Output:
Col A | Col B | Col C | Col D | Col E -------------------------------------------------------------------------------------------- Request | Hostname |Acct Name | Account Owner | Domain name Createhostgroup | abcd1234 |UXT_abcd1234 | x123456 | XYZ.com
Reply
#2
what have you tried so far?
Please show code working or not.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Openpyxl manipulate excel write formula SamLiu 0 1,063 Nov-04-2022, 03:00 PM
Last Post: SamLiu
  How to append a value to specific excel cell using openpyxl hobbyist 0 4,864 Mar-05-2021, 07:14 PM
Last Post: hobbyist
  Append excel sheet using openpyxl TammyP 1 2,399 Feb-02-2021, 06:32 PM
Last Post: nilamo
  Openpyxl tkinter search a value in Excel column Heathcliff_1 0 3,280 Dec-02-2020, 04:35 PM
Last Post: Heathcliff_1
  Openpyxl: Excel formula & condition formatting removed JaneTan 0 3,667 Sep-25-2020, 07:02 AM
Last Post: JaneTan
  openpyxl - How can I copy some row from an excel file and paste them in another one? aquerci 2 17,581 Jun-07-2020, 04:26 AM
Last Post: buran
  How can I speed up my openpyxl program reading Excel .xlsx files? deac33 0 3,413 May-04-2020, 08:02 PM
Last Post: deac33
  Unable to write to excel - Using openpyxl module starstud 2 4,488 Feb-05-2020, 03:53 AM
Last Post: starstud
  after using openpyxl to add colors to script, black shows up white online in excel Soundtechscott 1 3,697 Jun-08-2019, 10:33 PM
Last Post: Soundtechscott
  Openpyxl - while saving excel file getting error shubhamjainj 1 4,604 Apr-09-2019, 12:05 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