Excel VBA | Average() Functions Last Updated : 29 Sep, 2022 Comments Improve Suggest changes 3 Likes Like Report VBA (Visual Basic for Applications) is the programming language of Excel and other offices. It is an event-driven programming language from Microsoft. With Excel VBA, one can automate many tasks in excel and all other office softwares. It helps in generating reports, preparing various charts, graphs and moreover, it performs calculation using its various functions. Let's see Average functions in Excel. AVERAGE It returns the arithmetic mean of all of its arguments. Syntax: =AVERAGE(number1, number2, …) Here, number 1: This is the first number in your cell. You can specify it upto 255 numbers. number 2: This is an Optional field. You can specify it upto 255 numbers. Example: Output: AVERAGEIF: It calculates the average of only those values which meet a certain criteria. Syntax: =AVERAGEIF(range, criteria, average_range) range: It is the range of cells to be evaluated. The cells in range can be numbers, names, arrays or any other reference that contains numbers. Blank and text values are not considered. criteria: It should be in the form of a number or any expression which defines which all cells to be averaged. For instance, “mango”, C6, “<35” average_range: [Optional] If this is not mentioned, Excel will get average of only those cells on which criteria is applied, which are specified in the range argument. Notes: -> If a cell in average_range is an empty cell, it will be ignored. -> If range is a text value or blank, it will return an error. -> If a cell in criteria is empty, it will be considered as 0 value. -> If no cell meets the criteria, it will return an error. Example: Output: AVERAGEIFS: Calculate average of cells that meet multiple criteria. Syntax: =AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2], …) average_range: (Required) One or more cells to calculate average. criteria_range1: (Required) 1 to 127 ranges to evaluate the given criteria. criteria1: 1 to 127 criteria in the form of numbers, expression to be averaged. This defines which all cells in criteria_range1 are to be averaged. For instance, criteria can be like this, “>32”, “apple”, “D7” Example: Output: Create Quiz Comment A aishwarya.27 Follow 3 Improve A aishwarya.27 Follow 3 Improve Article Tags : Excel ExcelGuide Explore Excel FundamentalIntroduction to MS Excel5 min readDownload and Install MS Excel 2024/365 Edition4 min readExcel Spreadsheet4 min readWorkbooks in Microsoft Excel4 min readWorksheets in Excel4 min readDelete All Rows Below Certain Row or Active Cell in Excel5 min readRemove Hyperlinks in Excel6 min readHow to Use Fractions in Excel6 min readExcel FormattingData Formatting in Excel5 min readExpand Cells to Fit the Text Automatically in Excel3 min readExcel Date and Time Formats3 min readInsert a Picture in a Cell in MS Excel3 min readHow to Unhide and Show Hidden Columns in Excel: Step by Step Guide9 min readConditional Formatting in Excel8 min readApply Conditional Formatting Based On VLookup in Excel3 min readHow to Compare Two Columns and Delete Duplicates in Excel3 min readHow to Find Duplicate Values in Excel Using VLOOKUP3 min readExcel Formula & FunctionBasic Excel Formulas3 min readUse of Concatenate in Excel5 min readPercentage in Excel8 min readExcel LEFT, RIGHT, MID, LEN, and FIND Functions5 min readExcel IF Function10 min readExcel VLOOKUP Function12 min readDynamic Array Formulas in Excel2 min readCOUNTIF Function in Excel - Step by Step Tutorial7 min readHow To Use MATCH Function in Excel (With Examples)6 min readExcel Data Analysis & VisualizationHow to Sort by the Last Name in Excel?5 min readHow to Sort Data by Color in Excel?3 min readHow to Swap Columns in Excel: 3 Methods Explained8 min readSparklines in Excel8 min readPivot Tables in Excel3 min readHow to Sort a Pivot Table in Excel : A Complete Guide7 min readPivot Table Slicers in Excel5 min readData Visualizations in Power View3 min readChart Visualizations in Excel Power View8 min readTable Visualization in Excel Power View5 min readMultiple Visualizations in Excel Power View4 min readDynamic Excel Dashboards Using Picklists3 min readAdvanced ExcelHow to Use Solver in Excel3 min readPower Query â Source Reference as File Path in Cell2 min readHow to Create Relational Tables in Excel?4 min readHow to Import, Edit, Load and Consolidate Data in Excel Power Query?7 min readConnecting Excel to SQLite4 min readHandling Integers in Advanced Excel2 min readPower Pivot for Excel10 min readExcel Power Pivot - Managing Data Model6 min readTable and Chart Combinations in Excel Power Pivot3 min readExcel Data VisualizationAdvanced Excel - Chart Design4 min readHow to Create a Graph in Excel: A Step-by-Step Guide for Beginners8 min readFormatting Charts in Excel3 min readCreate a Waterfall Chart in Excel5 min readScatter and Bubble Chart Visualization in Excel5 min readCreate a Pie Chart in Excel5 min readHow To Create A Pictograph In Excel?3 min readHow to make a 3 Axis Graph using Excel?7 min readHow To Create a Tornado Chart In Excel?2 min readHow to Create Flowchart in Excel: Step-by-Step Guide6 min readExcel VBA & MacrosHow to Insert and Run VBA Code in Excel?2 min readVariables and Data Types in VBA Excel9 min readHow to Use the VBA Editor in Excel: Quick Guide 20247 min readVBA Strings in Excel8 min readVBA Find Function in Excel5 min readActiveX Control in Excel VBA3 min readMultidimensional Arrays in Excel VBA2 min readVBA Error Handling10 min readHow to Remove Duplicates From Array Using VBA in Excel?2 min readMacros In Excel With Examples10 min readAssigning Excel Macro to Objects3 min readHow to Enable Macros in Excel (2025): Step-by-Step Guide9 min readPower BI & Advance Features in ExcelPower BI - Tools and Functionalities5 min readPower BI - Data Sources and its type4 min readPower BI - How to Create a Report using Excel Data in Workspace4 min readData Analysis Expressions (DAX)6 min readPower BI - How to upload Excel Files to Dashboard?3 min read Like