Excel VBA | count() functions Last Updated : 29 Sep, 2022 Comments Improve Suggest changes 6 Likes Like Report Visual Basic for Applications (VBA) 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 software. It helps in generating reports, preparing various charts, graphs and moreover, it performs calculation using its various functions. Let’s see Count() functions in Excel. COUNT: It allows to count the number of cells that contain numbers in a range. One can use the COUNT function to calculate the total number of entries in an array of numbers. Syntax:=COUNT(value1, value2…) value1: The very first item required to count numbers. value2: It can be specified upto 255 other entries which you want to count. Note: -> Only those arguments are counted that are numbers or text enclosed between quotation marks, as, “2”. -> Arguments like logical values and text representation of numbers that are typed directly are counted. -> Any values that cannot be translated to numbers are ignored. Example: Output: COUNTA: This counts only those range of cells which are not empty. Syntax:=COUNTA(value1, value2…) value1: It is the first argument to be counted. value2: All additional arguments can be represented that has to becounted. This can be specified upto 255 arguments. Note: This will count cells that contain any kind of information that includes error values or empty text also, but not empty cells. Example: Output: COUNTIF:This will allow user to count the number of cells which meet a certain criteria. Syntax: =COUNTIF(where to look, what to look criteria) Example: Output: COUNTIFS: It will map criteria to cells in multiple ranges and the number of times all criteria met are counted. Syntax: =COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2]…) criteria_range1: First range to evaluate criteria. criteria1: Criteria in any form that defines which all cells to be counted. criteria_range2, criteria2, … : Additional range with their criteria. Specified upto 127 range/criteria. Remarks: -> Wildcard characters can be used. -> If criteria meets an empty cell, it will be treated as 0 value. -> Count increases by 1 as the first cells meet their criteria, then the second cell meet and count again increases by 1 and so on. Example: Output: Create Quiz Comment A aishwarya.27 Follow 6 Improve A aishwarya.27 Follow 6 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