Excel for Office 365 Excel for Office 365 for Mac Excel 2019 Excel 2016 Excel 2019 for Mac Excel 2013 Excel 2010 Excel 2007 Excel 2016 for Mac Excel for Mac 2011 Excel Online Excel for iPad Excel for iPhone Excel for Android tablets Excel for Android phones Excel Starter 2010 This article describes the formula syntax and usage of the CELL function in Microsoft Excel. Find links to more information about formatting the data in cells and applying cell styles in the See Also section.
I put the remarks in to tell you if the user was using a mac or pc. And call the correct code. For the call you need to for the 'PC' you need to change the 'Call Your Pc code'. For the 'Mac' code I changed my original code name to what you see in the call for Mac. If the user has a PC the pc code will run. If Mac the code for the mac will run.
Description The CELL function returns information about the formatting, location, or contents of a cell. For example, if you want to verify that a cell contains a numeric value instead of text before you perform a calculation on it, you can use the following formula: = IF( CELL('type', A1) = 'v', A1. 2, 0) This formula calculates A1.2 only if cell A1 contains a numeric value, and returns 0 if A1 contains text or is blank.
Syntax CELL(infotype, reference) The CELL function syntax has the following arguments:. Infotype Required. A text value that specifies what type of cell information you want to return. The following list shows the possible values of the Infotype argument and the corresponding results. Infotype Returns 'address' Reference of the first cell in reference, as text. 'col' Column number of the cell in reference.
'color' The value 1 if the cell is formatted in color for negative values; otherwise returns 0 (zero). Note: This value is not supported in Excel Online, Excel Mobile, and Excel Starter.
Reference Optional. The cell that you want information about. If omitted, the information specified in the Infotype argument is returned for the last cell that was changed. If the reference argument is a range of cells, the CELL function returns the information for only the upper left cell of the range. CELL format codes The following list describes the text values that the CELL function returns when the Infotype argument is 'format' and the reference argument is a cell that is formatted with a built-in number format. If the Excel format is The CELL function returns General 'G' 0 'F0' #,##0 ',0' 0.00 'F2' #,##0.00 ',2' $#,##0);($#,##0) 'C0' $#,##0);Red($#,##0) 'C0-' $#,##0.00);($#,##0.00) 'C2' $#,##0.00);Red($#,##0.00) 'C2-' 0% 'P0' 0.00% 'P2' 0.00E+00 'S2' #?/?
![Microsoft Excel For Mac 2011 Install Filename Microsoft Excel For Mac 2011 Install Filename](http://www.rondebruin.nl/mac/images/rdbmergemac.png)
'G' m/d/yy or m/d/yy h:mm or mm/dd/yy 'D4' d-mmm-yy or dd-mmm-yy 'D1' d-mmm or dd-mmm 'D2' mmm-yy 'D3' mm/dd 'D5' h:mm AM/PM 'D7' h:mm:ss AM/PM 'D6' h:mm 'D9' h:mm:ss 'D8'. Note: If the Infotype argument in the CELL function is 'format' and you later apply a different format to the referenced cell, you must recalculate the worksheet to update the results of the CELL function. Example Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet.
![Excel Excel](http://i.stack.imgur.com/WE9iE.png)
For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.
Data 75 Hello, world! Formula Description Result =CELL('row', A20) The row number of cell A20.
20 =CELL('contents', A3) The contents of cell A3. Hello, world! =CELL('type', A2) The data type of cell A2. A data type of 'v' indicates value. V Related Topics.
Solvusoft: Microsoft Gold Certified Company Recognized for best-in-class capabilities as an ISV (Independent Software Vendor) Solvusoft is recognized by Microsoft as a leading Independent Software Vendor, achieving the highest level of completence and excellence in software development. Solvusoft's close relationship with Microsoft as a Gold Certified Partner enables us to provide best-in-class software solutions that are optimized for performance on Windows operating systems. How is the Gold Competency Level Attained? To achieve a Gold competency level, Solvusoft goes through extensive independent analysis that looks for, amongst other qualities, a high level of software expertise, a successful customer service track record, and top-tier customer value. As a Gold Certified Independent Software Vendor (ISV), Solvusoft is able to provide the highest level of customer satisfaction through delivering top-level software and service solutions, which have been subject to a rigourous and continually-audited approval process by Microsoft.