+ Reply to Thread
Results 1 to 6 of 6

Formula with multiple logical tests

  1. #1
    Registered User
    Join Date
    08-12-2013
    Location
    England
    MS-Off Ver
    Microsoft Office 365
    Posts
    29

    Formula with multiple logical tests

    I seem have too many logical tests for my IF formula. Is there away around this? I have attached a sample to show the columns and rows I am using.

    I need to find a formula for column D which covers the following:

    If A1 is blank, then D1= blank.
    If C1 is blank, then D1= blank.
    If C1 is NOT blank AND E1 is blank, then D1=TODAY()-C1
    If C1 is NOT blank and E1 is NOT blank, then D1= E1-C1
    Last edited by amy1; 08-21-2024 at 05:41 AM.

  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
    91,007

    Re: Formula with multiple logical tests

    Is this what you mean?

    =IF(OR(A2="",C2=""),"",IF(AND(C2<>"",E2=""),TODAY()-C2,IF(AND(C2<>"",E2<>""),E2-C2,"")))

    Is your forum profile up-to-date?
    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
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,656

    Re: Formula with multiple logical tests

    Another option

    Please Login or Register  to view this content.
    Quang PT

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: Formula with multiple logical tests

    As I see A column is not relevant...

    Maybe: =IFERROR(MIN(E2,TODAY())-1/(1/C2),"")

  5. #5
    Registered User
    Join Date
    08-12-2013
    Location
    England
    MS-Off Ver
    Microsoft Office 365
    Posts
    29

    Re: Formula with multiple logical tests

    Thank you for everybody that has replied to me, you make this look so easy!! So helpful, thank you

  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
    91,007

    Re: Formula with multiple logical tests

    Glad to have helped.

    Thanks for the rep.

+ 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. IF / THEN with multiple logical tests in columns
    By Jan_Kersten in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-06-2022, 05:50 AM
  2. IF AND & multiple logical tests
    By jdbock in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-09-2015, 10:09 AM
  3. [SOLVED] Multiple Logical Tests in an IF function
    By scrouse14 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 07-26-2014, 03:15 PM
  4. multiple criteria/logical tests required.
    By Imamu in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-28-2013, 08:57 AM
  5. [SOLVED] Multiple Logical Tests Required
    By KateMaz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-28-2013, 10:22 AM
  6. Multiple IF logical tests
    By plauterborn in forum Excel General
    Replies: 3
    Last Post: 02-14-2012, 04:39 PM
  7. Multiple text Logical tests
    By smanderson in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-21-2010, 04:47 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