+ Reply to Thread
Results 1 to 4 of 4

Return info based on Date Range

  1. #1
    Registered User
    Join Date
    03-16-2006
    Posts
    15

    Exclamation Return info based on Date Range

    I need to have a date returned based on a date range.

    Basically IF Cell A1 is between 1/1/06 and 1/31/06 then place the date of A1 into cell B6.

    But I don't understand how to input a date range into Excel.

    Heeeeeeeeelp!

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Type the date 1/1/2006 and 1/31/2006 in 2 cells say B1 and B2

    =IF(AND(A1>B1,A1<B2),A1,"")

    This returns a blank if the date in A1 does not meet the criteria. If you don't want to use cell references you could use:

    =IF(AND(A1>DATEVALUE("1/1/2006"),A1<DATEVALUE("1/31/2006")),A1,"")



    HTH

    Steve

  3. #3
    Chip Pearson
    Guest

    Re: Return info based on Date Range

    Try the following formula in B6

    =IF(AND(A1>=DATE(2006,1,1),A1<=DATE(2006,31,1)),A1,"no")

    Be sure to format B6 for a date.


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com




    "kermitforney"
    <[email protected]> wrote
    in message
    news:[email protected]...
    >
    > I need to have a date returned based on a date range.
    >
    > Basically IF Cell A1 is between 1/1/06 and 1/31/06 then place
    > the date
    > of A1 into cell B6.
    >
    > But I don't understand how to input a date range into Excel.
    >
    >
    > Heeeeeeeeelp!
    >
    >
    > --
    > kermitforney
    > ------------------------------------------------------------------------
    > kermitforney's Profile:
    > http://www.excelforum.com/member.php...o&userid=32536
    > View this thread:
    > http://www.excelforum.com/showthread...hreadid=560409
    >




  4. #4
    Chip Pearson
    Guest

    Re: Return info based on Date Range

    > =IF(AND(A1>=DATE(2006,1,1),A1<=DATE(2006,31,1)),A1,"no")

    should be

    =IF(AND(A1>=DATE(2006,1,1),A1<=DATE(2006,1,31)),A1,"no")


    --
    Cordially,
    Chip Pearson
    Microsoft MVP - Excel
    Pearson Software Consulting, LLC
    www.cpearson.com


    "Chip Pearson" <[email protected]> wrote in message
    news:[email protected]...
    > Try the following formula in B6
    >
    > =IF(AND(A1>=DATE(2006,1,1),A1<=DATE(2006,31,1)),A1,"no")
    >
    > Be sure to format B6 for a date.
    >
    >
    > --
    > Cordially,
    > Chip Pearson
    > Microsoft MVP - Excel
    > Pearson Software Consulting, LLC
    > www.cpearson.com
    >
    >
    >
    >
    > "kermitforney"
    > <[email protected]>
    > wrote in message
    > news:[email protected]...
    >>
    >> I need to have a date returned based on a date range.
    >>
    >> Basically IF Cell A1 is between 1/1/06 and 1/31/06 then place
    >> the date
    >> of A1 into cell B6.
    >>
    >> But I don't understand how to input a date range into Excel.
    >>
    >>
    >> Heeeeeeeeelp!
    >>
    >>
    >> --
    >> kermitforney
    >> ------------------------------------------------------------------------
    >> kermitforney's Profile:
    >> http://www.excelforum.com/member.php...o&userid=32536
    >> View this thread:
    >> http://www.excelforum.com/showthread...hreadid=560409
    >>

    >
    >




+ 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