ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Info function which identfies a formula (https://www.excelbanter.com/excel-worksheet-functions/207540-info-function-identfies-formula.html)

ArthurJ

Info function which identfies a formula
 
I have long columns consisting of numbers, formulas, and blanks. I need an
info type function that returns true for a cell containing a formula. Does
that exist, or is there a way to do this?

Thanks,
Art

Max

Info function which identfies a formula
 
Press F5 Special Check Formulas OK
will select all cells with formulas in the sheet

You could then format to taste at one go, etc
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:19,500 Files:362 Subscribers:62
xdemechanik
---
"ArthurJ" wrote:
I have long columns consisting of numbers, formulas, and blanks. I need an
info type function that returns true for a cell containing a formula. Does
that exist, or is there a way to do this?


Gary''s Student

Info function which identfies a formula
 
Hi Art:

Here is a User Defined Function that you can try:

Function isformula(r As Range) As Boolean
isformula = r.HasFormula
End Function


UDFs are very easy to install and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the UDF will be saved with it.

To use the UDF from the normal Excel window, just enter it like a normal
Excel Function

To remove the UDF:

1. bring up the VBE window as above
2. clear the code out
3. close the VBE window

To learn more about UDFs, see:

http://www.cpearson.com/excel/Writin...ionsInVBA.aspx

--
Gary''s Student - gsnu200809


"ArthurJ" wrote:

I have long columns consisting of numbers, formulas, and blanks. I need an
info type function that returns true for a cell containing a formula. Does
that exist, or is there a way to do this?

Thanks,
Art



All times are GMT +1. The time now is 11:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com