+ Reply to Thread
Results 1 to 7 of 7

If Statement Between 2 Dates

  1. #1
    Registered User
    Join Date
    01-29-2016
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    12

    If Statement Between 2 Dates

    As per usual it's easy to google something simple as a if statement between 2 dates, but applying them to your specific situation is much harder. lol
    Please Login or Register  to view this content.
    Formula Reads If Column D2:D Is greater then (DATE) 3/6/2016 Then show Columns B2:B

    Now my problem is i need to figure out how to choose between 2 Dates, so it would read
    If Column D2:D is Between 3/6/2016 - 3/9/2016 Then Show Columns B2:B.
    any help would be appreciated, i've tried tons of variations, never quite getting the formula right.

    Also
    Having the same problem with SUMIFS
    Please Login or Register  to view this content.
    Formula reads Column I is a # Value, Column H is a Name, A14 is the name to Match with, Column G is Date, and obviously the date tells it if Column G Date is More then 3/6/2016 then display Column I.
    Again i Need it between dates such as 3/6/2016 - 3/9/2016 and have it return values if Column G is between those dates.
    ------
    If The First Option is not possible the 2nd will get me the same answer, just a little more difficult to do.
    Thanks

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: If Statement Between 2 Dates

    For the IF version you could use AND to create two conditions to be met. Syntax below:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Similarly for the SUMIFS version you just tag on another condition and criteria at the end, as below:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Does that help you at all?

    BSB

  3. #3
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,908

    Re: If Statement Between 2 Dates

    Try: =SUMIFS(I2:I, H2:H, A14, G2:G,">=3/6/2016", G2:G,"<=3/9/2016")

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: If Statement Between 2 Dates

    Use cells to hold the date criteria...

    A1 = 3/6/2016
    B1 = 3/9/2016

    Then the formula would be:

    =SUMIFS(I:I,H:H,A14,G:G,">="&A1,G:G,"<="&B1)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    01-29-2016
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    12

    Re: If Statement Between 2 Dates

    Quote Originally Posted by BadlySpelledBuoy View Post
    For the IF version you could use AND to create two conditions to be met. Syntax below:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BSB
    I Tried
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and it doesn't generate anything unfortunately, thank you though

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: If Statement Between 2 Dates

    Could you post a sample workbook with your attempted formulas included?
    Far easier to diagnose an issue and/or provide a solution that way.

    BSB

  7. #7
    Registered User
    Join Date
    01-29-2016
    Location
    Canada
    MS-Off Ver
    2007
    Posts
    12

    Re: If Statement Between 2 Dates

    https://docs.google.com/spreadsheets...gid=1496651388
    Here you go
    so in Column G,H,I it has a array formula that display info for the other tab, now right now i have it displaying information On Or After X Date
    But i need it to do, Between This Date and This Date then display

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. If Statement and dates
    By Cageyj0nny in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-11-2014, 08:03 AM
  2. If statement with Dates
    By ktkreeger in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-02-2013, 04:26 PM
  3. If statement using Dates?
    By Brampy in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 07-11-2012, 05:04 PM
  4. Excel 2007 : Using Dates in an IF Statement
    By The_Snook in forum Excel General
    Replies: 3
    Last Post: 05-11-2012, 05:55 AM
  5. Help with if statement with dates
    By jmoore1197 in forum Excel General
    Replies: 4
    Last Post: 10-06-2009, 03:10 PM
  6. IF statement and dates
    By jacko311 in forum Excel General
    Replies: 2
    Last Post: 05-15-2009, 10:20 AM
  7. [SOLVED] IF statement with two dates
    By jbormann in forum Excel General
    Replies: 2
    Last Post: 07-18-2006, 12:32 PM

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