+ Reply to Thread
Results 1 to 7 of 7

Date comparison

  1. #1
    Registered User
    Join Date
    02-21-2007
    Location
    UK
    Posts
    19

    Date comparison

    Hi all,

    I'm trying to make Excel compare two dates for me, and then check an additional cell to see if anything has happened afterwards - for example, I have deadlines, but then would like Excel to check if there has also been any feedback given if it's after the date of the deadline.

    So, I need the formula to see if todays date is more recent than the deadline, and if so, it then needs to check if there has been feedback - and if not, report a +1 for that particular line.

    Does that make sense?

    Would this be something I could use Sumproduct for?

    Thanks

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Assuming the deadline is in A1 and the comment cell is A2:

    =IF(AND(TODAY()>A1,A2<>""),"+1","")

  3. #3
    Registered User
    Join Date
    02-21-2007
    Location
    UK
    Posts
    19
    Thanks for that.

    It seems to work, but always reports '+1' as the answer? He's my formula:

    =IF(AND(TODAY()>'ALL Requests'!AB:AB, 'ALL Requests'!AC:AC<>""),"+1","")
    Last edited by Shodan; 02-22-2007 at 10:19 AM.

  4. #4
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    The formula you wrote will not address each row separately. You need to have a formula in each row to determine each result:

    =IF(AND(TODAY()>'ALL Requests'!AB1, 'ALL Requests'!AC1<>""),"+1","")

    Then copy the formula down.

  5. #5
    Registered User
    Join Date
    02-21-2007
    Location
    UK
    Posts
    19
    Sorry for the delay, I've been busy with other things....

    I wonder if there's a way to use Sumproduct for this? So I can just have one cell that totals everything up? I've not managed to do it myself but thought that something like:

    =Sumproduct((ALL Requests'!AB:AB>TODAY())*('ALL Requests'!AC:AC<>""))

    Would work - no luck so far though!

  6. #6
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    I don't think Sumproduct likes entire rows referenced. Try using actual ranges:

    =SUMPRODUCT((ALL Requests'!AB1:AB1000<TODAY())*('ALL Requests'!AC1:AC1000<>""))

  7. #7
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    I don't think Sumproduct likes entire rows referenced. Try using actual ranges:

    =SUMPRODUCT((ALL Requests'!AB1:AB1000<TODAY())*('ALL Requests'!AC1:AC1000<>""))

+ 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