+ Reply to Thread
Results 1 to 12 of 12

IF Functions using 4 arguments involving dates needing 4 results

  1. #1
    Registered User
    Join Date
    04-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    IF Functions using 4 arguments involving dates needing 4 results

    I'm creating a tracking spreadsheet at work.

    Column A = Turn In Date
    Column B = Status
    Column M = Date Shipped

    What I need is a formula in B2 that says
    If date in A2 is 45 days past today's date, then "Over 45 Days"
    If there's any date in M2, then "Closed"
    If neither are true, then "Open"
    If there is no date in A2 or M2, then leave blank.

    I tried = IF (A2 > = Today()+45, "Over 45 Days", If ( M2 < Today(), "Closed", "Open") )

    but that obviously didn't work.

    After I get the formula situated, I'm going to add some conditional formatting to highlight the rows that are open yellow, closed green, and over 45 days light red.

    Any help would be appreciated!

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: IF Functions using 4 arguments involving dates needing 4 results

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: IF Functions using 4 arguments involving dates needing 4 results

    Something like:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Havent tested you may need to make adjustments

  4. #4
    Registered User
    Join Date
    04-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    Re: IF Functions using 4 arguments involving dates needing 4 results

    Mehmetcik:
    Circular reference warning, everything yielded 0

    But thank you!

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: IF Functions using 4 arguments involving dates needing 4 results

    Sorry try this:-

    Formula: copy to clipboard
    Please Login or Register  to view this content.





    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  6. #6
    Registered User
    Join Date
    04-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    Re: IF Functions using 4 arguments involving dates needing 4 results

    Quote Originally Posted by Zer0Cool View Post
    Something like:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Havent tested you may need to make adjustments
    Too Many Functions error. Thank you though

  7. #7
    Registered User
    Join Date
    04-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    Re: IF Functions using 4 arguments involving dates needing 4 results

    Please see attached.
    Attached Files Attached Files

  8. #8
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: IF Functions using 4 arguments involving dates needing 4 results

    In B2, try this:

    =IF([@[TIN DATE]]="","",IF([@[SHP DATE]]<>"","Closed",IF(TODAY()-[@[TIN DATE]]>45,"Over 45 Days","Open")))

    or this (without table references):

    =IF(A2="","",IF(M2<>"","Closed",IF(TODAY()-A2>45,"Over 45 Days","Open")))

  9. #9
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: IF Functions using 4 arguments involving dates needing 4 results

    My formula seems to work
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    04-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    Re: IF Functions using 4 arguments involving dates needing 4 results

    Quote Originally Posted by mehmetcik View Post
    My formula seems to work
    Almost. Cell b2 should say Over 45 Days

  11. #11
    Registered User
    Join Date
    04-01-2017
    Location
    California
    MS-Off Ver
    2016
    Posts
    10

    Re: IF Functions using 4 arguments involving dates needing 4 results

    Quote Originally Posted by 63falcondude View Post
    In B2, try this:

    =IF([@[TIN DATE]]="","",IF([@[SHP DATE]]<>"","Closed",IF(TODAY()-[@[TIN DATE]=]=>45,"Over 45 Days","Open")))

    or this (without table references):

    =IF(A2="","",IF(M2<>"","Closed",IF(TODAY()-A2>45,"Over 45 Days","Open")))
    BOOM! You got it!

    Thanks everyone for all your help!!

  12. #12
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: IF Functions using 4 arguments involving dates needing 4 results

    You're welcome, glad we could help.

+ 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. Replies: 3
    Last Post: 04-15-2014, 03:59 PM
  2. [SOLVED] 3 way look up involving dates.
    By Raanan in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 09-17-2013, 07:02 AM
  3. Football Fixture Results (How to find the last 5 fixtures involving a team)
    By Jose9Reyes in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-04-2013, 08:00 PM
  4. [SOLVED] Filtering functions involving Subtotal and Countblank
    By Chesapeake in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-18-2013, 03:43 PM
  5. Needing help with functions in Excel 2007
    By rt117 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-18-2010, 07:37 PM
  6. Need help with formula involving dates
    By dataslinger in forum Excel General
    Replies: 2
    Last Post: 03-16-2010, 11:57 AM
  7. If Formulas involving dates
    By patelh9 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2009, 02:16 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