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

I am new to python so apologies advance if this question doesn’t make sense.

I have an excel file that has 2 sheets.

Sheet 1 is where the formulas are and sheet 2 is where the raw data is.

Can someone point me in the right direction as to how I can automatically get the raw data for each day put it into the formulas record the output to a separate sheet then move on to the raw data for the next day and keep repeating the process until all the raw has been put into the formula and the output recorded.

I would like if someone can point me in the right direction and if possible give me some code that I can modify for my application.

Thanks in advance.
Reply
#2
openpyxl is the go-to package for working with excel files in python. https://openpyxl.readthedocs.io/en/stable/

If you could share a sample doc, with some forumulas, and two or three lines of sample data, we could maybe help out more. But that package is definitely a good starting point, as it allows you to read values, create new sheets, and save the edited excel doc.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Copy data from Excel and paste into Discord (Midjourney) Joe_Wright 4 2,010 Jun-06-2023, 05:49 PM
Last Post: rajeshgk
  Reading data from excel file –> process it >>then write to another excel output file Jennifer_Jone 0 1,083 Mar-14-2023, 07:59 PM
Last Post: Jennifer_Jone
  How to properly format rows and columns in excel data from parsed .txt blocks jh67 7 1,866 Dec-12-2022, 08:22 PM
Last Post: jh67
  Trying to Get Arduino sensor data over to excel using Python. eh5713 1 1,683 Dec-01-2022, 01:52 PM
Last Post: deanhystad
  Appending a row of data in an MS Excel file azizrasul 3 1,170 Nov-06-2022, 05:17 PM
Last Post: azizrasul
  Moving data from one Excel to another and finding maximum profit azizrasul 7 1,458 Oct-06-2022, 06:13 PM
Last Post: azizrasul
  get data from excel and find max/min Timmy94 1 1,107 Jul-27-2022, 08:23 AM
Last Post: Larz60+
  How to keep columns header on excel without change after export data to excel file? ahmedbarbary 0 1,150 May-03-2022, 05:46 PM
Last Post: ahmedbarbary
  Need Help writing data into Excel format ajitnayak87 8 2,497 Feb-04-2022, 03:00 AM
Last Post: Jeff_t
Smile Set 'Time' format cell when writing data to excel and not 'custom' limors 3 6,270 Mar-29-2021, 09:36 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