+ Reply to Thread
Results 1 to 3 of 3

Determine if a cell contains a formula (using a formula in another cell)

  1. #1
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Determine if a cell contains a formula (using a formula in another cell)

    Hi,

    I'm hoping it is possible to get a solution to this but I have a feeling I may have hit a dead end.

    Basically I have a cell, lets say A1, which has the TODAY() function in. Once the wookbook is saved I set this cell to the date (ie. typed in, Ctrl+; ) so if I open the file at a later date it shows the correct data etc etc.

    In cell A2 I can type =IF(ISFORMULA(A1),"SET DATE","") to remind me to 'hardcode' the date. This approach isn't backwards compatible with 2010 as ISFORMULA is a new function.

    Is there another way (non VB due to security restrictions at work - the only way this seems possible I think) to have a cell show text when another cell contains a formula?

    Thanks
    Harribone
    Last edited by Harribone; 09-17-2014 at 12:00 PM. Reason: Spelling
    Say thanks, click *

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Determine if a cell contains a formula (using a formula in another cell)

    Well, if TODAY() formula is in the cell, it will display today's date.

    =IF(A1=TODAY(),"SET DATE","")
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: Determine if a cell contains a formula (using a formula in another cell)

    I did think of this option but on the day when me and my work colleagues are using the file for the first time it will say 'Set Date' if the formula =TODAY() is in the cell or if the date as a text entry is in the cell

    The purpose of this feature would be to notify the user that the wookbook hasn't had the date 'hardcoded'. It's only a minor thing tbh and just curious if it would be possible.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Formula to Determine if Date in Cell 2 is Greater Than Cell 1
    By MLCall in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-18-2014, 05:30 PM
  2. [SOLVED] Determine if a Cell has a Formula or Value
    By PosseJohn in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-10-2012, 07:40 AM
  3. Determine if Cell Has Formula
    By Dr.SUN in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-08-2010, 06:25 PM
  4. Replies: 2
    Last Post: 06-08-2010, 03:06 AM
  5. How do you determine what formula a cell is used in
    By jgkocis in forum Excel General
    Replies: 3
    Last Post: 11-27-2007, 10:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1