+ Reply to Thread
Results 1 to 7 of 7

Formula return criteria if

  1. #1
    Forum Contributor
    Join Date
    08-20-2013
    Location
    LX
    MS-Off Ver
    Office 2019
    Posts
    164

    Question Formula return criteria if

    I have a sheet with an existing formula in column N.

    Please Login or Register  to view this content.
    What should be the formule if I want that it returns me in column N:

    as long as no date is entered in column M it compares date of today with date in column J an returns *IN PROCESS OK* if date is still before, and returns *IN PROCESS OVERDUE* if date is after today.

    Example :

    In column J, I have entered date 01/04/2015. No date is in column M. As long as we have not reached 02/04/2015 it returns in column N *IN PROCESS OK*. If we have reached and pass 02/04/2015 it returns *IN PROCESS OVERDUE*. When a date is now entered in column M it returns me *OK* or *NOK* as it do actually.

    Thanks for your help
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    08-20-2013
    Location
    LX
    MS-Off Ver
    Office 2019
    Posts
    164

    Re: Formula return criteria if

    Can please someone help me out with this?

  3. #3
    Forum Contributor
    Join Date
    06-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Formula return criteria if

    Try replacing the "IN PROCESS OK" with:
    IF(J6>(TODAY()-30),"IN PROCESS OK","IN PROCESS OVERDUE")


    Edited formula. Didn't catch the difference in date format. Revised formula is above.
    Last edited by soberguy; 03-24-2015 at 02:55 PM.

  4. #4
    Forum Contributor
    Join Date
    08-20-2013
    Location
    LX
    MS-Off Ver
    Office 2019
    Posts
    164

    Re: Formula return criteria if

    Seems not to work for me. Please see file for more info.

  5. #5
    Forum Contributor
    Join Date
    06-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Formula return criteria if

    Yeah, I tested it in your workbook.

    With this formula in N6:
    =IF(OR(C6="",J6=""),"",IF(AND(J6<>"",M6=""),IF(J6>(TODAY()-30),"IN PROCESS OK","IN PROCESS OVERDUE"),IF(M6<=J6,"YES","NO")))

    It returns "IN PROCESS OK". What's not working?

  6. #6
    Forum Contributor
    Join Date
    08-20-2013
    Location
    LX
    MS-Off Ver
    Office 2019
    Posts
    164

    Re: Formula return criteria if

    Sorry I missunderstood what you mean with replace.

    I works like it should be. Just made a little correction. Don't know why the difference of 30, but I think this was a erreur in my request

    =IF(OR(C6="",J6=""),"",IF(AND(J6<>"",M6=""),IF(J6>TODAY(),"IN PROCESS OK","IN PROCESS OVERDUE"),IF(M6<=J6,"YES","NO")))

    Big thanks to you

  7. #7
    Forum Contributor
    Join Date
    06-21-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    191

    Re: Formula return criteria if

    The 30 was an assumption on my part, admittedly. I read the date format wrong, and that was one thing that needed to be adjusted. Good catch on that!

+ 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. Help with a formula to look up/return based on 2 criteria
    By Choppo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2014, 09:48 PM
  2. [SOLVED] Formula to return specified value based on criteria
    By adriam25 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-23-2014, 12:39 AM
  3. Formula to return specified value based on criteria
    By adriam25 in forum Excel General
    Replies: 8
    Last Post: 09-07-2014, 06:21 AM
  4. vlookup formula with two criteria that must be met to return a value
    By MBROOKS in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-12-2012, 07:04 PM
  5. formula to return date specific criteria
    By n1kk1 in forum Excel General
    Replies: 6
    Last Post: 01-17-2012, 03: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