Python Forum
Help with Creating a Script for Automating Reports
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with Creating a Script for Automating Reports
#2
For the monthly report, it sounds like you mostly need to find all the weeks in a month (be it four or five). You could do this in a couple of ways -- I would probably use column B of the spreadsheet in the screenshot. Given a row of that sheet, you can check whether the corresponding week is the last of the month (that is, the following week belongs to a different month, but be careful you don't run out of rows). You can also find all previous weeks which belong to the same month, by looping backward until you find a row/week corresponding to a different month (or you run out of rows).

Good luck with this project! I think there are a lot of improvements that can make this script easier to use, but for now I think you're right to focus on getting it working.
SunWers likes this post
Reply


Messages In This Thread
RE: Help with Creating a Script for Automating Reports - by jjc385 - Dec-29-2020, 10:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python best library for Excel reports & review of existing code MasterOfDestr 4 653 Feb-14-2024, 03:39 PM
Last Post: MasterOfDestr
Question Is there a python program for automating this invoicing workflow? PG_Archipelago 3 1,086 Feb-02-2023, 11:01 PM
Last Post: Larz60+
  Automating to run python script 100 times by changing parameters pmt 1 2,609 Dec-29-2020, 10:31 AM
Last Post: andydoc
  Need help creating a simple script Nonameface 12 4,554 Jul-14-2020, 02:10 PM
Last Post: BitPythoner
  Creating an executable from a script wolf8963 6 5,780 May-11-2020, 05:23 PM
Last Post: wolf8963
  Parsing Date/Time from Metar Reports with 6 hourly weather information Lawrence 0 2,353 May-03-2020, 08:15 PM
Last Post: Lawrence
  Need help creating complex loop around existing script CephloRhod 5 2,780 Apr-16-2020, 01:23 PM
Last Post: deanhystad
  Automating Windows GUI applications metro17 4 12,324 Feb-10-2020, 09:46 AM
Last Post: metro17
  How do I generate reports in pdf format? okbeat9 2 3,287 Jan-13-2020, 04:38 AM
Last Post: okbeat9
  Automating Excel sheets with Python wendysling 1 2,574 Mar-15-2019, 01:39 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