Python Native Functions (py2excel
) is a set of native MS Excel functions derived/inspired
from PyPI modules. The functions are written in pure macros/VBA to be used inside a macro-enabled workbook or can be used as
add-ins by saving the files and importing them from the File > Options > Add-Ins tab.
The modules/add-ins are available in two formats - scripts
and add-ins
. The scripts contain scripts and
functions in *.vb
file format which can be directly added to a macro-enabled workbook/worksheet as per preference. However, it is
recommended to either add the contents of the *.vb
in the "Personal Workspace" or directly import the codes using add-ins from the
created files.
The project is inspired from the fiscalyear
library hosted in PyPI. The script provides ready-made
functions to users who wants to convert dates to- and from- calendar to financial year and vice-versa. The following functions/methods
are available:
Parameter Name | Accepted Type | Optional Parameter | Default Value | Parameter Definition |
---|---|---|---|---|
value |
DATE |
Current Year | ||
prefix |
STRING |
✔ | "F.Y. " | Prefix to be added at the beginning of the resolved finanicial year. |
fmt |
STRING |
✔ | "YYYY" | Returns the year in YYYY or YY format depending upon user-preference. |
quarter |
BOOLEAN |
✔ | FALSE | Returns the quarter number for the financial year. |