+ Reply to Thread
Results 1 to 2 of 2

Getting system date

  1. #1
    Registered User
    Join Date
    10-14-2005
    Posts
    12

    Getting system date

    Hello,

    I have this spreadsheet with columns, say A,B , Date and Grade. On the last column, I have a date entered.

    I do some desicion making, and enter my decision on the grade column based on a comparisson, of all the columns and the difference bettween the system date, and the date column eg

    If A>2 and B>5 and date >3 Then
    grade="Good"
    Else If A>2 and B>5 and Date<3 Then
    Grade="Bad"

    Else grade ="Unknown"

    The " date <3" implies that the system date is say 26th Sept 2005 and the entry on the date column is say14th Aug 2004, then date <3 since the two dates are less than 3 yrs apart.

    How do I code that logic?

    Thanks

  2. #2
    Registered User
    Join Date
    02-11-2005
    Posts
    85
    =IF(AND(A1>2,B1>5,((TODAY()-C1)/365)>3),"GOOD",IF(AND(A1>2,B1>5,((TODAY()-C1)/365)<3),"BAD","Unknown"))

    This should work for you. Aren't formulas fun.

+ 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