+ Reply to Thread
Results 1 to 7 of 7

Logical Test Issue

  1. #1
    Registered User
    Join Date
    04-26-2024
    Location
    Frankfurt
    MS-Off Ver
    MS365 Version 2308
    Posts
    2

    Question Logical Test Issue

    I'm reaching out to ask for help regarding a logical test formula in column H of my attachment (starting from a pretty straightforward date subtraction it's returning blank instead of the expected threshold values). I guess the issue could be related to the date format - I've tried manipulating them even via helping columns but am still not able to solve the issue for all rows. Is there a fast way to solve this? Many thanks!
    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 (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: Logical Test Issue

    Administrative Note:

    Welcome to the forum.

    Is your forum profile showing the Excel PRODUCT that you need this to work for?

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The three most recent Excel products are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,372

    Re: Logical Test Issue

    Dates in F are text - try this:

    =IFERROR(IF(SUBSTITUTE(F2,".","/")-A2>210,"30+ Weeks","Below 30 Weeks Threshold"),"")

  4. #4
    Registered User
    Join Date
    04-26-2024
    Location
    Frankfurt
    MS-Off Ver
    MS365 Version 2308
    Posts
    2

    Re: Logical Test Issue

    Thanks a lot! It seems like it's now working fore some cells, but not all (I3, for example). Do you know why this might be and how I can proceed?
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,026

    Re: Logical Test Issue

    Try

    =IFERROR(IF(DATEVALUE(SUBSTITUTE(F2,".","/"))-A2>210,"30+ Weeks", "Below 30 Weeks Threshold"),"")

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

    Re: Logical Test Issue

    I'm not clear on your logic. Are you sure it shouldn't be this?

    =IF(A2-SUBSTITUTE(F2,".","/")>210,"30+ Weeks", "Below 30 Weeks Threshold")

  7. #7
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    2,026

    Re: Logical Test Issue

    Might be simpler if you did the . / substitution and date conversion in columns F and G

    =DATEVALUE(SUBSTITUTE(LEFT(D2,10),".","/"))


    Also, the valid from-to dates in columns D and E are identical.

+ 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. adding additional logical test to an existing test
    By mukuljain99 in forum Excel General
    Replies: 4
    Last Post: 11-02-2019, 03:29 PM
  2. Logical test false values skip to next row for next test
    By Schecter89 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-23-2018, 06:36 AM
  3. [SOLVED] Issue with logical test formulae
    By siddgarg90 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-05-2017, 03:50 AM
  4. [SOLVED] Help with a logical test
    By instantmash77 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-24-2016, 11:30 PM
  5. [SOLVED] Logical test across different sheets issue
    By syp34892 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-25-2015, 12:55 PM
  6. [SOLVED] logical test
    By LisaD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2006, 10:30 AM
  7. RE: logical test
    By Ron Coderre in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-07-2006, 03:05 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