Difference between revisions of "Manuals/calci/CELL"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="2SpaceContent" align="left"><div class="ZEditBox" align=...")
 
 
(21 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
<div style="font-size:30px">'''CELL (InfoType,Reference)'''</div><br/>
 +
*<math>InfoType</math> specifies what type of information we want.
 +
*<math>Reference</math> is the cell we want to retrieve information.
 +
**CELL(), returns information about the formatting, location, or contents of a cell.
  
Syntax
+
==Description==
 +
*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
  
</div></div>
+
{| border="1" cellpadding="1"
----
+
|-
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
! width="50"|Type
 +
! width="250"|Value Returned
  
Examples-1
+
|-
 +
| "address"
 +
| Address of the cell. If the cell refers to a range, it is the first cell in the range.
  
</div></div>
+
|-
----
+
| "col"
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
+
| Column number of the cell.
----
 
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
  
<font size="5">Description</font>
+
|-
 
+
| "color"
</div></div>
+
| Returns 1 if the color is a negative value; Otherwise it returns 0.
----
+
|-
<div id="5SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> 
+
| "contents"
 
+
| Contents of the upper-left cell.
<font color="#484848"><font face="Arial, sans-serif"><font size="2">This function gives the information about the formatting, location, or contents of the upper-left cell in a reference.</font></font></font>
+
|-
 
+
| "filename"
</div></div>
+
| Filename of the file that contains reference.
----
+
|-
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="6"> '''<font face="Arial">CELL</font>'''</font></div></div>
+
| "format"
----
+
| Number format of the cell. See example formats below.
<div id="9SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">  <font color="#484848"><font face="Arial, sans-serif"><font size="2"><font color="#484848"><font face="Arial, sans-serif"><font size="2">Let's see an example if an element is placed in the B4 cell,i.e 4<sup>th</sup> row</font></font></font>
+
|-
 +
| "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.
 +
|}
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">then =CELL(“row”,B2) is 2</font></font></font>
+
==Examples==
 
+
{| class="wikitable"
=CELL(“row”,B3) is 3
+
|+Spreadsheet
 
+
|-
</font></font></font></div></div>
+
! !! A !! B !! C !! D!! E
----
+
|-
<div id="6SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"> <font color="#484848"><font face="Arial, sans-serif"><font size="2">'''CELL'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">(</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">'''infotype'''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">,ref)</font></font></font>
+
! 1
 
+
| 2 || 3 || 7 ||9 || 15
<font color="#484848"><font face="Arial, sans-serif"><font size="2">'''where Infotype '''</font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">is a text value that specifies what type of cell information that want. </font></font></font><font color="#484848"><font face="Arial, sans-serif"><font size="2">And 'ref' is the cell that want information about.</font></font></font>
+
|-
 
+
! 2
</div></div>
+
| 8 || 12 || 13 || 20 || 25
----
+
|-
<div id="7SpaceContent" class="zcontent" align="left">
+
! 3
 
+
| 14  || || ||6 || 15
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
| class=" " |
 
| Column1
 
| Column2
 
| Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class="    sshl_f    " | 12
 
| class="sshl_f" | 2
 
| class="                  " |
 
|
 
|- class="even"
 
| class="  " | Row2
 
| class="sshl_f" | 5
 
| class="sshl_f" | 3
 
|
 
|
 
|- class="odd"
 
| Row3
 
| class="sshl_f" |
 
| class="SelectTD SelectTD " |
 
<div id="7Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="7Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
|
 
|
 
|- class="even"
 
| Row4
 
|
 
| class="sshl_f" |
 
|
 
|
 
|- class="odd"
 
| class=" " | Row5
 
|
 
|
 
|
 
|
 
|- class="even"
 
| Row6
 
|
 
|
 
|
 
| class=" " |
 
 
|}
 
|}
 +
*=CELL("address",A2) :
 +
*=CELL("col",A2) : 1
 +
*=CELL("row",A2) : 2
 +
*=CELL("type",A3) : v
 +
*=CELL("width",A3):102
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
==Related Videos==
----
 
<div id="4SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples-2
+
{{#ev:youtube|C_XphQ9YBOg|280|center|CELL}}
  
</div></div>
+
==See Also==
----
+
*[[Manuals/calci/COLUMN | COLUMN]]
<div id="12SpaceContent" class="zcontent" align="left">
+
*[[Manuals/calci/COLUMNS | COLUMNS]]
 
+
*[[Manuals/calci/ROW | ROW]]
{| id="TABLE2" class="SpreadSheet blue"
+
*[[Manuals/calci/ADDRESS| ADDRESS]]
|- class="even"
 
| class=" " |
 
| Column1
 
| Column2
 
| Column3
 
| Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class="sshl_f" | PLACE
 
| class="sshl_f" | PLACE
 
| class="                                              " |
 
|
 
|- class="even"
 
| class="  " | Row2
 
| class="                                                        " |
 
| class="SelectTd" |
 
| class="SelectTD" |
 
|
 
|- class="odd"
 
| Row3
 
|
 
|
 
|
 
|
 
|- class="even"
 
| Row4
 
|
 
|
 
|
 
|
 
|- class="odd"
 
| class=" " | Row5
 
|
 
|
 
|
 
|
 
|- class="even"
 
| Row6
 
|
 
|
 
|
 
|
 
|}
 
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
==References==
----
+
*[http://www.excelfunctions.net/Excel-Cell-Function.html Cell]
<div id="14SpaceContent" class="zcontent" align="left"> 
 
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">Let's C1R1= PLACE</font></font></font>
 
  
<font color="#484848"><font face="Arial, sans-serif"><font size="2">then =CELL(“contents”,B2) is PLACE</font></font></font>
 
  
<br /><br />
+
*[[Z_API_Functions | List of Main Z Functions]]
  
</div>
+
*[[ Z3 |  Z3 home ]]
----
 

Latest revision as of 16: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