Excel:...Formula(3pm)
β¨ Excel::Template::Element::Formula β¨
okay bestie, welcome to the manual page for Excel::Template::Element::Formula, from the User Contributed Perl Documentation collection π it's a Perl module (that's the (3pm) energy) and it's literally just here to put formulas on your worksheet. no cap.
πΈ NAME πΈ
Excel::Template::Element::Formula β yep, that's the whole name, it's giving "I contain multitudes but also I'm just this one thing" π
π PURPOSE π
to write formulas to the worksheet. that's it. that's the job. and it ate. π₯
π NODE NAME π
FORMULA
that's the node name, remember it, iykyk β¨
π¦ INHERITANCE π¦
it inherits from Excel::Template::Element::Cell β so it's got the family tree going on, main character energy but with a lineage π
π ATTRIBUTES π
every single attribute a CELL can have? a FORMULA can have it too. periodt. and yes, that includes the ability to be referenced using the 'ref' attribute π«Ά
π§ CHILDREN π§
None
no children. it's childless and thriving. π
β EFFECTS β
this will consume one column on the current row. one column, that's the toll, pay up π
π DEPENDENCIES π
None
zero dependencies, self-sufficient queen π
β¨ USAGE β¨
okay so here's how we do:
<formula text="=(1 + 2)"/>
<formula>=SUM(A1:A5)</formula>
<formula text="$Param2"/>
<formula>=(A1 + <var name="Param">)</formula>
so in the above example, four formulas are written out π
the first two have the formula hard-coded. the second two have variables. and the third and fourth items have another thing that should be noted: if you have a formula where you want a variable in the middle, you have to use the latter form. variables within parameters are the entire parameter's value β like, the whole thing, no bits left over, fr fr πΈ
don't come for me if you put a variable in the middle of a parameter and it doesn't do what you want β use the latter form, bestie, that's the whole point π
π AUTHOR π
Rob Kinyon (rob.kinyon@gmail.com) β thank you for this, king π«Ά
π SEE ALSO π
CELL β go read that one too, it's the parent, it's iconic π
and that's the whole page bestie!! this doc is from perl v5.34.0 and it's dated 2022-06-13, and the page itself is Excel:...Formula(3pm) π slay, go write some formulas β¨π¦
π¦ where this page comes from
- debian bookworm: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libexcel-template-perl 0.34-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms