Wuya Tutorial-JavaScript-ADDRESS Function

describe

You can use the ADDRESS function to get the address of a cell in a worksheet, given a specified row and column number.

For example, ADDRESS(2,3) returns $C $2. Take another Example, ADDRESS(77,300) returns $KN $77. You can provide the row number and column number parameters to the ADDRESS function using other functions such as the ROW and COLUMN functions.

grammar

ADDRESS (row_num, column_num, [abs_num], [a1], [sheet_text]) 

debate

Argument describe Required/Optional
row_num A numeric value that specifies the row number to use in the cell reference. Required
column_num A numeric value that specifies the column number to use in the cell reference. Required
abs_num

A numeric value that specifies the type of reference to be returned.

Please see the table below.

Optional
a1

A logical value specifying A1 or R1C1 citation style.

In the A1 style, columns are labeled with letters and rows with numbers.

In R1C1 reference style, columns and rows are numbered.

If the A1 parameter is TRUE or omitted, the ADDRESS function returns an A1-style reference.

If the A1 parameter is FALSE, the ADDRESS function returns an R1C1-style reference.

Optional
sheet_text

Text value that specifies the name of the worksheet to be used as an external reference.

For example, the formula = ADDRESS(1,1, "Sheet 2") returns Sheet 2!$A $1.

If the sheet_text argument is omitted, the sheet name is not used and the address returned by the function refers to the cell on the current sheet.

Optional

The abs_num parameter returns the following values ​​-

abs_num Returns a reference of this type
1 or omitted absolute
2 Absolute row; relative column
3 Relative row; absolute column
4 relatively

Notes

  • If row_num is less than 1 or greater than the number of rows in the spreadsheet, the ADDRESS function returns a #VALUE error.

  • If column_num is less than 1 or greater than the number of columns in the spreadsheet, the ADDRESS function returns a #VALUE error.

  • If any of the supplied row_num, column_num, or [abs_num] arguments are not numeric, the ADDRESS function returns a #VALUE error.

  • If the supplied [a1] parameter is not recognized as a logical value, the ADDRESS function will return a #VALUE error.

applicability

Excel 2007,Excel 2010,Excel 2013,Excel 2016

Example

Address Function

ADDRESS function in JavaScript - Wuya Tutorial Network Wuya Tutorial Network provides description Given the specified row number and column number, you can use the ADDRESS function to get the address of the cell in the worksheet. For example, ADDRE... https://www.learnfk.com/javascript/advanced-excel-lookup-reference-address-function.html

Guess you like

Origin blog.csdn.net/w116858389/article/details/132900731