+ Reply to Thread
Results 1 to 6 of 6

IF(AND(OR ..need help with formula

  1. #1
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    IF(AND(OR ..need help with formula

    This formula goes in cell F3
    =IF(AND(E3>=TODAY(),E3<=TODAY()+3),"Due","Overdue")

    in cell G3 if it says "Paid", I would like the cell F3 to be empty (nothing
    to say due or overdue).

    I tried ....
    =IF(AND(OR(E3>=TODAY(),E3<=TODAY()+3),"Due","Overdue"), F3="")
    returns #VALUE!

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: IF(AND(OR ..need help with formula

    hi there. you can use it like this:
    =IF(G3="Paid","",IF(AND(E3>=TODAY(),E3<=TODAY()+3),"Due","Overdue"))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: IF(AND(OR ..need help with formula

    Quote Originally Posted by benishiryo View Post
    hi there. you can use it like this:
    =IF(G3="Paid","",IF(AND(E3>=TODAY(),E3<=TODAY()+3),"Due","Overdue"))
    It works, but dates before today and today+3 days it returns "overdue"

  4. #4
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: IF(AND(OR ..need help with formula

    It works, but dates before today and after today+3 days it returns "overdue",
    I would like it to be empty/blank cell.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: IF(AND(OR ..need help with formula

    Just change "overdue" to ""
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Contributor mikehk's Avatar
    Join Date
    09-05-2017
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    483

    Re: IF(AND(OR ..need help with formula

    why is it CF only highlights 1 cell ? please see the image attached. thanks.

    formula used is
    =AND(F1>=TODAY(),F1<=TODAY()+2)


    pic1.PNG

+ 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: 8
    Last Post: 09-22-2017, 05:41 AM
  2. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  3. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  4. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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