{"id":1075,"date":"2019-05-03T18:25:03","date_gmt":"2019-05-03T15:25:03","guid":{"rendered":"https:\/\/www.test4u.eu\/excelpedia\/?p=1075"},"modified":"2019-09-03T10:33:44","modified_gmt":"2019-09-03T07:33:44","slug":"the-cell-function","status":"publish","type":"post","link":"https:\/\/www.test4u.eu\/excelpedia\/the-cell-function\/","title":{"rendered":"The CELL Function"},"content":{"rendered":"\n<p>It returns information about the formatting, location, or contents of a cell. <\/p>\n\n\n\n<p>The syntax of the function is the following: <\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-style-large is-layout-flow wp-block-quote-is-layout-flow\"><p> <strong>CELL<\/strong><em>(<strong>info_type, [reference]<\/strong><\/em>) <\/p><cite><strong>info_type<\/strong>: The type of cell information we need.<br><strong>[reference]<\/strong>: Optional. The cell that we need information about. If omitted the info_type returned is about the last cell that was changed. If the reference is a range of cells the information returned is about the cell in the upper left corner of the range.<br><br><\/cite><\/blockquote>\n\n\n\n<table class=\"wp-block-table has-fixed-layout is-style-stripes\"><tbody><tr><td><strong>info_type<\/strong><\/td><td><strong>Returns<\/strong><\/td><\/tr><tr><td>&#8220;address&#8221;<\/td><td>Reference of the first cell in reference, as text<\/td><\/tr><tr><td>&#8220;col&#8221;<\/td><td>Column number of the cell in reference<\/td><\/tr><tr><td>&#8220;color&#8221;<\/td><td>The value 1 if the cell is formatted in color for negative values; otherwise returns 0 (zero)<\/td><\/tr><tr><td>&#8220;contents&#8221;<\/td><td>Value of the upper-left cell in reference; not a formula<\/td><\/tr><tr><td>&#8220;filename&#8221;<\/td><td>Filename (including full path) of the file that contains reference, as text. Returns empty text (&#8220;&#8221;) if the worksheet that contains reference has not yet been saved<\/td><\/tr><tr><td>&#8220;format&#8221;<\/td><td>Text value corresponding to the number format of the cell. (see table below)<br><\/td><\/tr><tr><td>&#8220;parentheses&#8221;<\/td><td>The value 1 if the cell is formatted with parentheses for positive or all values; otherwise returns 0<\/td><\/tr><tr><td>&#8220;prefix&#8221;<\/td><td>Text value corresponding to the &#8220;label prefix&#8221; of the cell. Returns single quotation mark (&#8216;) if the cell contains left-aligned text, double quotation mark (&#8220;) if the cell contains right-aligned text, caret (^) if the cell contains centered text, backslash () if the cell contains fill-aligned text, and empty text (&#8220;&#8221;) if the cell contains anything else<\/td><\/tr><tr><td>&#8220;protect&#8221;<\/td><td>The value 0 if the cell is not locked; otherwise returns 1 if the cell is locked<\/td><\/tr><tr><td>&#8220;row&#8221;<\/td><td>Row number of the cell in reference<\/td><\/tr><tr><td>&#8220;type&#8221;<\/td><td>Text value corresponding to the type of data in the cell. Returns &#8220;b&#8221; for blank if the cell is empty, &#8220;l&#8221; for label if the cell contains a text constant, and &#8220;v&#8221; for value if the cell contains anything else<\/td><\/tr><tr><td>&#8220;width&#8221;<\/td><td>Column width of the cell, rounded off to an integer. Each unit of column width is equal to the width of one character in the default font size<\/td><\/tr><\/tbody><\/table>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"has-medium-font-size\"><strong>This is the explanation of the <em>format <\/em>info_type. <\/strong><\/p>\n\n\n\n<p>It returns &#8220;-&#8221; at the end of the text value if the cell is formatted in color for negative values. Returns &#8220;()&#8221; at the end of the text value if the cell is formatted with parentheses for positive or all values.<\/p>\n\n\n\n<p>In more detail:<\/p>\n\n\n\n<table class=\"wp-block-table has-fixed-layout is-style-stripes\"><tbody><tr><td><strong>format<\/strong><\/td><td><strong>Returns<\/strong><\/td><\/tr><tr><td>\n<p>General<\/p>\n<\/td><td>\n<p>&#8220;G&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>0<\/p>\n<\/td><td>\n<p>&#8220;F0&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>#,##0<\/p>\n<\/td><td>\n<p>&#8220;,0&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>0.00<\/p>\n<\/td><td>\n<p>&#8220;F2&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>#,##0.00<\/p>\n<\/td><td>\n<p>&#8220;,2&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>$#,##0_);($#,##0)<\/p>\n<\/td><td>\n<p>&#8220;C0&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>$#,##0_);[Red]($#,##0)<\/p>\n<\/td><td>\n<p>&#8220;C0-&#8220;<\/p>\n<\/td><\/tr><tr><td>\n<p>$#,##0.00_);($#,##0.00)<\/p>\n<\/td><td>\n<p>&#8220;C2&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>$#,##0.00_);[Red]($#,##0.00)<\/p>\n<\/td><td>\n<p>&#8220;C2-&#8220;<\/p>\n<\/td><\/tr><tr><td>\n<p>0%<\/p>\n<\/td><td>\n<p>&#8220;P0&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>0.00%<\/p>\n<\/td><td>\n<p>&#8220;P2&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>0.00E+00<\/p>\n<\/td><td>\n<p>&#8220;S2&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p># ?\/? or # ??\/??<\/p>\n<\/td><td>\n<p>&#8220;G&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>m\/d\/yy or m\/d\/yy h:mm or mm\/dd\/yy<\/p>\n<\/td><td>\n<p>&#8220;D4&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>d-mmm-yy or dd-mmm-yy<\/p>\n<\/td><td>\n<p>&#8220;D1&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>d-mmm or dd-mmm<\/p>\n<\/td><td>\n<p>&#8220;D2&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>mmm-yy<\/p>\n<\/td><td>\n<p>&#8220;D3&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>mm\/dd<\/p>\n<\/td><td>\n<p>&#8220;D5&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>h:mm AM\/PM<\/p>\n<\/td><td>\n<p>&#8220;D7&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>h:mm:ss AM\/PM<\/p>\n<\/td><td>\n<p>&#8220;D6&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>h:mm<\/p>\n<\/td><td>\n<p>&#8220;D9&#8221;<\/p>\n<\/td><\/tr><tr><td>\n<p>h:mm:ss<\/p>\n<\/td><td>\n<p>&#8220;D8&#8221;<\/p>\n<\/td><\/tr><\/tbody><\/table>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>Click on the button to practice using this function, with the help of our <strong>Online Assessment Tool<\/strong>:<\/p>\n\n\n<p class=\"button-practice-container\" ><a class=\"button button-primary button-practice\" style=\"height:auto\"  href=\"https:\/\/www.test4u.eu\/excelpedia\/wp-content\/plugins\/unlimited-integration\/run.php?id=SHoxZitDTjZmYTFPWGxnVG4vWENpR3lpWDRMWGxuT3pkZXp4R1N2LzBTcz0=&b=Z0RIdW45blNjN1BBLy9xZEJYOWJJVjJhK0xnektrNnVsNEpYb2RhSDdpMkhzNllTelpoSTczenpyMmMwRS8xODZjVVFYRG5Vak41TUZDNzF5YndBWldtRllYbjVEWkMrR0RWNmZXRU15SUk9\">Practice<\/a><\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n\n<p class=\"has-medium-font-size\"><strong>Here is an example of how to use the CELL function:<\/strong><\/p>\n\n\n\n<p>In the cell \u03911 show the row of the cell C9 and in the cell B1 the column of the cell C9, with the use of the proper function.<\/p>\n\n\n\n<figure class=\"wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-4-3 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<span class=\"embed-youtube\" style=\"text-align:center; display: block;\"><iframe class=\"youtube-player\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/IrDloLSXpwg?version=3&#038;rel=0&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;fs=1&#038;hl=en-US&#038;autohide=2&#038;wmode=transparent\" allowfullscreen=\"true\" style=\"border:0;\" sandbox=\"allow-scripts allow-same-origin allow-popups allow-presentation allow-popups-to-escape-sandbox\"><\/iframe><\/span>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>It returns information about the formatting, location, or contents of a cell. <\/p>\n","protected":false},"author":2,"featured_media":1076,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[165,131],"class_list":["post-1075","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-functions","tag-cell","tag-information"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.test4u.eu\/excelpedia\/wp-content\/uploads\/2019\/05\/CELL.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paRnIz-hl","_links":{"self":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/posts\/1075","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/comments?post=1075"}],"version-history":[{"count":0,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/posts\/1075\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/media\/1076"}],"wp:attachment":[{"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/media?parent=1075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/categories?post=1075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.test4u.eu\/excelpedia\/wp-json\/wp\/v2\/tags?post=1075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}