Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default ISFORMULA(Cell Referance)

I would like to be able to test if a cell has a formula - or not. Prefer to
return a logical.
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default ISFORMULA(Cell Referance)

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default ISFORMULA(Cell Referance)

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default ISFORMULA(Cell Referance)

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default ISFORMULA(Cell Referance)

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IsFormula Gerritvanzyl Excel Discussion (Misc queries) 5 June 14th 06 06:56 PM
Change cell referance based on value Pat Excel Worksheet Functions 2 May 3rd 05 10:05 PM
isformula? dave Excel Worksheet Functions 10 March 27th 05 08:12 PM
Formula that referance a Cell MESTRELLA29 Excel Discussion (Misc queries) 1 February 10th 05 11:18 PM
Cell referance for formula ParTeeGolfer Excel Worksheet Functions 2 January 1st 05 01:01 AM


All times are GMT +1. The time now is 02:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"