Teach Microsoft Office
Online Video Tutorials for Microsoft Office
Microsoft Office Excel Macro

Determine if a Cell Contains a Function in Excel - Great for Conditional Formatting and Validation - UDF

Bookmark and Share
Determine if a cell in Excel contains a formula or function with this UDF (user defined function). This function returns "TRUE" if a cell contains a formula or function and "FALSE" if a cell does not contain a formula or function. This UDF works great in logical statements such as IF() statements, AND() statements, OR() statements, etc.

The most useful integration of this function is in conditional formatting. You can apply conditional formatting to the entire worksheet and use this function as the condition. Then, you will be able to view all cells that contain formulas or functions. And, if any cells change or more formulas or functions are added to the worksheet, you will instantly be able to see that these new cells contain formulas or functions and all without having to use a 'traditional' macro.
Macro Installation Location: Module
Keywords: sort data sorting excel one column next subset adjacent data set table advanced
UDF to Determine if a Cell Contains a Function in Excel

Function SHOWFORMULAS(rCell As Range)

SHOWFORMULAS = rCell.HasFormula

End Function

 
Official PayPal Seal SSL Join TeachMsOffice.com on Facebook Follow TeachMsOffice.com on Twitter


Microsoft Office Tutorials | Office Tutorials - Excel Word PowerPoint | HD Tutorial Video Player Overview | About TeachMsOffice.com

TeachMsOffice.com provides HD Online Video Tutorials and Training for Microsoft Office programs such as Excel, Word, and PowerPoint. We use a specialized video player interface to teach a vast list of Microsoft Office Tutorials and we add new tutorials on a weekly or monthly basis.