+ Reply to Thread
Results 1 to 2 of 2

Rendering an existing formula to be conditional on dates

  1. #1
    Registered User
    Join Date
    10-19-2011
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    61

    Rendering an existing formula to be conditional on dates

    Greetings,

    I have a particular formula that I would like to change based on whether event occurs before or after 365 days.

    Currently, cell Z40 is correctly entered as =(365/(D40-C40)*(N40+T40+G40))/(E40*F40)

    I would like, however, to make it conditional, so that it is only valid if TODAY() - C40 <= 365.

    OTHERWISE, if TODAY() - 40 is > 365, THEN Z40 should equal =(365/(D40-C40)*(O40+U40+G40))/(E40*F40)

    Don't want to get this wrong. Any help is appreciated.

    Michael

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Rendering an existing formula to be conditional on dates

    Try

    =IF(TODAY()-C40<=365,(365/(D40-C40)*(N40+T40+G40))/(E40*F40),(365/(D40-C40)*(O40+U40+G40))/(E40*F40))


    or this shorter version

    =365/(D40-C40)*(G40+IF(TODAY()-C40<=365,N40+T40,O40+U40))/(E40*F40)
    Last edited by Ace_XL; 01-11-2020 at 02:16 PM.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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. Conditional Formatting for existing Formula
    By whitt3rx in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-09-2019, 12:51 AM
  2. [SOLVED] Between 2 Dates - Adding to my existing formula.
    By makaveeti in forum Excel General
    Replies: 12
    Last Post: 11-14-2018, 03:53 PM
  3. Replies: 3
    Last Post: 01-13-2016, 12:05 PM
  4. [SOLVED] Formula rendering FALSE results when it shouldn't
    By lsargent in forum Excel General
    Replies: 7
    Last Post: 06-25-2015, 01:10 PM
  5. Conditional Formatting??? Or addition to existing formula
    By Angel72 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2014, 04:08 PM
  6. Replies: 11
    Last Post: 05-04-2014, 08:28 PM
  7. Rendering Charts
    By ElTerrible35 in forum Excel General
    Replies: 0
    Last Post: 07-23-2010, 11:58 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