Python Forum
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple excel files
#1
Hello,

I am so new at using python that I don’t know how to start the code.

I have 26 excel files (file1, file2, file3, etc) and I want to create a for loop that will open each file one at a time and copy sheet 1 and paste it into a new excel file called template.xlsx sheet 1, and then save the template as “new file 1”. Then open file2 copy data from sheet1 and paste it into template.xlsx sheet1 and do save as “new file 2”. And continue to do this process 24 more times.

Thank you,
Kristen
Reply


Messages In This Thread
Multiple excel files - by Kristenl2784 - Jun-12-2020, 03:45 AM
RE: Multiple excel files - by DPaul - Jun-12-2020, 06:50 AM
RE: Multiple excel files - by hussainmujtaba - Jun-12-2020, 07:31 AM
RE: Multiple excel files - by Kristenl2784 - Jun-12-2020, 12:30 PM
RE: Multiple excel files - by DPaul - Jun-12-2020, 02:17 PM
RE: Multiple excel files - by Kristenl2784 - Jun-12-2020, 06:11 PM
RE: Multiple excel files - by Yoriz - Jun-12-2020, 06:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Copy Paste excel files based on the first letters of the file name Viento 2 492 Feb-07-2024, 12:24 PM
Last Post: Viento
  python convert multiple files to multiple lists MCL169 6 1,632 Nov-25-2023, 05:31 AM
Last Post: Iqratech
  splitting file into multiple files by searching for string AlphaInc 2 950 Jul-01-2023, 10:35 PM
Last Post: Pedroski55
  Merging multiple csv files with same X,Y,Z in each Auz_Pete 3 1,225 Feb-21-2023, 04:21 AM
Last Post: Auz_Pete
  unittest generates multiple files for each of my test case, how do I change to 1 file zsousa 0 985 Feb-15-2023, 05:34 PM
Last Post: zsousa
  Find duplicate files in multiple directories Pavel_47 9 3,225 Dec-27-2022, 04:47 PM
Last Post: deanhystad
  How to loop through all excel files and sheets in folder jadelola 1 4,578 Dec-01-2022, 06:12 PM
Last Post: deanhystad
  Creating csv files from Excel file azizrasul 40 5,959 Nov-03-2022, 08:33 PM
Last Post: azizrasul
  Extract parts of multiple log-files and put it in a dataframe hasiro 4 2,121 Apr-27-2022, 12:44 PM
Last Post: hasiro
  Search multiple CSV files for a string or strings cubangt 7 8,181 Feb-23-2022, 12:53 AM
Last Post: Pedroski55

Forum Jump:

User Panel Messages

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