Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
nc nc is offline
external usenet poster
 
Posts: 119
Default Function to detemine whether function or value in cell

Is there a function in Excel 2003 which can return info. on whether a cell
contains a function or a value?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 527
Default Function to detemine whether function or value in cell



"nc" wrote:

Is there a function in Excel 2003 which can return info. on whether a cell
contains a function or a value?


You could use this UDF

Function isFormula(x) As String
If x.HasFormula Then
isFormula = "Has Formula"
Else
isFormula = "Has Value"
End If
End Function

Copy this into a VB Module and use as normal function. If you want to use
this in all your workbooks copy it into a module in a new blank book and save
it as Personal.

Regards
Peter

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Function to detemine whether function or value in cell

whey not just return true or false for a function?

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Billy Liddel" wrote in message
...


"nc" wrote:

Is there a function in Excel 2003 which can return info. on whether a

cell
contains a function or a value?


You could use this UDF

Function isFormula(x) As String
If x.HasFormula Then
isFormula = "Has Formula"
Else
isFormula = "Has Value"
End If
End Function

Copy this into a VB Module and use as normal function. If you want to use
this in all your workbooks copy it into a module in a new blank book and

save
it as Personal.

Regards
Peter



  #4   Report Post  
Posted to microsoft.public.excel.misc
nc nc is offline
external usenet poster
 
Posts: 119
Default Function to detemine whether function or value in cell

What is the function?

"Bob Phillips" wrote:

whey not just return true or false for a function?

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Billy Liddel" wrote in message
...


"nc" wrote:

Is there a function in Excel 2003 which can return info. on whether a

cell
contains a function or a value?


You could use this UDF

Function isFormula(x) As String
If x.HasFormula Then
isFormula = "Has Formula"
Else
isFormula = "Has Value"
End If
End Function

Copy this into a VB Module and use as normal function. If you want to use
this in all your workbooks copy it into a module in a new blank book and

save
it as Personal.

Regards
Peter




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 527
Default Function to detemine whether function or value in cell

Bob means

Function isformula(x) As String
If x.HasFormula Then
isformula = True
Else
isformula = False
End If
End Function

Thanks Bob



"nc" wrote:

What is the function?

"Bob Phillips" wrote:

whey not just return true or false for a function?

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Billy Liddel" wrote in message
...


"nc" wrote:

Is there a function in Excel 2003 which can return info. on whether a

cell
contains a function or a value?

You could use this UDF

Function isFormula(x) As String
If x.HasFormula Then
isFormula = "Has Formula"
Else
isFormula = "Has Value"
End If
End Function

Copy this into a VB Module and use as normal function. If you want to use
this in all your workbooks copy it into a module in a new blank book and

save
it as Personal.

Regards
Peter






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Function to detemine whether function or value in cell

Or even:

Function isformula(x as range) As Boolean
isformula = x.cells(1).HasFormula
End Function

Billy Liddel wrote:

Bob means

Function isformula(x) As String
If x.HasFormula Then
isformula = True
Else
isformula = False
End If
End Function

Thanks Bob

"nc" wrote:

What is the function?

"Bob Phillips" wrote:

whey not just return true or false for a function?

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Billy Liddel" wrote in message
...


"nc" wrote:

Is there a function in Excel 2003 which can return info. on whether a
cell
contains a function or a value?

You could use this UDF

Function isFormula(x) As String
If x.HasFormula Then
isFormula = "Has Formula"
Else
isFormula = "Has Value"
End If
End Function

Copy this into a VB Module and use as normal function. If you want to use
this in all your workbooks copy it into a module in a new blank book and
save
it as Personal.

Regards
Peter





--

Dave Peterson
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
CELL Function: cell reference by formula Alex C Excel Worksheet Functions 1 June 19th 06 03:30 PM
numerical integration integreat Excel Discussion (Misc queries) 4 May 12th 06 02:40 AM
Function that Returns address of that cell? RayWolfDog Excel Worksheet Functions 2 February 15th 06 04:54 PM
Reading Cell Function??? roy.okinawa Excel Worksheet Functions 2 December 1st 05 11:29 PM
Possible Lookup Table Karen Excel Worksheet Functions 5 June 8th 05 09:43 PM


All times are GMT +1. The time now is 06:48 AM.

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

About Us

"It's about Microsoft Excel"