Skip to main content

Currently allows you to quickly split an Excel report into multiple sheets or multiple reports based on unique column values.

Project description

ResFeci for Excel

In it's current state, this package will allow you to quickly split a single Excel sheet into either separate tabs within the same report or into different Excel reports. For example, if Column 'B' of your Excel report contains "Names" and "Jack" appears in 3 rows and "Jill" appears in 2, then, this will split the report into 2 separate reports (one for only Jack's rows and another for only Jill's rows); alternatively, this will create a new report with tabs entitled "Jack" and "Jill".

By default, the script will split the first worksheet. However, the user may select a specific sheet to split through an optional parameter (see below examples).

IMPORTANT: Your sheet must contain a header row to function properly!

EXAMPLE OF SPLITTING AN EXCEL SHEET BY UNIQUE VALUES IN COLUMN B INTO DIFFERENT REPORTS

from resfeci import excel_split

excel_split.split_into_separate_reports(input_report_path= 'PATH_TO_REPORT.xlsx' , column_number_to_split_by=2)

EXAMPLE OF SPLITTING AN EXCEL SHEET BY UNIQUE VALUES IN COLUMN B INTO DIFFERENT TABS OF THE SAME REPORT

from resfeci import excel_split

excel_split.split_into_new_tabs_of_single_report(input_report_path= 'PATH_TO_REPORT.xlsx' , column_number_to_split_by=2)

EXAMPLE OF SPLITTING AN EXCEL SHEET BY UNIQUE VALUES IN COLUMN 'C' OF A WORKSHEET CALLED 'NAMES' INTO DIFFERENT REPORTS

from resfeci import excel_split

excel_split.split_into_separate_reports(input_report_path= 'PATH_TO_REPORT.xlsx' , column_number_to_split_by=3, sheet='NAMES')

PARAMETER DESCRIPTIONS

input_report_path = the path to the report to be split

column_number_to_split_by = the NUMBER of the Excel column to split by (A = 1, B = 2, C =3, etc.)

sheet = OPTIONAL parameter which allows you to enter the name of the specific sheet to split. By default, the script will split the first worksheet.

DEPENDENCIES Openpyxl, Pandas

KNOWN ISSUE The current version of this script does not support transfer of formulas!!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

resfeci-0.0.19.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

resfeci-0.0.19-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file resfeci-0.0.19.tar.gz.

File metadata

  • Download URL: resfeci-0.0.19.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.0

File hashes

Hashes for resfeci-0.0.19.tar.gz
Algorithm Hash digest
SHA256 15e43755a2b847bb0cf46f9c48befe92db9f9217f42dfa69bc6ea4487a510804
MD5 a0ad53f7ee76033e40baa4d62dcdb996
BLAKE2b-256 09a416b7ea678714dfec8b6cfe06413f174da3a2912a0845d6e45276194f60e9

See more details on using hashes here.

File details

Details for the file resfeci-0.0.19-py3-none-any.whl.

File metadata

  • Download URL: resfeci-0.0.19-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.0

File hashes

Hashes for resfeci-0.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 d39ba41acc140f15f67f23c17df60da53157c3c90b102ab7f86da46667483b18
MD5 935a1f66f8967ec5f40c5145f479c55f
BLAKE2b-256 3196c8f1782b1b30e19682c778e7c37bd9a686e0a93835aceaf4334399aa5c23

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page