सीधे मुख्य सामग्री पर जाएं

ROWS Function

MS Excel: How to use the ROWS Function (WS)

This Excel tutorial explains how to use the Excel ROWS function with syntax and examples.

Description

The Microsoft Excel ROWS function returns the number of rows in a cell reference.
The ROWS function is a built-in function in Excel that is categorized as a Lookup/Reference Function. It can be used as a worksheet function (WS) in Excel. As a worksheet function, the ROWS function can be entered as part of a formula in a cell of a worksheet.

Syntax

The syntax for the ROWS function in Microsoft Excel is:
ROWS ( reference )

Parameters or Arguments

reference
A reference to a range of cells or an array.

Returns

The ROWS function returns a numeric value.

Applies To

  • Excel 2016, Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Function

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel ROWS function examples and explore how to use the ROWS function as a worksheet function in Microsoft Excel:
Microsoft Excel
Based on the Excel spreadsheet above, the following ROWS examples would return:
=ROWS(B4)
Result: 1

=ROWS(A4:B6)
Result: 3

=ROWS({1,2;3,4})
Result: 2

=ROWS({1,2,3,4;5,6,7,8})
Result: 2
You can also defined a named range called suppliers that refers to Sheet1!$A$1:$C$8.
Microsoft Excel
Then using the ROWS function, you could refer to this named range as follows:
=ROWS(suppliers)
Result: 8

टिप्पणियाँ

इस ब्लॉग से लोकप्रिय पोस्ट

ROW Function

MS Excel:  How to use the ROW Function (WS) This Excel tutorial explains how to use the Excel  ROW function  with syntax and examples. Description The Microsoft Excel ROW function returns the row number of a cell reference. The ROW function is a built-in function in Excel that is categorized as a  Lookup/Reference Function . It can be used as a worksheet function (WS) in Excel. As a worksheet function, the ROW function can be entered as part of a formula in a cell of a worksheet. Syntax The syntax for the ROW function in Microsoft Excel is: ROW( [reference] ) Parameters or Arguments reference Optional. It is a reference to a cell or range of cells. Returns The ROW function returns a numeric value. Note If the reference parameter is omitted, it assumes that the  reference  is the cell address in which the ROW function has been entered in. For example, the ROW function used in the picture above returns 1 because the RO...