Excel IsFormula Function Alternative Formula

MarkReddell

Board Regular
Joined
Sep 1, 2011
Messages
210
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
Hello Mr. Excelers!!! I'm using Excel 2016, however @ work they're using Excel 2007. How do I write a formula alternative to the IsFormula Function??? Thanks 4 any help concerning my issue!!! God's Blessings!!! :confused::confused::confused:
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi Mark,

The ISFORMULA function was released with Excel 2013. For previous versions you'll need a User Defined Function (UDF) like the following to do the same:

Code:
Option Explicit
Function HasFormula(reference As Range) As Boolean

    HasFormula = reference.HasFormula

End Function

So once installed you would use the above UDF in the same way as the ISFORMULA function i.e.

=HasFormula(B2)

will return TRUE if there's a formula in cell B2 or else it will return FALSE.

Regards,

Robert
 
Upvote 0
Thanx Robert for your reply!!! Question: Where do I Paste this code??? In the W/S or the W/B??? Robert Thanks again!!! It Worx!!! :):):)
 
Last edited:
Upvote 0
It would go in the workbook (just like a standard macro) where you want to want use the UDF.
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,876
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top