Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I would like to be able to test if a cell has a formula - or not. Prefer to
return a logical. Thanks |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Open VB editor, insert a module into 'ThisWorkbook' and paste the code below in. Call from a worksheet cell with =IsFormula(A1) Function IsFormula(rng As Range) As Boolean If rng.HasFormula Then IsFormula = True End If End Function "lessburgfred" wrote: I would like to be able to test if a cell has a formula - or not. Prefer to return a logical. Thanks |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
create a define name call HasFormula
Refers to: =GET.CELL(48,INDIRECT("RC[-1]",FALSE)) Assuming your data in Column A In column B type: HasFormula If the cell has A formula it returns TRUE, else FALSE "lessburgfred" wrote: I would like to be able to test if a cell has a formula - or not. Prefer to return a logical. Thanks |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
See this:
http://groups.google.com/group/micro...cf859ecd?tvc=2 -- Biff Microsoft Excel MVP "lessburgfred" wrote in message ... I would like to be able to test if a cell has a formula - or not. Prefer to return a logical. Thanks |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
To take TM's idea one step further...
http://spreadsheetpage.com/index.php...al_formatting/ HTH, Ryan-- -- Ryan--- If this information was helpful, please indicate this by clicking ''Yes''. "Teethless mama" wrote: create a define name call HasFormula Refers to: =GET.CELL(48,INDIRECT("RC[-1]",FALSE)) Assuming your data in Column A In column B type: HasFormula If the cell has A formula it returns TRUE, else FALSE "lessburgfred" wrote: I would like to be able to test if a cell has a formula - or not. Prefer to return a logical. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IsFormula | Excel Discussion (Misc queries) | |||
Change cell referance based on value | Excel Worksheet Functions | |||
isformula? | Excel Worksheet Functions | |||
Formula that referance a Cell | Excel Discussion (Misc queries) | |||
Cell referance for formula | Excel Worksheet Functions |