Difference between revisions of "Manuals/calci/CELL"

From ZCubes Wiki
Jump to navigation Jump to search
 
(19 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style="font-size:30px">'''CELL(info_type,reference)'''</div><br/>
+
<div style="font-size:30px">'''CELL (InfoType,Reference)'''</div><br/>
*<math>info_type</math> specifies what type of information we want.
+
*<math>InfoType</math> specifies what type of information we want.
*<math>references</math> is the address of the cell.'
+
*<math>Reference</math> is the cell we want to retrieve information.
 +
**CELL(), returns information about the formatting, location, or contents of a cell.
  
This function gives the information about the formatting, location, or contents of the upper-left cell in a reference.
+
==Description==
Let's see an example if an element is placed in the B4 cell,i.e 4th row
+
*This function is used to retrieve information about a cell
 +
*The information about the cell can be the contents,size, formatting etc.
 +
*<math>InfoType</math> specifies what type of information we want.
 +
*<math>Reference</math> is the cell we want to retrieve information.
 +
*<math>Reference</math> is optional.
 +
*If <math>Reference</math> is omitted, the last cell that was changed will be taken
  
then =CELL(“row”,B2) is 2
+
{| border="1" cellpadding="1"
=CELL(“row”,B3) is 3
+
|-
 +
! width="50"|Type
 +
! width="250"|Value Returned
  
where Infotype is a text value that specifies what type of cell information that want. And 'ref' is the cell that want information about.
+
|-
 +
| "address"
 +
| Address of the cell. If the cell refers to a range, it is the first cell in the range.
  
{| id="TABLE3" class="SpreadSheet blue"
+
|-
|- class="even"
+
| "col"
| class=" " |
+
| Column number of the cell.
| Column1
+
 
| Column2
+
|-
| Column3
+
| "color"
| Column4
+
| Returns 1 if the color is a negative value; Otherwise it returns 0.
|- class="odd"
+
|-
| class=" " | Row1
+
| "contents"
| class="   sshl_f    " | 12
+
| Contents of the upper-left cell.
| class="sshl_f" | 2
+
|-
| class="                   " |
+
| "filename"
|
+
| Filename of the file that contains reference.
|- class="even"
+
|-
| class="  " | Row2
+
| "format"
| class="sshl_f" | 5
+
| Number format of the cell. See example formats below.
| class="sshl_f" | 3
+
|-
|
+
| "parentheses"
|
+
| Returns 1 if the cell is formatted with parentheses; Otherwise, it returns 0.
|- class="odd"
+
|-
| Row3
+
| "prefix"
| class="sshl_f" |
+
| Label prefix for the cell.
| class="SelectTD SelectTD " |
+
* Returns a single quote (') if the cell is left-aligned.
|
+
* Returns a double quote (") if the cell is right-aligned.
|
+
* Returns a caret (^) if the cell is center-aligned.
|- class="even"
+
* Returns a back slash (\) if the cell is fill-aligned.
| Row4
+
* Returns an empty text value for all others
|
+
|-
| class="sshl_f" |
+
| "protect"
|
+
| Returns 1 if the cell is locked. Returns 0 if the cell is not locked.
|
+
|-
|- class="odd"
+
| "row"
| class=" " | Row5
+
| Row number of the cell.
|
+
|-
|
+
| "type"
|
+
|  
|
+
*Returns "b" if the cell is empty.
|- class="even"
+
*Returns "l" if the cell contains a text constant.
| Row6
+
*Returns "v" for all others
|
+
|-
|
+
| "width"
|
+
| Column width of the cell, rounded to the nearest integer.
| class=" " |
+
|}
 +
 
 +
==Examples==
 +
{| class="wikitable"
 +
|+Spreadsheet
 +
|-
 +
! !! A !! B !! C !! D!! E
 +
|-
 +
! 1
 +
| 2 || 3 || 7 ||9 || 15
 +
|-
 +
! 2
 +
| 8 || 12 || 13 || 20 || 25
 +
|-
 +
! 3
 +
| 14  || 3  || ||6 || 15
 
|}
 
|}
 +
*=CELL("address",A2) :
 +
*=CELL("col",A2) : 1
 +
*=CELL("row",A2) : 2
 +
*=CELL("type",A3) : v
 +
*=CELL("width",A3):102
 +
 +
==Related Videos==
 +
 +
{{#ev:youtube|C_XphQ9YBOg|280|center|CELL}}
 +
 +
==See Also==
 +
*[[Manuals/calci/COLUMN | COLUMN]]
 +
*[[Manuals/calci/COLUMNS | COLUMNS]]
 +
*[[Manuals/calci/ROW | ROW]]
 +
*[[Manuals/calci/ADDRESS| ADDRESS]]
 +
 +
==References==
 +
*[http://www.excelfunctions.net/Excel-Cell-Function.html Cell]
 +
  
  
Let's C1R1= PLACE
+
*[[Z_API_Functions | List of Main Z Functions]]
  
then =CELL(“contents”,B2) is PLACE
+
*[[ Z3 |  Z3 home ]]

Latest revision as of 17:11, 1 August 2018

CELL (InfoType,Reference)


  • specifies what type of information we want.
  • is the cell we want to retrieve information.
    • CELL(), returns information about the formatting, location, or contents of a cell.

Description

  • This function is used to retrieve information about a cell
  • The information about the cell can be the contents,size, formatting etc.
  • specifies what type of information we want.
  • is the cell we want to retrieve information.
  • is optional.
  • If is omitted, the last cell that was changed will be taken
Type Value Returned
"address" Address of the cell. If the cell refers to a range, it is the first cell in the range.
"col" Column number of the cell.
"color" Returns 1 if the color is a negative value; Otherwise it returns 0.
"contents" Contents of the upper-left cell.
"filename" Filename of the file that contains reference.
"format" Number format of the cell. See example formats below.
"parentheses" Returns 1 if the cell is formatted with parentheses; Otherwise, it returns 0.
"prefix" Label prefix for the cell.
  • Returns a single quote (') if the cell is left-aligned.
  • Returns a double quote (") if the cell is right-aligned.
  • Returns a caret (^) if the cell is center-aligned.
  • Returns a back slash (\) if the cell is fill-aligned.
  • Returns an empty text value for all others
"protect" Returns 1 if the cell is locked. Returns 0 if the cell is not locked.
"row" Row number of the cell.
"type"
  • Returns "b" if the cell is empty.
  • Returns "l" if the cell contains a text constant.
  • Returns "v" for all others
"width" Column width of the cell, rounded to the nearest integer.

Examples

Spreadsheet
A B C D E
1 2 3 7 9 15
2 8 12 13 20 25
3 14 3 9 6 15
  • =CELL("address",A2) :
  • =CELL("col",A2) : 1
  • =CELL("row",A2) : 2
  • =CELL("type",A3) : v
  • =CELL("width",A3):102

Related Videos

CELL

See Also

References