New Excel Functions For Accounting
New Excel Functions For Accounting
The content in this file was created by Mynda Treacy from My Online Training Hub.
Individual users are permitted to recreate the examples for personal practice only.
Recreating the examples for training or demonstration to others is not permitted, unless writt
The workbook and any sheets within must be accompanied by the following copyright notice:
This sheet must remain in any file that uses this data and or these techniques.
Any uses of this workbook and/or data must include the above attribution.
tutorial
raining Hub.
actice only.
permitted, unless written consent is granted by Mynda Treacy.
The TRIMRANGE function scans in from the edges of a range or array until it finds a
non-blank cell (or value), it then excludes those blank rows or columns.
Equivalent
Type Example Description
TRIMRANGE
Trim leading
Trim All (.:.) A1.:.E10 TRIMRANGE(A1:E10,3,3) and trailing
blanks
Trim trailing
Trim Trailing (:.) A1:.E10 TRIMRANGE(A1:E10,2,2)
blanks
Trim leading
Trim Leading (.:) A1.:Z10 TRIMRANGE(A1:E10,1,1)
blanks
This pattern can also be applied to full-column or -row references (eg. A:.A)
TRIMRANGE & Trim Ref Dot Operator Examples
=SUM(MonthlySalesTbl[Sales])
=AVERAGE(MonthlySalesTbl[Sales])
VSTACK Deep Dive VSTACK Written Tutorial Deep Dive VSTACK Video
VSTACK Function
Appends arrays vertically and in sequence to return a larger array.
Syntax: =VSTACK(array1,[array2],...)
array The arrays (cell ranges) you want to append.
Sibling function
HSTACK Function
Appends arrays horizontally and in sequence to return a larger array.
Syntax: =HSTACK(array1,[array2],...)
array The arrays (cell ranges) you want to append.
VSTACK Examples
Source Data Table 1 Source Data Table 2
Formula in B31:{=_xlfn.vstack(Table1_vstack[#all],Table2_vstack[])}
3D VSTACK
Formula in B50:{=_xlfn.vstack(Sales_23[#all],Sales_24[],Sales_25[])}
e Data Table 2
Region Revenue
Asia Pacific 376,887
UK 391,111
Europe 488,678
MEA 353,149
North America 417,365
South America 167,542
Year Category Product Sales VSTACK Example Data
2023 Clothing Socks 2,300
2023 Components Brakes 3,400
2023 Bikes Mountain Bikes 6,300
2023 Accessories Helmets 17,000
Year Category Product Sales VSTACK Example Data
2024 Clothing Shorts 13,300
2024 Components Handlebars 2,300
2024 Bikes Road Bikes 3,500
2024 Accessories Helmets 8,300
2024 Clothing Gloves 13,300
Year Category Product Sales VSTACK Example Data
2025 Components Chains 20,000
2025 Clothing Bib-Shorts 4,000
2025 Clothing Tights 36,000
BYROW Function Read Deep Dive BYROW & BYCOL Tutorial
BYROW applies a function using LAMBDA to each row in an array and returns an array of equal
array - the range of cells you want to pass to the LAMBDA formula one by one.
arrayName – the name you give to the array in the first argument.
formula – the formula you want to apply to each row in the array.
Scans an array by applying a LAMBDA to each value and returns an array that has each interme
The FILTER function allows you to filter a range of data based on criteria you define.
Syntax: =FILTER(array, include, [if_empty])
array is the range or array containing the values you want filtered.
include is the logical test that returns a Boolean array (TRUE/FALSE) the same height or widt
if_empty is an optional value to return if the included array are empty i.e. if the filter results i
ia you define.
The GROUPBY function allows you to create a summary of your data via a formula. It supports group
aggregating the associated values. For instance, if you had a table of sales data, you might generat
year.
Syntax: =GROUPBY(row_fields, values, function, [field_headers], [total_depth],
Click here for syntax explanation.
The PIVOTBY function allows you to create a summary of your data via a formula. It supports group
aggregating the associated values. For instance, if you had a table of sales data, you might genera
state and year.
Syntax: =PIVOTBY(row_fields, col_fields, values,function, [field_headers], [r
Click here for syntax explanation.
Example PivotTable
3,PIVOTBY Example
2)}
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
#NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME? #NAME?
XLOOKUP Function Read XLOOKUP Deep Dive Tutorial Watch XLO
XLOOKUP replaces VLOOKUP, HLOOKUP and INDEX & MATCH plus built-in error handling
Argument Description
lookup_value The value you want to find, or cell containing the item you want to find
lookup_array The cell range or array you want to search
return_array The cell range or array containing the value you want returned
[if_not_found] Optional - the text you want returned in the event a match isn't found. If omit
returned.
ror handling
u want to find
Sales
23,600 =_xlfn.xlookup(G21,xlTbl[Product],xlTbl[Sales],"Missing")
Notes: - LET will not error if you don't use all the names, but any unused names are
- The formula should have an odd number of arguments i.e. pairs of names an
- The calculation can be contained inside of a name+value pair. E.g. =LET(x,
- Values can reference previously declared names.
LET Example
ired
00, SUM(C29:C38)*1.05,
escy, SUM(C29:C38), SUM(C29:C38)*0.97)
0,_xlpm.salescy*1.05,_xlpm.salescy*0.97))}
Use Excel's DATE function when you need to take three separate values and combine th
The DATE function returns the sequential serial number that represents a particular date.
Syntax: DATE(year,month,day)
The SEQUENCE function allows you to generate a list of sequential numbers in an array
Syntax: =SEQUENCE(rows,[columns],[start],[step])
DATE-SEQUENCE Examples
{=DATE(2025,_xlfn.sequence(24),{=EOMONTH(DATE(2025,_xlfn.sequence(12),1),0)}
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME? #NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
#NAME?
torial Watch AutoFill Dates Tutorial
uence(12),1),0)}
More Resources
Tutorials
Excel Functions...............................................................
Charting Blog Posts.........................................................
Excel Dashboard Blog Posts............................................
Webinar Replays
Excel Dashboards & Power BI.........................................
Courses
Advanced Excel...............................................................
Advanced Excel Formulas...............................................
Power Query...................................................................
PivotTable Quick Start....................................................
Xtreme PivotTables.........................................................
Power Pivot....................................................................
Excel Dashboards............................................................
Power BI.........................................................................
PowerPoint.....................................................................
Excel for Decision Making Under Uncertainty................
Excel for Finance Professionals.......................................
Excel Analysis ToolPak....................................................
Excel for Customer Service Professionals.......................
Excel for Operations Management.................................
Financial Modelling.........................................................
Microsoft Word Masterclass...........................................
Support
Excel Forum....................................................................
https://www.myonlinetraininghub.com/excel-webinars
https://www.myonlinetraininghub.com/excel-expert-upgrade
https://www.myonlinetraininghub.com/advanced-excel-formulas-course
https://www.myonlinetraininghub.com/excel-power-query-course
https://www.myonlinetraininghub.com/excel-pivottable-course-quick-start
https://www.myonlinetraininghub.com/excel-pivottable-course
https://www.myonlinetraininghub.com/power-pivot-course
https://www.myonlinetraininghub.com/excel-dashboard-course
https://www.myonlinetraininghub.com/power-bi-course
https://www.myonlinetraininghub.com/microsoft-powerpoint-course
https://www.myonlinetraininghub.com/excel-for-decision-making-course
https://www.myonlinetraininghub.com/excel-for-finance-course
https://www.myonlinetraininghub.com/excel-analysis-toolpak-course
https://www.myonlinetraininghub.com/excel-for-customer-service-professionals
https://www.myonlinetraininghub.com/excel-operations-management-course
https://www.myonlinetraininghub.com/financial-modelling-course
https://www.myonlinetraininghub.com/microsoft-word-course
https://www.myonlinetraininghub.com/excel-forum