+ Reply to Thread
Results 1 to 8 of 8

Overdue vs Today Date based on Criteria Meet

  1. #1
    Registered User
    Join Date
    04-13-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    74

    Overdue vs Today Date based on Criteria Meet

    Dear all,

    I am using the following formula to check the overdue date vs Today date.

    Can anyone share your advice on how to shorten it.

    =IF(OR(ISNUMBER(SEARCH("04",X10)),ISNUMBER(SEARCH("05",X10)),ISNUMBER(SEARCH("13",X10)),ISNUMBER(SEARCH("11",X10)),ISNUMBER(SEARCH("12",X10))),"",TODAY()-F10-SUMPRODUCT((Holiday>=F10)*(Holiday<=TODAY())))

    Thank

    Pjlau

  2. #2
    Registered User
    Join Date
    04-13-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: Overdue vs Today Date based on Criteria Meet

    Can anyone help on that?

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Overdue vs Today Date based on Criteria Meet

    It will be clearer if you upload sample workbook and explain in more detail the specific requirements.

    However, if the goal is to simply compare the overdue date to the current date, then will work for you?

    =IF(TODAY()>X10,"overdue","")

    Or take a look at using the DATEDIF function
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Registered User
    Join Date
    04-13-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: Overdue vs Today Date based on Criteria Meet

    Thx. I have attached a sample workbook for ease of reference.

    Column C is to calculate the Overdue date.
    When input the status code e.g. 11,12,13, 04,05 in column X, the overdue date will be blank.
    Attached Files Attached Files

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Overdue vs Today Date based on Criteria Meet

    Perhaps make a small table with your statuscodes ( call it status_code) and enter =IF(countif(status_code,X10),"",(?????))

    Not sure about the last part Are you including weekends or not in your count?

  6. #6
    Registered User
    Join Date
    04-13-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: Overdue vs Today Date based on Criteria Meet

    thx. Actually, I would like to exclude the weekend i.e. Sat and Sun and a Holdiay table but I don't know how to define it. Can u help on that?

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,447

    Re: Overdue vs Today Date based on Criteria Meet

    In that case =IF(countif(status_code,X10),"",NETWORKDAYS(F10,today(),Holiday))

  8. #8
    Registered User
    Join Date
    04-13-2012
    Location
    Hong Kong
    MS-Off Ver
    Excel 2003
    Posts
    74

    Re: Overdue vs Today Date based on Criteria Meet

    Great. Thx for your help.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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