+ Reply to Thread
Results 1 to 2 of 2

Comparing dates, but some date fields are blank.

  1. #1
    Registered User
    Join Date
    02-24-2007
    Posts
    18

    Comparing dates, but some date fields are blank.

    I have the following table with a header row and date entries. Students fill in a date when they are done with an activity and get some credit for completing each activity.


    Activity1 Activity2 Activity3 Activity4
    1/1/07 2/1/07 3/1/07 4/1/07
    1/5/07 3/4/07


    I want to compare the dates against todays date and determine a percent complete value for another cell in the worksheet. Here is the formula in that cell.

    cell a5 contains: if(today>d1,100%,if(today>c1,75%,if(today>b1,50%,if(today>a1,25%,0%)
    result is 50% if todays date is 2/25/07

    cell a6 contains: if(today>d2,100%,if(today>c2,75%,if(today>b2,50%,if(today>a2,25%,0%)
    resulut is 100% if todays date is 2/25/07 (it really should be 25% because the student only completed activity1 so far.


    The problem is that this formula works fine for line 1 but not for line2 because of the blanks in some of the date fields. How can I solve this without doing further nesting of Ifs? My real problem is similar but I am nearly at my conditional nesting limit of 7 deep.
    Last edited by dgarris; 02-24-2007 at 10:04 PM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    dgarris, how about this formula:

    Please Login or Register  to view this content.
    See my example sheet. I put the formula in cell E2 and copied it down.
    Attached Files Attached Files

+ 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