+ Reply to Thread
Results 1 to 4 of 4

Code Not Identifying Yesterday As Delinquent

  1. #1
    Forum Contributor
    Join Date
    01-04-2011
    Location
    Phoenix, Arizona
    MS-Off Ver
    Excel 2003
    Posts
    129

    Code Not Identifying Yesterday As Delinquent

    Hello All,

    The purpose of the below code is to identify if a shipment is delinquent or not. The intent of the code is to look at specific date and if that date is in the past then the shipment is delinquent. If that date is in the future it says whether it is next month or the month after, etc.

    However, I have run into a snag. It seems to only be looking at the month. I need it to look at the day so that I know a date of yesterday is delinquent if it hasn't shipped.


    Please Login or Register  to view this content.
    Any help with this code is greatly appreciated.

    The original posting that helped me with this can be found here

    Thank you.

    Kelly
    Last edited by jkelly228; 03-29-2011 at 03:08 PM.

  2. #2
    Forum Contributor
    Join Date
    01-04-2011
    Location
    Phoenix, Arizona
    MS-Off Ver
    Excel 2003
    Posts
    129

    Re: Code Not Identifying Yesterday As Delinquent

    Hello All,

    Bumping this back up. I need for the code to not only look at current month, but current date to see if it has past.

    Any help is greatly appreciated. Thanks

    Kelly

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Code Not Identifying Yesterday As Delinquent

    The original suggestion satisfied the original criteria I believe.

    It seems you're now saying that the revised criteria is such that :
    • "Past Due": any Date Prior to Today
    • "Current Month": any Date between Today and end of Current Month
    • Remaining output as before

    If the above is indeed the case I would say that given the variance in units of comparison it would be simplest to add a pre-emptive IF to handle prior dates

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    01-04-2011
    Location
    Phoenix, Arizona
    MS-Off Ver
    Excel 2003
    Posts
    129

    Re: Code Not Identifying Yesterday As Delinquent

    Hi DonkeyOte,

    You were correct in your understanding. I am testing now but it looks like your code worked very well. Thank you.

    Kelly

+ 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