+ Reply to Thread
Results 1 to 6 of 6

IF function initiating another formula if true

  1. #1
    Registered User
    Join Date
    11-22-2010
    Location
    Salt Lake City, UT
    MS-Off Ver
    Professional Plus 2013
    Posts
    54

    IF function initiating another formula if true

    Can you trigger a separate formula within an IF formula? I'd like to initiate =TODAY() in a column once data has been entered into another column. I've attached my workbook and the formula I tried, but failed. I want to be able to put a date into column E, and have that date trigger =TODAY() in column F.
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,658

    Re: IF function initiating another formula if true

    Firstly, delete the conditional formatting rule that you have set up on that column, then paste this into F2 and drag copy down:

    =IF(E2=0,"",TODAY())
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: IF function initiating another formula if true

    you were almost there, any time you wrap anything (numbers/cell ref) inside "" excel converts that to text

    so =IF(E2="","=TODAY()")
    should become...
    =IF(E2="",TODAY())

    However, generally IF statements consist of 3 arguments, you only have the 1st 2...
    =IF(what-to-test, Do-this-if-true, do-that-if-false)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    11-22-2010
    Location
    Salt Lake City, UT
    MS-Off Ver
    Professional Plus 2013
    Posts
    54

    Re: IF function initiating another formula if true

    Thanks for the "" tip. I'm self-taught and trying to figure things out as I go.
    Last edited by AliGW; 05-25-2018 at 12:26 PM. Reason: Unnecessary quotation removed.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: IF function initiating another formula if true

    As am I, happy to help

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,658

    Re: IF function initiating another formula if true

    As am I.

+ 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. Initiating Subrotines in VBA
    By rjgoldstein in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-14-2015, 12:55 PM
  2. [SOLVED] Function to change the color of the font if the formula is true
    By Root River Hardwoods in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-16-2015, 12:03 AM
  3. IF formula which prints YES if function is true.
    By Verbamore in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-24-2014, 03:17 PM
  4. If array Formula (different True and False within a If function.
    By mortphil in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-14-2013, 10:05 AM
  5. Initiating an AddIn through VBA
    By Kaziglu Bey in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-26-2010, 01:21 PM
  6. [SOLVED] Function to return True/False if all are validated as True by ISNU
    By Tetsuya Oguma in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-15-2006, 06:30 AM
  7. [SOLVED] initiating a macro
    By johnT in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-02-2005, 11:06 AM

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