Excel Office

Excel How Tos, Tutorials, Tips & Tricks, Shortcuts

Category: Information Functions

Excel Information Functions return info about the current environment, including platform,

SHEETS function: Description, Usage, Syntax, Examples and Explanation

What is SHEETS function in Excel? SHEETS function is one of the Information functions in Microsoft Excel that returns the number of sheets in a reference. Syntax of SHEETS function SHEETS(reference) The SHEETS function syntax has the following arguments. Reference (Optional): Reference is a reference for which you want to know the number of sheets it contains. If Reference is omitted,…

SHEET function: Description, Usage, Syntax, Examples and Explanation

What is SHEET function in Excel? SHEET function is one of the Information functions in Microsoft Excel that returns the sheet number of the reference sheet. Syntax of SHEET function SHEET(value) The SHEET function syntax has the following arguments. Value(Optional): Value is the name of a sheet or a reference for which you want the sheet number. If value is omitted,…

NA function: Description, Usage, Syntax, Examples and Explanation

What is NA function in Excel? NA function is one of the Information functions in Microsoft Excel that returns the error value #N/A. #N/A is the error value that means “no value is available.” Use NA to mark empty cells. By entering #N/A in cells where you are missing information, you can avoid the problem of unintentionally including empty cells…

CELL function: Description, Usage, Syntax, Examples and Explanation

What is CELL function in Excel? CELL function is one of the Information functions in Microsoft Excel that returns info 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”,…

N function: Description, Usage, Syntax, Examples and Explanation

What is N function in Excel? N function is one of the Information functions in Microsoft Excel that returns a value converted to a number. Syntax of N function N(value) The N function syntax has the following arguments: Value: The value you want converted. N converts values listed in the following table. If value is or refers to N returns A…

ISFORMULA function: Description, Usage, Syntax, Examples and Explanation

What is ISFORMULA function in Excel? ISFORMULA function is one of the Information functions in Microsoft Excel that checks whether there is a reference to a cell that contains a formula, and returns TRUE or FALSE. Syntax of ISFORMULA function ISFORMULA(reference) The ISFORMULA function syntax has the following arguments. Reference: Reference is a reference to the cell you want to test.…

ISEVEN function: Description, Usage, Syntax, Examples and Explanation

What is ISEVEN function in Excel? ISEVEN function is one of the Information functions in Microsoft Excel that returns TRUE if number is even, or FALSE if number is odd. Syntax of ISEVEN function ISEVEN(number) The ISEVEN function syntax has the following arguments: Number: The value to test. If number is not an integer, it is truncated. ISEVEN formula explanation If number…

INFO function: Description, Usage, Syntax, Examples and Explanation

What is INFO function in Excel? INFO function is one of the Information functions in Microsoft Excel that returns information about the current operating environment. Syntax of INFO function INFO(type_text) The INFO function syntax has the following arguments: Type_text: Text that specifies what type of information you want returned. Type_text Returns “directory” Path of the current directory or folder. “numfile” Number…

TYPE function: Description, Usage, Syntax, Examples and Explanation

What is TYPE function in Excel? TYPE function is one of the Information functions in Microsoft Excel that returns the type of value. Use TYPE when the behavior of another function depends on the type of value in a particular cell. Syntax of TYPE function TYPE(value) The TYPE function syntax has the following arguments: Value: Can be any Microsoft Excel value,…

IS functions: ISBLANK, ISERR, ISERROR, ISLOGICAL, ISNA, ISNONTEXT, ISNUMBER, ISREF, ISTEXT

What is IS function in Excel? IS functions, ISBLANK, ISERR, ISERROR, ISLOGICAL, ISNA, ISNONTEXT, ISNUMBER, ISREF, ISTEXT are under the Information functions in Microsoft Excel. Each of these functions, referred to collectively as the IS functions, checks the specified value and returns TRUE or FALSE depending on the outcome. For example, the ISBLANK function returns the logical value TRUE if the value argument is a reference…

How to check worksheet name exists in Excel

To test if a worksheet name exists in a workbook, you can use a formula based on the ISREF and INDIRECT functions. Formula =ISREF(INDIRECT(“sheetname”&”!A1″)) Explanation In the example shown, the formula in C5 is: =ISREF(INDIRECT(B5&”!A1″)) How this formula works The ISREF function returns TRUE for a valid worksheet reference and FALSE is not. In this case, we want to find…

Get workbook name and path without sheet in Excel

If you want to get the current workbook’s full name and path without a sheet name, you can use a formula that employs several text functions to strip off the sheet name. The final result will be a text string that looks like this: path[workbook.xlsm] Formula =SUBSTITUTE( LEFT(CELL(“filename”,A1),FIND(“]”,CELL(“filename”,A1))-1),”[“,””) Explanation How the formula works The CELL function is used with “filename”…

How to get sheet name only in Excel

If you want to get the sheet name only (i.e. the sheet name without the file name or path) you can do so with rather long formula that uses the MID function along with the FIND function. The final result will look something like this: Sheet1 Formula =MID(CELL(“filename”,A1),FIND(“]”, CELL(“filename”,A1))+1,255) Explanation How the formula works The cell function is used to…

How to retrieve workbook name only in Excel

If you want to get the workbook name only (i.e. the file name without path or sheet name) you can do so with a rather long formula that uses the MID function along with the FIND function. Formula =MID(CELL(“filename”,A1),FIND(“[“,CELL (“filename”,A1))+1,FIND(“]”,CELL(“filename”,A1)) -FIND(“[“,CELL(“filename”,A1))-1) Explanation How the formula works The cell function is used to get the full file name and path: CELL(“filename”,A1)…

How to get full workbook name and path in Excel

If you want to get the current workbook’s full path, name, and sheet with a formula, you can use the CELL function and a reference to any cell in the workbook. CELL will return the name in this format: path[workbook.xlsx]sheetname Note that you must save the worksheet in order to get the a result. Formula =CELL(“filename”,A1) Explanation A note about…

How to check cell that contains specific text in Excel

To check if a cell contains specific text, you can use the SEARCH function together with the ISNUMBER function. In the generic version, substring is the specific text you are looking for, and text represents text in the cell you are testing. Formula =ISNUMBER(SEARCH(substring,text)) Explanation  In the example shown, the formula in D5 is: =ISNUMBER(SEARCH(C5,B5)) This formula returns TRUE if the substring is found, and…

How to check cell that contains one of many with exclusions in Excel

To test a cell for one of many strings, while excluding others, you can use a formula based on the SEARCH, ISNUMBER, and SUMPRODUCT functions. Formula =(SUMPRODUCT(–ISNUMBER(SEARCH(include,A1)))>0) *(SUMPRODUCT(–ISNUMBER(SEARCH(exclude,A1)))=0) Note: this formula returns either 1 or zero, which are handled like TRUE and FALSE in formulas, conditional formatting, or data validation. Explanation In the example shown the formula in C5 is: =(SUMPRODUCT(–ISNUMBER(SEARCH(include,B5)))>0)…

Count Errors in Excel

IF function and ISERROR function are used to check for an error in Excel. This example shows you how to create an array formula that counts the number of errors in a range. 1. We use the IF function and the ISERROR function to check for an error in the record below: Explanation: the IF function returns 1, if an error is found. If not,…