Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python program for excel
#1
Hello,
I am new to python and I work on excel everyday which is more of manual. I need to automate some part using python as I am interested in learning it. I need python gurus to help me in coding.
I have data in excel 1 which I need to read and then go to excel 2 find them in excel 2 and get the values in columns.
Below is the example data I have and rules on how to populate data

Read row 1 & column 1 from excel 1, go to excel 2 find AAAAAA and get value from column A and write to column 2 row 1
in excel 1
Always skip middle row if column 1 in excel 1 has more than two entries
Read row 3 & column 1 from excel 1, go to excel 2 find AAAAAA and get value from column B and write to column 2 row 3 in
excel 1
Excel 1 Excel 2
row column 1 column 2 column X column A column B
1 AAAAAA CCCCCC 20 30
2 AAAAAA AAAAAA 40 50
3 AAAAAA BBBBBB 10 30
4 BBBBBB
5 BBBBBB
6 CCCCCC
7 CCCCCC
8 CCCCCC

Result should be like below
Excel 1
row column 1 column2
1 AAAAAA 40
2 AAAAAA
3 AAAAAA 50
4 BBBBBB 10
5 BBBBBB 30
6 CCCCCC 20
7 CCCCCC
8 CCCCCC 30
Reply


Messages In This Thread
Python program for excel - by tummpy06 - Dec-18-2019, 02:48 AM
RE: Python program for excel - by buran - Dec-18-2019, 04:32 AM
RE: Python program for excel - by jefsummers - Dec-18-2019, 12:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [split] Results of this program in an excel file eisamabodian 1 1,663 Feb-11-2022, 03:18 PM
Last Post: snippsat
  How can I speed up my openpyxl program reading Excel .xlsx files? deac33 0 3,521 May-04-2020, 08:02 PM
Last Post: deac33
  Program writing excel rfile with randomnized input wepkes 1 3,803 Dec-08-2016, 08:06 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

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