+ Reply to Thread
Results 1 to 4 of 4

Subtracting dates

  1. #1
    Registered User
    Join Date
    12-07-2010
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2003
    Posts
    21

    Subtracting dates

    Hello all,

    I am trying to subtract dates from another date - but the formula I have does not work - please help.

    =IF((((A3-$B$1)=36)*OR((A3-$B$1)=37)*OR((A3-$B$1)=38)*OR((A3-$B$1)=39)),"Good", "")

    Cell D3:D9 is my column with the desired result

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Contributor SCLai's Avatar
    Join Date
    08-18-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: Subtracting dates

    Hi,

    Please try using this:

    =IF(AND(A3-B$1>35,A3-B$1<40),"Good","")

    *Please note that for OR formula, it is OR(condition_1,condition_2,...)

    Hope this helps!

    SC
    Last edited by SCLai; 07-28-2012 at 01:17 AM.
    Do give a * (bottom left) if the post helped!

  3. #3
    Registered User
    Join Date
    12-07-2010
    Location
    Atlanta, Georgia
    MS-Off Ver
    Excel 2003
    Posts
    21

    Re: Subtracting dates

    That worked well and now I can correct my other formulas.....Thanks SC.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Subtracting dates

    @ suniljayanna

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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