+ Reply to Thread
Results 1 to 3 of 3

Between Dates

  1. #1
    Registered User
    Join Date
    04-26-2005
    Posts
    43

    Between Dates

    cell b2=02/11/2006
    cell c2=100
    cell d2=200

    I want my result to be if b2 is between a certain date range, then add c2 and d2, else 0. How do I perform the date range part of the formula?

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996
    With:
    Start Date in G1
    End Date in H1

    E2: =(B2>=$G$1)*(B2<=$H$1)*SUM(C2:D2)

    Does that help?

    Regards,
    Ron

  3. #3
    ChelseaWarren
    Guest

    RE: Between Dates

    Try this formuila:

    =IF(AND(B2<=DATE(2006,3,1),B2>=DATE(2006,2,1)),C2+D2,0)

    this will check whether your date is between the range 2/1/06 and 3/1/06



    "exsam21" wrote:

    >
    > cell b2=02/11/2006
    > cell c2=100
    > cell d2=200
    >
    > I want my result to be if b2 is between a certain date range, then add
    > c2 and d2, else 0. How do I perform the date range part of the
    > formula?
    >
    >
    > --
    > exsam21
    > ------------------------------------------------------------------------
    > exsam21's Profile: http://www.excelforum.com/member.php...o&userid=22666
    > View this thread: http://www.excelforum.com/showthread...hreadid=521172
    >
    >


+ 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