+ Reply to Thread
Results 1 to 132 of 132

How do I calculate if a date is in a certain time frame?

  1. #1
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Hi!

    See this:

    http://tinyurl.com/aml9c

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    >I am tracking dates of service and I need to be able to see if dates fall
    > within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    > (Client 1) date date date
    >
    > I want to see if any of the clients dates fall between date 1 and date 2.
    > If any fall between these dates then count as 1 or true. If the dates are
    > before date 1 or after date 2, then I don't want to count them at all.
    > The
    > problem is if I use > date 1 and < date 2 then it counts everything before
    > date 1 as well. Please help me.




  2. #2
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    I tried all 3 suggestions, but they didn't work.

    "Biff" wrote:

    > Hi!
    >
    > See this:
    >
    > http://tinyurl.com/aml9c
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > >I am tracking dates of service and I need to be able to see if dates fall
    > > within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > > (Client 1) date date date
    > >
    > > I want to see if any of the clients dates fall between date 1 and date 2.
    > > If any fall between these dates then count as 1 or true. If the dates are
    > > before date 1 or after date 2, then I don't want to count them at all.
    > > The
    > > problem is if I use > date 1 and < date 2 then it counts everything before
    > > date 1 as well. Please help me.

    >
    >
    >


  3. #3
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Are you sure that the dates are true Excel dates?

    True Excel dates are really numbers with a special format.

    Check the formats for your date cells. If you select a date cell then right
    click and choose Format Cells what format does it show as being used?

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    >I tried all 3 suggestions, but they didn't work.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> See this:
    >>
    >> http://tinyurl.com/aml9c
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I am tracking dates of service and I need to be able to see if dates
    >> >fall
    >> > within a certain time frame.
    >> > column F Column H
    >> > row 1 (date 1) (date 2)
    >> >
    >> >
    >> > column H column J column L
    >> > (Client 1) date date date
    >> >
    >> > I want to see if any of the clients dates fall between date 1 and date
    >> > 2.
    >> > If any fall between these dates then count as 1 or true. If the dates
    >> > are
    >> > before date 1 or after date 2, then I don't want to count them at all.
    >> > The
    >> > problem is if I use > date 1 and < date 2 then it counts everything
    >> > before
    >> > date 1 as well. Please help me.

    >>
    >>
    >>




  4. #4
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    It is a date cell. It says Type : date

    "Biff" wrote:

    > Are you sure that the dates are true Excel dates?
    >
    > True Excel dates are really numbers with a special format.
    >
    > Check the formats for your date cells. If you select a date cell then right
    > click and choose Format Cells what format does it show as being used?
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > >I tried all 3 suggestions, but they didn't work.
    > >
    > > "Biff" wrote:
    > >
    > >> Hi!
    > >>
    > >> See this:
    > >>
    > >> http://tinyurl.com/aml9c
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> >I am tracking dates of service and I need to be able to see if dates
    > >> >fall
    > >> > within a certain time frame.
    > >> > column F Column H
    > >> > row 1 (date 1) (date 2)
    > >> >
    > >> >
    > >> > column H column J column L
    > >> > (Client 1) date date date
    > >> >
    > >> > I want to see if any of the clients dates fall between date 1 and date
    > >> > 2.
    > >> > If any fall between these dates then count as 1 or true. If the dates
    > >> > are
    > >> > before date 1 or after date 2, then I don't want to count them at all.
    > >> > The
    > >> > problem is if I use > date 1 and < date 2 then it counts everything
    > >> > before
    > >> > date 1 as well. Please help me.
    > >>
    > >>
    > >>

    >
    >
    >


  5. #5
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    OK, maybe if you give some examples of what to count and when...

    For example....

    F1 = 1/1/2005
    H1 = 1/2/2005

    H5 = 1/1/2005
    J5 = 1/10/2005
    L5 = blank (empty cell)

    What result would you expect from that example? Based on my understanding of
    what you want I would think the result should be 1. Also, you didn't really
    say whether you actually meant >= and <= the dates in F1 and H1. You said
    "within" and a literal reading of that would exclude both of the dates in my
    example.

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > It is a date cell. It says Type : date
    >
    > "Biff" wrote:
    >
    >> Are you sure that the dates are true Excel dates?
    >>
    >> True Excel dates are really numbers with a special format.
    >>
    >> Check the formats for your date cells. If you select a date cell then
    >> right
    >> click and choose Format Cells what format does it show as being used?
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I tried all 3 suggestions, but they didn't work.
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> Hi!
    >> >>
    >> >> See this:
    >> >>
    >> >> http://tinyurl.com/aml9c
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> >I am tracking dates of service and I need to be able to see if dates
    >> >> >fall
    >> >> > within a certain time frame.
    >> >> > column F Column H
    >> >> > row 1 (date 1) (date 2)
    >> >> >
    >> >> >
    >> >> > column H column J column L
    >> >> > (Client 1) date date date
    >> >> >
    >> >> > I want to see if any of the clients dates fall between date 1 and
    >> >> > date
    >> >> > 2.
    >> >> > If any fall between these dates then count as 1 or true. If the
    >> >> > dates
    >> >> > are
    >> >> > before date 1 or after date 2, then I don't want to count them at
    >> >> > all.
    >> >> > The
    >> >> > problem is if I use > date 1 and < date 2 then it counts everything
    >> >> > before
    >> >> > date 1 as well. Please help me.
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  6. #6
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    The dates in F1 and H1 are a 2 month span.
    F1 =TODAY()-365 H1 =TODAY()-305.

    H5 is 6/17/04
    J5 is 1/11/05
    L5 is 10/18/04
    The only cell which would count is L5. H5 is too long ago, and J5 is not
    long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    counts H5. I need it to count only the dates which fall in between F1 and
    H1. I don't know how to combine the equation to make it fit Both criteria at
    the same time. How DO you learn all this stuff?


    "Biff" wrote:

    > OK, maybe if you give some examples of what to count and when...
    >
    > For example....
    >
    > F1 = 1/1/2005
    > H1 = 1/2/2005
    >
    > H5 = 1/1/2005
    > J5 = 1/10/2005
    > L5 = blank (empty cell)
    >
    > What result would you expect from that example? Based on my understanding of
    > what you want I would think the result should be 1. Also, you didn't really
    > say whether you actually meant >= and <= the dates in F1 and H1. You said
    > "within" and a literal reading of that would exclude both of the dates in my
    > example.
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > It is a date cell. It says Type : date
    > >
    > > "Biff" wrote:
    > >
    > >> Are you sure that the dates are true Excel dates?
    > >>
    > >> True Excel dates are really numbers with a special format.
    > >>
    > >> Check the formats for your date cells. If you select a date cell then
    > >> right
    > >> click and choose Format Cells what format does it show as being used?
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> >I tried all 3 suggestions, but they didn't work.
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> Hi!
    > >> >>
    > >> >> See this:
    > >> >>
    > >> >> http://tinyurl.com/aml9c
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> >I am tracking dates of service and I need to be able to see if dates
    > >> >> >fall
    > >> >> > within a certain time frame.
    > >> >> > column F Column H
    > >> >> > row 1 (date 1) (date 2)
    > >> >> >
    > >> >> >
    > >> >> > column H column J column L
    > >> >> > (Client 1) date date date
    > >> >> >
    > >> >> > I want to see if any of the clients dates fall between date 1 and
    > >> >> > date
    > >> >> > 2.
    > >> >> > If any fall between these dates then count as 1 or true. If the
    > >> >> > dates
    > >> >> > are
    > >> >> > before date 1 or after date 2, then I don't want to count them at
    > >> >> > all.
    > >> >> > The
    > >> >> > problem is if I use > date 1 and < date 2 then it counts everything
    > >> >> > before
    > >> >> > date 1 as well. Please help me.
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  7. #7
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Hi!

    >The only cell which would count is L5. H5 is too long ago, and J5 is not
    >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    >counts H5.


    OK, that's where you're not understanding how the formula works. The dates
    have to meet both of those conditions to be counted. The date has to be >=F1
    AND <=H1.

    F1 = 8/27/2004
    H1 = 11/26/2004

    H5 = 6/17/2004 is NOT >F1 but IS <H1

    So this is how it gets evaluated:

    FALSE * TRUE = 0 (not counted)

    And the formula does the same thing for the other dates so that you have an
    array that looks like this:

    H5 = 6/17/2004 = FALSE * TRUE = 0
    J5 = 1/11/2005 = TRUE * FALSE = 0
    L5 = 10/18/2004 = TRUE * TRUE = 1

    So, the only date counted is in L5.

    This formula is a little more robust in that it accounts for empty cells:

    =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > The dates in F1 and H1 are a 2 month span.
    > F1 =TODAY()-365 H1 =TODAY()-305.
    >
    > H5 is 6/17/04
    > J5 is 1/11/05
    > L5 is 10/18/04
    > The only cell which would count is L5. H5 is too long ago, and J5 is not
    > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > counts H5. I need it to count only the dates which fall in between F1 and
    > H1. I don't know how to combine the equation to make it fit Both criteria
    > at
    > the same time. How DO you learn all this stuff?
    >
    >
    > "Biff" wrote:
    >
    >> OK, maybe if you give some examples of what to count and when...
    >>
    >> For example....
    >>
    >> F1 = 1/1/2005
    >> H1 = 1/2/2005
    >>
    >> H5 = 1/1/2005
    >> J5 = 1/10/2005
    >> L5 = blank (empty cell)
    >>
    >> What result would you expect from that example? Based on my understanding
    >> of
    >> what you want I would think the result should be 1. Also, you didn't
    >> really
    >> say whether you actually meant >= and <= the dates in F1 and H1. You said
    >> "within" and a literal reading of that would exclude both of the dates in
    >> my
    >> example.
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > It is a date cell. It says Type : date
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> Are you sure that the dates are true Excel dates?
    >> >>
    >> >> True Excel dates are really numbers with a special format.
    >> >>
    >> >> Check the formats for your date cells. If you select a date cell then
    >> >> right
    >> >> click and choose Format Cells what format does it show as being used?
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> >I tried all 3 suggestions, but they didn't work.
    >> >> >
    >> >> > "Biff" wrote:
    >> >> >
    >> >> >> Hi!
    >> >> >>
    >> >> >> See this:
    >> >> >>
    >> >> >> http://tinyurl.com/aml9c
    >> >> >>
    >> >> >> Biff
    >> >> >>
    >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> news:[email protected]...
    >> >> >> >I am tracking dates of service and I need to be able to see if
    >> >> >> >dates
    >> >> >> >fall
    >> >> >> > within a certain time frame.
    >> >> >> > column F Column H
    >> >> >> > row 1 (date 1) (date 2)
    >> >> >> >
    >> >> >> >
    >> >> >> > column H column J column L
    >> >> >> > (Client 1) date date date
    >> >> >> >
    >> >> >> > I want to see if any of the clients dates fall between date 1 and
    >> >> >> > date
    >> >> >> > 2.
    >> >> >> > If any fall between these dates then count as 1 or true. If the
    >> >> >> > dates
    >> >> >> > are
    >> >> >> > before date 1 or after date 2, then I don't want to count them at
    >> >> >> > all.
    >> >> >> > The
    >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    >> >> >> > everything
    >> >> >> > before
    >> >> >> > date 1 as well. Please help me.
    >> >> >>
    >> >> >>
    >> >> >>
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  8. #8
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Biff, it still counts dates prior to F1.

    "Biff" wrote:

    > Hi!
    >
    > >The only cell which would count is L5. H5 is too long ago, and J5 is not
    > >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > >counts H5.

    >
    > OK, that's where you're not understanding how the formula works. The dates
    > have to meet both of those conditions to be counted. The date has to be >=F1
    > AND <=H1.
    >
    > F1 = 8/27/2004
    > H1 = 11/26/2004
    >
    > H5 = 6/17/2004 is NOT >F1 but IS <H1
    >
    > So this is how it gets evaluated:
    >
    > FALSE * TRUE = 0 (not counted)
    >
    > And the formula does the same thing for the other dates so that you have an
    > array that looks like this:
    >
    > H5 = 6/17/2004 = FALSE * TRUE = 0
    > J5 = 1/11/2005 = TRUE * FALSE = 0
    > L5 = 10/18/2004 = TRUE * TRUE = 1
    >
    > So, the only date counted is in L5.
    >
    > This formula is a little more robust in that it accounts for empty cells:
    >
    > =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > The dates in F1 and H1 are a 2 month span.
    > > F1 =TODAY()-365 H1 =TODAY()-305.
    > >
    > > H5 is 6/17/04
    > > J5 is 1/11/05
    > > L5 is 10/18/04
    > > The only cell which would count is L5. H5 is too long ago, and J5 is not
    > > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > > counts H5. I need it to count only the dates which fall in between F1 and
    > > H1. I don't know how to combine the equation to make it fit Both criteria
    > > at
    > > the same time. How DO you learn all this stuff?
    > >
    > >
    > > "Biff" wrote:
    > >
    > >> OK, maybe if you give some examples of what to count and when...
    > >>
    > >> For example....
    > >>
    > >> F1 = 1/1/2005
    > >> H1 = 1/2/2005
    > >>
    > >> H5 = 1/1/2005
    > >> J5 = 1/10/2005
    > >> L5 = blank (empty cell)
    > >>
    > >> What result would you expect from that example? Based on my understanding
    > >> of
    > >> what you want I would think the result should be 1. Also, you didn't
    > >> really
    > >> say whether you actually meant >= and <= the dates in F1 and H1. You said
    > >> "within" and a literal reading of that would exclude both of the dates in
    > >> my
    > >> example.
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > It is a date cell. It says Type : date
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> Are you sure that the dates are true Excel dates?
    > >> >>
    > >> >> True Excel dates are really numbers with a special format.
    > >> >>
    > >> >> Check the formats for your date cells. If you select a date cell then
    > >> >> right
    > >> >> click and choose Format Cells what format does it show as being used?
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> >I tried all 3 suggestions, but they didn't work.
    > >> >> >
    > >> >> > "Biff" wrote:
    > >> >> >
    > >> >> >> Hi!
    > >> >> >>
    > >> >> >> See this:
    > >> >> >>
    > >> >> >> http://tinyurl.com/aml9c
    > >> >> >>
    > >> >> >> Biff
    > >> >> >>
    > >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> news:[email protected]...
    > >> >> >> >I am tracking dates of service and I need to be able to see if
    > >> >> >> >dates
    > >> >> >> >fall
    > >> >> >> > within a certain time frame.
    > >> >> >> > column F Column H
    > >> >> >> > row 1 (date 1) (date 2)
    > >> >> >> >
    > >> >> >> >
    > >> >> >> > column H column J column L
    > >> >> >> > (Client 1) date date date
    > >> >> >> >
    > >> >> >> > I want to see if any of the clients dates fall between date 1 and
    > >> >> >> > date
    > >> >> >> > 2.
    > >> >> >> > If any fall between these dates then count as 1 or true. If the
    > >> >> >> > dates
    > >> >> >> > are
    > >> >> >> > before date 1 or after date 2, then I don't want to count them at
    > >> >> >> > all.
    > >> >> >> > The
    > >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > >> >> >> > everything
    > >> >> >> > before
    > >> >> >> > date 1 as well. Please help me.
    > >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  9. #9
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Can you send me a copy of the file? If so, let me know how to contact you.

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > Biff, it still counts dates prior to F1.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    >> >not
    >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    >> >counts H5.

    >>
    >> OK, that's where you're not understanding how the formula works. The
    >> dates
    >> have to meet both of those conditions to be counted. The date has to be
    >> >=F1

    >> AND <=H1.
    >>
    >> F1 = 8/27/2004
    >> H1 = 11/26/2004
    >>
    >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    >>
    >> So this is how it gets evaluated:
    >>
    >> FALSE * TRUE = 0 (not counted)
    >>
    >> And the formula does the same thing for the other dates so that you have
    >> an
    >> array that looks like this:
    >>
    >> H5 = 6/17/2004 = FALSE * TRUE = 0
    >> J5 = 1/11/2005 = TRUE * FALSE = 0
    >> L5 = 10/18/2004 = TRUE * TRUE = 1
    >>
    >> So, the only date counted is in L5.
    >>
    >> This formula is a little more robust in that it accounts for empty cells:
    >>
    >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > The dates in F1 and H1 are a 2 month span.
    >> > F1 =TODAY()-365 H1 =TODAY()-305.
    >> >
    >> > H5 is 6/17/04
    >> > J5 is 1/11/05
    >> > L5 is 10/18/04
    >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    >> > not
    >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    >> > it
    >> > counts H5. I need it to count only the dates which fall in between F1
    >> > and
    >> > H1. I don't know how to combine the equation to make it fit Both
    >> > criteria
    >> > at
    >> > the same time. How DO you learn all this stuff?
    >> >
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> OK, maybe if you give some examples of what to count and when...
    >> >>
    >> >> For example....
    >> >>
    >> >> F1 = 1/1/2005
    >> >> H1 = 1/2/2005
    >> >>
    >> >> H5 = 1/1/2005
    >> >> J5 = 1/10/2005
    >> >> L5 = blank (empty cell)
    >> >>
    >> >> What result would you expect from that example? Based on my
    >> >> understanding
    >> >> of
    >> >> what you want I would think the result should be 1. Also, you didn't
    >> >> really
    >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    >> >> said
    >> >> "within" and a literal reading of that would exclude both of the dates
    >> >> in
    >> >> my
    >> >> example.
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> > It is a date cell. It says Type : date
    >> >> >
    >> >> > "Biff" wrote:
    >> >> >
    >> >> >> Are you sure that the dates are true Excel dates?
    >> >> >>
    >> >> >> True Excel dates are really numbers with a special format.
    >> >> >>
    >> >> >> Check the formats for your date cells. If you select a date cell
    >> >> >> then
    >> >> >> right
    >> >> >> click and choose Format Cells what format does it show as being
    >> >> >> used?
    >> >> >>
    >> >> >> Biff
    >> >> >>
    >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> news:[email protected]...
    >> >> >> >I tried all 3 suggestions, but they didn't work.
    >> >> >> >
    >> >> >> > "Biff" wrote:
    >> >> >> >
    >> >> >> >> Hi!
    >> >> >> >>
    >> >> >> >> See this:
    >> >> >> >>
    >> >> >> >> http://tinyurl.com/aml9c
    >> >> >> >>
    >> >> >> >> Biff
    >> >> >> >>
    >> >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> >> news:[email protected]...
    >> >> >> >> >I am tracking dates of service and I need to be able to see if
    >> >> >> >> >dates
    >> >> >> >> >fall
    >> >> >> >> > within a certain time frame.
    >> >> >> >> > column F Column H
    >> >> >> >> > row 1 (date 1) (date 2)
    >> >> >> >> >
    >> >> >> >> >
    >> >> >> >> > column H column J column L
    >> >> >> >> > (Client 1) date date date
    >> >> >> >> >
    >> >> >> >> > I want to see if any of the clients dates fall between date 1
    >> >> >> >> > and
    >> >> >> >> > date
    >> >> >> >> > 2.
    >> >> >> >> > If any fall between these dates then count as 1 or true. If
    >> >> >> >> > the
    >> >> >> >> > dates
    >> >> >> >> > are
    >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    >> >> >> >> > at
    >> >> >> >> > all.
    >> >> >> >> > The
    >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    >> >> >> >> > everything
    >> >> >> >> > before
    >> >> >> >> > date 1 as well. Please help me.
    >> >> >> >>
    >> >> >> >>
    >> >> >> >>
    >> >> >>
    >> >> >>
    >> >> >>
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  10. #10
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    e-mail - see my profile

    "Biff" wrote:

    > Can you send me a copy of the file? If so, let me know how to contact you.
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > Biff, it still counts dates prior to F1.
    > >
    > > "Biff" wrote:
    > >
    > >> Hi!
    > >>
    > >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    > >> >not
    > >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > >> >counts H5.
    > >>
    > >> OK, that's where you're not understanding how the formula works. The
    > >> dates
    > >> have to meet both of those conditions to be counted. The date has to be
    > >> >=F1
    > >> AND <=H1.
    > >>
    > >> F1 = 8/27/2004
    > >> H1 = 11/26/2004
    > >>
    > >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    > >>
    > >> So this is how it gets evaluated:
    > >>
    > >> FALSE * TRUE = 0 (not counted)
    > >>
    > >> And the formula does the same thing for the other dates so that you have
    > >> an
    > >> array that looks like this:
    > >>
    > >> H5 = 6/17/2004 = FALSE * TRUE = 0
    > >> J5 = 1/11/2005 = TRUE * FALSE = 0
    > >> L5 = 10/18/2004 = TRUE * TRUE = 1
    > >>
    > >> So, the only date counted is in L5.
    > >>
    > >> This formula is a little more robust in that it accounts for empty cells:
    > >>
    > >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > The dates in F1 and H1 are a 2 month span.
    > >> > F1 =TODAY()-365 H1 =TODAY()-305.
    > >> >
    > >> > H5 is 6/17/04
    > >> > J5 is 1/11/05
    > >> > L5 is 10/18/04
    > >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    > >> > not
    > >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    > >> > it
    > >> > counts H5. I need it to count only the dates which fall in between F1
    > >> > and
    > >> > H1. I don't know how to combine the equation to make it fit Both
    > >> > criteria
    > >> > at
    > >> > the same time. How DO you learn all this stuff?
    > >> >
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> OK, maybe if you give some examples of what to count and when...
    > >> >>
    > >> >> For example....
    > >> >>
    > >> >> F1 = 1/1/2005
    > >> >> H1 = 1/2/2005
    > >> >>
    > >> >> H5 = 1/1/2005
    > >> >> J5 = 1/10/2005
    > >> >> L5 = blank (empty cell)
    > >> >>
    > >> >> What result would you expect from that example? Based on my
    > >> >> understanding
    > >> >> of
    > >> >> what you want I would think the result should be 1. Also, you didn't
    > >> >> really
    > >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    > >> >> said
    > >> >> "within" and a literal reading of that would exclude both of the dates
    > >> >> in
    > >> >> my
    > >> >> example.
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> > It is a date cell. It says Type : date
    > >> >> >
    > >> >> > "Biff" wrote:
    > >> >> >
    > >> >> >> Are you sure that the dates are true Excel dates?
    > >> >> >>
    > >> >> >> True Excel dates are really numbers with a special format.
    > >> >> >>
    > >> >> >> Check the formats for your date cells. If you select a date cell
    > >> >> >> then
    > >> >> >> right
    > >> >> >> click and choose Format Cells what format does it show as being
    > >> >> >> used?
    > >> >> >>
    > >> >> >> Biff
    > >> >> >>
    > >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> news:[email protected]...
    > >> >> >> >I tried all 3 suggestions, but they didn't work.
    > >> >> >> >
    > >> >> >> > "Biff" wrote:
    > >> >> >> >
    > >> >> >> >> Hi!
    > >> >> >> >>
    > >> >> >> >> See this:
    > >> >> >> >>
    > >> >> >> >> http://tinyurl.com/aml9c
    > >> >> >> >>
    > >> >> >> >> Biff
    > >> >> >> >>
    > >> >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> >> news:[email protected]...
    > >> >> >> >> >I am tracking dates of service and I need to be able to see if
    > >> >> >> >> >dates
    > >> >> >> >> >fall
    > >> >> >> >> > within a certain time frame.
    > >> >> >> >> > column F Column H
    > >> >> >> >> > row 1 (date 1) (date 2)
    > >> >> >> >> >
    > >> >> >> >> >
    > >> >> >> >> > column H column J column L
    > >> >> >> >> > (Client 1) date date date
    > >> >> >> >> >
    > >> >> >> >> > I want to see if any of the clients dates fall between date 1
    > >> >> >> >> > and
    > >> >> >> >> > date
    > >> >> >> >> > 2.
    > >> >> >> >> > If any fall between these dates then count as 1 or true. If
    > >> >> >> >> > the
    > >> >> >> >> > dates
    > >> >> >> >> > are
    > >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    > >> >> >> >> > at
    > >> >> >> >> > all.
    > >> >> >> >> > The
    > >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > >> >> >> >> > everything
    > >> >> >> >> > before
    > >> >> >> >> > date 1 as well. Please help me.
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  11. #11
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?


    [display name][email protected]


    > > Can you send me a copy of the file? If so, let me know how to contact you.
    > >
    > > Biff
    > >
    > > "Pe66les" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > Biff, it still counts dates prior to F1.
    > > >
    > > > "Biff" wrote:
    > > >
    > > >> Hi!
    > > >>
    > > >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    > > >> >not
    > > >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > > >> >counts H5.
    > > >>
    > > >> OK, that's where you're not understanding how the formula works. The
    > > >> dates
    > > >> have to meet both of those conditions to be counted. The date has to be
    > > >> >=F1
    > > >> AND <=H1.
    > > >>
    > > >> F1 = 8/27/2004
    > > >> H1 = 11/26/2004
    > > >>
    > > >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    > > >>
    > > >> So this is how it gets evaluated:
    > > >>
    > > >> FALSE * TRUE = 0 (not counted)
    > > >>
    > > >> And the formula does the same thing for the other dates so that you have
    > > >> an
    > > >> array that looks like this:
    > > >>
    > > >> H5 = 6/17/2004 = FALSE * TRUE = 0
    > > >> J5 = 1/11/2005 = TRUE * FALSE = 0
    > > >> L5 = 10/18/2004 = TRUE * TRUE = 1
    > > >>
    > > >> So, the only date counted is in L5.
    > > >>
    > > >> This formula is a little more robust in that it accounts for empty cells:
    > > >>
    > > >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    > > >>
    > > >> Biff
    > > >>
    > > >> "Pe66les" <[email protected]> wrote in message
    > > >> news:[email protected]...
    > > >> > The dates in F1 and H1 are a 2 month span.
    > > >> > F1 =TODAY()-365 H1 =TODAY()-305.
    > > >> >
    > > >> > H5 is 6/17/04
    > > >> > J5 is 1/11/05
    > > >> > L5 is 10/18/04
    > > >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    > > >> > not
    > > >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    > > >> > it
    > > >> > counts H5. I need it to count only the dates which fall in between F1
    > > >> > and
    > > >> > H1. I don't know how to combine the equation to make it fit Both
    > > >> > criteria
    > > >> > at
    > > >> > the same time. How DO you learn all this stuff?
    > > >> >
    > > >> >
    > > >> > "Biff" wrote:
    > > >> >
    > > >> >> OK, maybe if you give some examples of what to count and when...
    > > >> >>
    > > >> >> For example....
    > > >> >>
    > > >> >> F1 = 1/1/2005
    > > >> >> H1 = 1/2/2005
    > > >> >>
    > > >> >> H5 = 1/1/2005
    > > >> >> J5 = 1/10/2005
    > > >> >> L5 = blank (empty cell)
    > > >> >>
    > > >> >> What result would you expect from that example? Based on my
    > > >> >> understanding
    > > >> >> of
    > > >> >> what you want I would think the result should be 1. Also, you didn't
    > > >> >> really
    > > >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    > > >> >> said
    > > >> >> "within" and a literal reading of that would exclude both of the dates
    > > >> >> in
    > > >> >> my
    > > >> >> example.
    > > >> >>
    > > >> >> Biff
    > > >> >>
    > > >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> news:[email protected]...
    > > >> >> > It is a date cell. It says Type : date
    > > >> >> >
    > > >> >> > "Biff" wrote:
    > > >> >> >
    > > >> >> >> Are you sure that the dates are true Excel dates?
    > > >> >> >>
    > > >> >> >> True Excel dates are really numbers with a special format.
    > > >> >> >>
    > > >> >> >> Check the formats for your date cells. If you select a date cell
    > > >> >> >> then
    > > >> >> >> right
    > > >> >> >> click and choose Format Cells what format does it show as being
    > > >> >> >> used?
    > > >> >> >>
    > > >> >> >> Biff
    > > >> >> >>
    > > >> >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> >> news:[email protected]...
    > > >> >> >> >I tried all 3 suggestions, but they didn't work.
    > > >> >> >> >
    > > >> >> >> > "Biff" wrote:
    > > >> >> >> >
    > > >> >> >> >> Hi!
    > > >> >> >> >>
    > > >> >> >> >> See this:
    > > >> >> >> >>
    > > >> >> >> >> http://tinyurl.com/aml9c
    > > >> >> >> >>
    > > >> >> >> >> Biff
    > > >> >> >> >>
    > > >> >> >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> >> >> news:[email protected]...
    > > >> >> >> >> >I am tracking dates of service and I need to be able to see if
    > > >> >> >> >> >dates
    > > >> >> >> >> >fall
    > > >> >> >> >> > within a certain time frame.
    > > >> >> >> >> > column F Column H
    > > >> >> >> >> > row 1 (date 1) (date 2)
    > > >> >> >> >> >
    > > >> >> >> >> >
    > > >> >> >> >> > column H column J column L
    > > >> >> >> >> > (Client 1) date date date
    > > >> >> >> >> >
    > > >> >> >> >> > I want to see if any of the clients dates fall between date 1
    > > >> >> >> >> > and
    > > >> >> >> >> > date
    > > >> >> >> >> > 2.
    > > >> >> >> >> > If any fall between these dates then count as 1 or true. If
    > > >> >> >> >> > the
    > > >> >> >> >> > dates
    > > >> >> >> >> > are
    > > >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    > > >> >> >> >> > at
    > > >> >> >> >> > all.
    > > >> >> >> >> > The
    > > >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > > >> >> >> >> > everything
    > > >> >> >> >> > before
    > > >> >> >> >> > date 1 as well. Please help me.
    > > >> >> >> >>
    > > >> >> >> >>
    > > >> >> >> >>
    > > >> >> >>
    > > >> >> >>
    > > >> >> >>
    > > >> >>
    > > >> >>
    > > >> >>
    > > >>
    > > >>
    > > >>

    > >
    > >
    > >


  12. #12
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    <[email protected]> wrote:

    >I am tracking dates of service and I need to be able to see if dates fall
    >within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    >(Client 1) date date date
    >
    >I want to see if any of the clients dates fall between date 1 and date 2.
    >If any fall between these dates then count as 1 or true. If the dates are
    >before date 1 or after date 2, then I don't want to count them at all. The
    >problem is if I use > date 1 and < date 2 then it counts everything before
    >date 1 as well. Please help me.



    With the range of dates that you are checking named "rng" (you can substitute a
    cell reference for this):

    =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))

    date1 and date2 may be cell references also.


    --ron

  13. #13
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    With the range of dates that you are checking named "rng" ----How do I do this?

    "Ron Rosenfeld" wrote:

    > On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    > >I am tracking dates of service and I need to be able to see if dates fall
    > >within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > >(Client 1) date date date
    > >
    > >I want to see if any of the clients dates fall between date 1 and date 2.
    > >If any fall between these dates then count as 1 or true. If the dates are
    > >before date 1 or after date 2, then I don't want to count them at all. The
    > >problem is if I use > date 1 and < date 2 then it counts everything before
    > >date 1 as well. Please help me.

    >
    >
    > With the range of dates that you are checking named "rng" (you can substitute a
    > cell reference for this):
    >
    > =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))
    >
    > date1 and date2 may be cell references also.
    >
    >
    > --ron
    >


  14. #14
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    I tried your suggestion but it is still counting 1 when it should be 0,
    This is what I typed:
    =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))
    What am I doing wrong?


    "Ron Rosenfeld" wrote:

    > On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    > >I am tracking dates of service and I need to be able to see if dates fall
    > >within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > >(Client 1) date date date
    > >
    > >I want to see if any of the clients dates fall between date 1 and date 2.
    > >If any fall between these dates then count as 1 or true. If the dates are
    > >before date 1 or after date 2, then I don't want to count them at all. The
    > >problem is if I use > date 1 and < date 2 then it counts everything before
    > >date 1 as well. Please help me.

    >
    >
    > With the range of dates that you are checking named "rng" (you can substitute a
    > cell reference for this):
    >
    > =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))
    >
    > date1 and date2 may be cell references also.
    >
    >
    > --ron
    >


  15. #15
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Sat, 27 Aug 2005 01:33:01 -0700, "Pe66les"
    <[email protected]> wrote:

    >I tried your suggestion but it is still counting 1 when it should be 0,
    >This is what I typed:
    >=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))



    >What am I doing wrong?
    >


    Uh, you are NOT using the equation I posted. You have the comparison operator
    incorrect in your second COUNTIF function.

    Assuming F1 contains your earlier date, and H1 contains your later date.

    Change yours to:

    =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))


    --ron

  16. #16
    Pe66les
    Guest

    RE: How do I calculate if a date is in a certain time frame?

    WOOOHOOOO!!!!! I did it!!!! I used:
    =3-COUNTIF(H5:L5,">="&$H$1)-COUNTIF(H5:L5,"<="&$F$1)
    It worked!!!!! Thank You so much for helping me figure out what I needed
    to do!!!

    "Pe66les" wrote:

    > I am tracking dates of service and I need to be able to see if dates fall
    > within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    > (Client 1) date date date
    >
    > I want to see if any of the clients dates fall between date 1 and date 2.
    > If any fall between these dates then count as 1 or true. If the dates are
    > before date 1 or after date 2, then I don't want to count them at all. The
    > problem is if I use > date 1 and < date 2 then it counts everything before
    > date 1 as well. Please help me.


  17. #17
    Pe66les
    Guest

    RE: How do I calculate if a date is in a certain time frame?

    OK, You get A Double WOOOOOHOOOO!!!!! I corrected my mistake and your
    equation is much better than mine. Thank you!!!! Thank you!!! Thank you!!!

    "Pe66les" wrote:

    > WOOOHOOOO!!!!! I did it!!!! I used:
    > =3-COUNTIF(H5:L5,">="&$H$1)-COUNTIF(H5:L5,"<="&$F$1)
    > It worked!!!!! Thank You so much for helping me figure out what I needed
    > to do!!!
    >
    > "Pe66les" wrote:
    >
    > > I am tracking dates of service and I need to be able to see if dates fall
    > > within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > > (Client 1) date date date
    > >
    > > I want to see if any of the clients dates fall between date 1 and date 2.
    > > If any fall between these dates then count as 1 or true. If the dates are
    > > before date 1 or after date 2, then I don't want to count them at all. The
    > > problem is if I use > date 1 and < date 2 then it counts everything before
    > > date 1 as well. Please help me.


  18. #18
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    >=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))

    Hmmm...

    If that works then so should:

    =IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0)

    I was accounting for the non-contiguous range and the possibilty of other
    numeric data within the range, but even if you leave that out:

    =IF(SUMPRODUCT(--(H5:L5>=F1),--(H5:L5<=H1)),1,0)

    That should also work.

    I don't get it!

    Biff

    "Ron Rosenfeld" <[email protected]> wrote in message
    news:[email protected]...
    > On Sat, 27 Aug 2005 01:33:01 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    >>I tried your suggestion but it is still counting 1 when it should be 0,
    >>This is what I typed:
    >>=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))

    >
    >
    >>What am I doing wrong?
    >>

    >
    > Uh, you are NOT using the equation I posted. You have the comparison
    > operator
    > incorrect in your second COUNTIF function.
    >
    > Assuming F1 contains your earlier date, and H1 contains your later date.
    >
    > Change yours to:
    >
    > =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))
    >
    >
    > --ron




  19. #19
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Sat, 27 Aug 2005 14:48:41 -0400, "Biff" <[email protected]> wrote:

    >>=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))

    >
    >Hmmm...
    >
    >If that works then so should:
    >
    >=IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0)
    >
    >I was accounting for the non-contiguous range and the possibilty of other
    >numeric data within the range, but even if you leave that out:
    >
    >=IF(SUMPRODUCT(--(H5:L5>=F1),--(H5:L5<=H1)),1,0)
    >
    >That should also work.
    >
    >I don't get it!


    When Pe66les posted the variation of *my* formula that he actually tried, it
    was incorrect. Perhaps the same thing was going on with the translation of
    yours.


    --ron

  20. #20
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Hi!

    See this:

    http://tinyurl.com/aml9c

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    >I am tracking dates of service and I need to be able to see if dates fall
    > within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    > (Client 1) date date date
    >
    > I want to see if any of the clients dates fall between date 1 and date 2.
    > If any fall between these dates then count as 1 or true. If the dates are
    > before date 1 or after date 2, then I don't want to count them at all.
    > The
    > problem is if I use > date 1 and < date 2 then it counts everything before
    > date 1 as well. Please help me.




  21. #21
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    I tried all 3 suggestions, but they didn't work.

    "Biff" wrote:

    > Hi!
    >
    > See this:
    >
    > http://tinyurl.com/aml9c
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > >I am tracking dates of service and I need to be able to see if dates fall
    > > within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > > (Client 1) date date date
    > >
    > > I want to see if any of the clients dates fall between date 1 and date 2.
    > > If any fall between these dates then count as 1 or true. If the dates are
    > > before date 1 or after date 2, then I don't want to count them at all.
    > > The
    > > problem is if I use > date 1 and < date 2 then it counts everything before
    > > date 1 as well. Please help me.

    >
    >
    >


  22. #22
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Are you sure that the dates are true Excel dates?

    True Excel dates are really numbers with a special format.

    Check the formats for your date cells. If you select a date cell then right
    click and choose Format Cells what format does it show as being used?

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    >I tried all 3 suggestions, but they didn't work.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> See this:
    >>
    >> http://tinyurl.com/aml9c
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I am tracking dates of service and I need to be able to see if dates
    >> >fall
    >> > within a certain time frame.
    >> > column F Column H
    >> > row 1 (date 1) (date 2)
    >> >
    >> >
    >> > column H column J column L
    >> > (Client 1) date date date
    >> >
    >> > I want to see if any of the clients dates fall between date 1 and date
    >> > 2.
    >> > If any fall between these dates then count as 1 or true. If the dates
    >> > are
    >> > before date 1 or after date 2, then I don't want to count them at all.
    >> > The
    >> > problem is if I use > date 1 and < date 2 then it counts everything
    >> > before
    >> > date 1 as well. Please help me.

    >>
    >>
    >>




  23. #23
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    It is a date cell. It says Type : date

    "Biff" wrote:

    > Are you sure that the dates are true Excel dates?
    >
    > True Excel dates are really numbers with a special format.
    >
    > Check the formats for your date cells. If you select a date cell then right
    > click and choose Format Cells what format does it show as being used?
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > >I tried all 3 suggestions, but they didn't work.
    > >
    > > "Biff" wrote:
    > >
    > >> Hi!
    > >>
    > >> See this:
    > >>
    > >> http://tinyurl.com/aml9c
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> >I am tracking dates of service and I need to be able to see if dates
    > >> >fall
    > >> > within a certain time frame.
    > >> > column F Column H
    > >> > row 1 (date 1) (date 2)
    > >> >
    > >> >
    > >> > column H column J column L
    > >> > (Client 1) date date date
    > >> >
    > >> > I want to see if any of the clients dates fall between date 1 and date
    > >> > 2.
    > >> > If any fall between these dates then count as 1 or true. If the dates
    > >> > are
    > >> > before date 1 or after date 2, then I don't want to count them at all.
    > >> > The
    > >> > problem is if I use > date 1 and < date 2 then it counts everything
    > >> > before
    > >> > date 1 as well. Please help me.
    > >>
    > >>
    > >>

    >
    >
    >


  24. #24
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    OK, maybe if you give some examples of what to count and when...

    For example....

    F1 = 1/1/2005
    H1 = 1/2/2005

    H5 = 1/1/2005
    J5 = 1/10/2005
    L5 = blank (empty cell)

    What result would you expect from that example? Based on my understanding of
    what you want I would think the result should be 1. Also, you didn't really
    say whether you actually meant >= and <= the dates in F1 and H1. You said
    "within" and a literal reading of that would exclude both of the dates in my
    example.

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > It is a date cell. It says Type : date
    >
    > "Biff" wrote:
    >
    >> Are you sure that the dates are true Excel dates?
    >>
    >> True Excel dates are really numbers with a special format.
    >>
    >> Check the formats for your date cells. If you select a date cell then
    >> right
    >> click and choose Format Cells what format does it show as being used?
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I tried all 3 suggestions, but they didn't work.
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> Hi!
    >> >>
    >> >> See this:
    >> >>
    >> >> http://tinyurl.com/aml9c
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> >I am tracking dates of service and I need to be able to see if dates
    >> >> >fall
    >> >> > within a certain time frame.
    >> >> > column F Column H
    >> >> > row 1 (date 1) (date 2)
    >> >> >
    >> >> >
    >> >> > column H column J column L
    >> >> > (Client 1) date date date
    >> >> >
    >> >> > I want to see if any of the clients dates fall between date 1 and
    >> >> > date
    >> >> > 2.
    >> >> > If any fall between these dates then count as 1 or true. If the
    >> >> > dates
    >> >> > are
    >> >> > before date 1 or after date 2, then I don't want to count them at
    >> >> > all.
    >> >> > The
    >> >> > problem is if I use > date 1 and < date 2 then it counts everything
    >> >> > before
    >> >> > date 1 as well. Please help me.
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  25. #25
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    The dates in F1 and H1 are a 2 month span.
    F1 =TODAY()-365 H1 =TODAY()-305.

    H5 is 6/17/04
    J5 is 1/11/05
    L5 is 10/18/04
    The only cell which would count is L5. H5 is too long ago, and J5 is not
    long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    counts H5. I need it to count only the dates which fall in between F1 and
    H1. I don't know how to combine the equation to make it fit Both criteria at
    the same time. How DO you learn all this stuff?


    "Biff" wrote:

    > OK, maybe if you give some examples of what to count and when...
    >
    > For example....
    >
    > F1 = 1/1/2005
    > H1 = 1/2/2005
    >
    > H5 = 1/1/2005
    > J5 = 1/10/2005
    > L5 = blank (empty cell)
    >
    > What result would you expect from that example? Based on my understanding of
    > what you want I would think the result should be 1. Also, you didn't really
    > say whether you actually meant >= and <= the dates in F1 and H1. You said
    > "within" and a literal reading of that would exclude both of the dates in my
    > example.
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > It is a date cell. It says Type : date
    > >
    > > "Biff" wrote:
    > >
    > >> Are you sure that the dates are true Excel dates?
    > >>
    > >> True Excel dates are really numbers with a special format.
    > >>
    > >> Check the formats for your date cells. If you select a date cell then
    > >> right
    > >> click and choose Format Cells what format does it show as being used?
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> >I tried all 3 suggestions, but they didn't work.
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> Hi!
    > >> >>
    > >> >> See this:
    > >> >>
    > >> >> http://tinyurl.com/aml9c
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> >I am tracking dates of service and I need to be able to see if dates
    > >> >> >fall
    > >> >> > within a certain time frame.
    > >> >> > column F Column H
    > >> >> > row 1 (date 1) (date 2)
    > >> >> >
    > >> >> >
    > >> >> > column H column J column L
    > >> >> > (Client 1) date date date
    > >> >> >
    > >> >> > I want to see if any of the clients dates fall between date 1 and
    > >> >> > date
    > >> >> > 2.
    > >> >> > If any fall between these dates then count as 1 or true. If the
    > >> >> > dates
    > >> >> > are
    > >> >> > before date 1 or after date 2, then I don't want to count them at
    > >> >> > all.
    > >> >> > The
    > >> >> > problem is if I use > date 1 and < date 2 then it counts everything
    > >> >> > before
    > >> >> > date 1 as well. Please help me.
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  26. #26
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Hi!

    >The only cell which would count is L5. H5 is too long ago, and J5 is not
    >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    >counts H5.


    OK, that's where you're not understanding how the formula works. The dates
    have to meet both of those conditions to be counted. The date has to be >=F1
    AND <=H1.

    F1 = 8/27/2004
    H1 = 11/26/2004

    H5 = 6/17/2004 is NOT >F1 but IS <H1

    So this is how it gets evaluated:

    FALSE * TRUE = 0 (not counted)

    And the formula does the same thing for the other dates so that you have an
    array that looks like this:

    H5 = 6/17/2004 = FALSE * TRUE = 0
    J5 = 1/11/2005 = TRUE * FALSE = 0
    L5 = 10/18/2004 = TRUE * TRUE = 1

    So, the only date counted is in L5.

    This formula is a little more robust in that it accounts for empty cells:

    =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > The dates in F1 and H1 are a 2 month span.
    > F1 =TODAY()-365 H1 =TODAY()-305.
    >
    > H5 is 6/17/04
    > J5 is 1/11/05
    > L5 is 10/18/04
    > The only cell which would count is L5. H5 is too long ago, and J5 is not
    > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > counts H5. I need it to count only the dates which fall in between F1 and
    > H1. I don't know how to combine the equation to make it fit Both criteria
    > at
    > the same time. How DO you learn all this stuff?
    >
    >
    > "Biff" wrote:
    >
    >> OK, maybe if you give some examples of what to count and when...
    >>
    >> For example....
    >>
    >> F1 = 1/1/2005
    >> H1 = 1/2/2005
    >>
    >> H5 = 1/1/2005
    >> J5 = 1/10/2005
    >> L5 = blank (empty cell)
    >>
    >> What result would you expect from that example? Based on my understanding
    >> of
    >> what you want I would think the result should be 1. Also, you didn't
    >> really
    >> say whether you actually meant >= and <= the dates in F1 and H1. You said
    >> "within" and a literal reading of that would exclude both of the dates in
    >> my
    >> example.
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > It is a date cell. It says Type : date
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> Are you sure that the dates are true Excel dates?
    >> >>
    >> >> True Excel dates are really numbers with a special format.
    >> >>
    >> >> Check the formats for your date cells. If you select a date cell then
    >> >> right
    >> >> click and choose Format Cells what format does it show as being used?
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> >I tried all 3 suggestions, but they didn't work.
    >> >> >
    >> >> > "Biff" wrote:
    >> >> >
    >> >> >> Hi!
    >> >> >>
    >> >> >> See this:
    >> >> >>
    >> >> >> http://tinyurl.com/aml9c
    >> >> >>
    >> >> >> Biff
    >> >> >>
    >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> news:[email protected]...
    >> >> >> >I am tracking dates of service and I need to be able to see if
    >> >> >> >dates
    >> >> >> >fall
    >> >> >> > within a certain time frame.
    >> >> >> > column F Column H
    >> >> >> > row 1 (date 1) (date 2)
    >> >> >> >
    >> >> >> >
    >> >> >> > column H column J column L
    >> >> >> > (Client 1) date date date
    >> >> >> >
    >> >> >> > I want to see if any of the clients dates fall between date 1 and
    >> >> >> > date
    >> >> >> > 2.
    >> >> >> > If any fall between these dates then count as 1 or true. If the
    >> >> >> > dates
    >> >> >> > are
    >> >> >> > before date 1 or after date 2, then I don't want to count them at
    >> >> >> > all.
    >> >> >> > The
    >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    >> >> >> > everything
    >> >> >> > before
    >> >> >> > date 1 as well. Please help me.
    >> >> >>
    >> >> >>
    >> >> >>
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  27. #27
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Biff, it still counts dates prior to F1.

    "Biff" wrote:

    > Hi!
    >
    > >The only cell which would count is L5. H5 is too long ago, and J5 is not
    > >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > >counts H5.

    >
    > OK, that's where you're not understanding how the formula works. The dates
    > have to meet both of those conditions to be counted. The date has to be >=F1
    > AND <=H1.
    >
    > F1 = 8/27/2004
    > H1 = 11/26/2004
    >
    > H5 = 6/17/2004 is NOT >F1 but IS <H1
    >
    > So this is how it gets evaluated:
    >
    > FALSE * TRUE = 0 (not counted)
    >
    > And the formula does the same thing for the other dates so that you have an
    > array that looks like this:
    >
    > H5 = 6/17/2004 = FALSE * TRUE = 0
    > J5 = 1/11/2005 = TRUE * FALSE = 0
    > L5 = 10/18/2004 = TRUE * TRUE = 1
    >
    > So, the only date counted is in L5.
    >
    > This formula is a little more robust in that it accounts for empty cells:
    >
    > =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > The dates in F1 and H1 are a 2 month span.
    > > F1 =TODAY()-365 H1 =TODAY()-305.
    > >
    > > H5 is 6/17/04
    > > J5 is 1/11/05
    > > L5 is 10/18/04
    > > The only cell which would count is L5. H5 is too long ago, and J5 is not
    > > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > > counts H5. I need it to count only the dates which fall in between F1 and
    > > H1. I don't know how to combine the equation to make it fit Both criteria
    > > at
    > > the same time. How DO you learn all this stuff?
    > >
    > >
    > > "Biff" wrote:
    > >
    > >> OK, maybe if you give some examples of what to count and when...
    > >>
    > >> For example....
    > >>
    > >> F1 = 1/1/2005
    > >> H1 = 1/2/2005
    > >>
    > >> H5 = 1/1/2005
    > >> J5 = 1/10/2005
    > >> L5 = blank (empty cell)
    > >>
    > >> What result would you expect from that example? Based on my understanding
    > >> of
    > >> what you want I would think the result should be 1. Also, you didn't
    > >> really
    > >> say whether you actually meant >= and <= the dates in F1 and H1. You said
    > >> "within" and a literal reading of that would exclude both of the dates in
    > >> my
    > >> example.
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > It is a date cell. It says Type : date
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> Are you sure that the dates are true Excel dates?
    > >> >>
    > >> >> True Excel dates are really numbers with a special format.
    > >> >>
    > >> >> Check the formats for your date cells. If you select a date cell then
    > >> >> right
    > >> >> click and choose Format Cells what format does it show as being used?
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> >I tried all 3 suggestions, but they didn't work.
    > >> >> >
    > >> >> > "Biff" wrote:
    > >> >> >
    > >> >> >> Hi!
    > >> >> >>
    > >> >> >> See this:
    > >> >> >>
    > >> >> >> http://tinyurl.com/aml9c
    > >> >> >>
    > >> >> >> Biff
    > >> >> >>
    > >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> news:[email protected]...
    > >> >> >> >I am tracking dates of service and I need to be able to see if
    > >> >> >> >dates
    > >> >> >> >fall
    > >> >> >> > within a certain time frame.
    > >> >> >> > column F Column H
    > >> >> >> > row 1 (date 1) (date 2)
    > >> >> >> >
    > >> >> >> >
    > >> >> >> > column H column J column L
    > >> >> >> > (Client 1) date date date
    > >> >> >> >
    > >> >> >> > I want to see if any of the clients dates fall between date 1 and
    > >> >> >> > date
    > >> >> >> > 2.
    > >> >> >> > If any fall between these dates then count as 1 or true. If the
    > >> >> >> > dates
    > >> >> >> > are
    > >> >> >> > before date 1 or after date 2, then I don't want to count them at
    > >> >> >> > all.
    > >> >> >> > The
    > >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > >> >> >> > everything
    > >> >> >> > before
    > >> >> >> > date 1 as well. Please help me.
    > >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  28. #28
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Can you send me a copy of the file? If so, let me know how to contact you.

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > Biff, it still counts dates prior to F1.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    >> >not
    >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    >> >counts H5.

    >>
    >> OK, that's where you're not understanding how the formula works. The
    >> dates
    >> have to meet both of those conditions to be counted. The date has to be
    >> >=F1

    >> AND <=H1.
    >>
    >> F1 = 8/27/2004
    >> H1 = 11/26/2004
    >>
    >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    >>
    >> So this is how it gets evaluated:
    >>
    >> FALSE * TRUE = 0 (not counted)
    >>
    >> And the formula does the same thing for the other dates so that you have
    >> an
    >> array that looks like this:
    >>
    >> H5 = 6/17/2004 = FALSE * TRUE = 0
    >> J5 = 1/11/2005 = TRUE * FALSE = 0
    >> L5 = 10/18/2004 = TRUE * TRUE = 1
    >>
    >> So, the only date counted is in L5.
    >>
    >> This formula is a little more robust in that it accounts for empty cells:
    >>
    >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > The dates in F1 and H1 are a 2 month span.
    >> > F1 =TODAY()-365 H1 =TODAY()-305.
    >> >
    >> > H5 is 6/17/04
    >> > J5 is 1/11/05
    >> > L5 is 10/18/04
    >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    >> > not
    >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    >> > it
    >> > counts H5. I need it to count only the dates which fall in between F1
    >> > and
    >> > H1. I don't know how to combine the equation to make it fit Both
    >> > criteria
    >> > at
    >> > the same time. How DO you learn all this stuff?
    >> >
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> OK, maybe if you give some examples of what to count and when...
    >> >>
    >> >> For example....
    >> >>
    >> >> F1 = 1/1/2005
    >> >> H1 = 1/2/2005
    >> >>
    >> >> H5 = 1/1/2005
    >> >> J5 = 1/10/2005
    >> >> L5 = blank (empty cell)
    >> >>
    >> >> What result would you expect from that example? Based on my
    >> >> understanding
    >> >> of
    >> >> what you want I would think the result should be 1. Also, you didn't
    >> >> really
    >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    >> >> said
    >> >> "within" and a literal reading of that would exclude both of the dates
    >> >> in
    >> >> my
    >> >> example.
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> > It is a date cell. It says Type : date
    >> >> >
    >> >> > "Biff" wrote:
    >> >> >
    >> >> >> Are you sure that the dates are true Excel dates?
    >> >> >>
    >> >> >> True Excel dates are really numbers with a special format.
    >> >> >>
    >> >> >> Check the formats for your date cells. If you select a date cell
    >> >> >> then
    >> >> >> right
    >> >> >> click and choose Format Cells what format does it show as being
    >> >> >> used?
    >> >> >>
    >> >> >> Biff
    >> >> >>
    >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> news:[email protected]...
    >> >> >> >I tried all 3 suggestions, but they didn't work.
    >> >> >> >
    >> >> >> > "Biff" wrote:
    >> >> >> >
    >> >> >> >> Hi!
    >> >> >> >>
    >> >> >> >> See this:
    >> >> >> >>
    >> >> >> >> http://tinyurl.com/aml9c
    >> >> >> >>
    >> >> >> >> Biff
    >> >> >> >>
    >> >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> >> news:[email protected]...
    >> >> >> >> >I am tracking dates of service and I need to be able to see if
    >> >> >> >> >dates
    >> >> >> >> >fall
    >> >> >> >> > within a certain time frame.
    >> >> >> >> > column F Column H
    >> >> >> >> > row 1 (date 1) (date 2)
    >> >> >> >> >
    >> >> >> >> >
    >> >> >> >> > column H column J column L
    >> >> >> >> > (Client 1) date date date
    >> >> >> >> >
    >> >> >> >> > I want to see if any of the clients dates fall between date 1
    >> >> >> >> > and
    >> >> >> >> > date
    >> >> >> >> > 2.
    >> >> >> >> > If any fall between these dates then count as 1 or true. If
    >> >> >> >> > the
    >> >> >> >> > dates
    >> >> >> >> > are
    >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    >> >> >> >> > at
    >> >> >> >> > all.
    >> >> >> >> > The
    >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    >> >> >> >> > everything
    >> >> >> >> > before
    >> >> >> >> > date 1 as well. Please help me.
    >> >> >> >>
    >> >> >> >>
    >> >> >> >>
    >> >> >>
    >> >> >>
    >> >> >>
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  29. #29
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    e-mail - see my profile

    "Biff" wrote:

    > Can you send me a copy of the file? If so, let me know how to contact you.
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > Biff, it still counts dates prior to F1.
    > >
    > > "Biff" wrote:
    > >
    > >> Hi!
    > >>
    > >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    > >> >not
    > >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > >> >counts H5.
    > >>
    > >> OK, that's where you're not understanding how the formula works. The
    > >> dates
    > >> have to meet both of those conditions to be counted. The date has to be
    > >> >=F1
    > >> AND <=H1.
    > >>
    > >> F1 = 8/27/2004
    > >> H1 = 11/26/2004
    > >>
    > >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    > >>
    > >> So this is how it gets evaluated:
    > >>
    > >> FALSE * TRUE = 0 (not counted)
    > >>
    > >> And the formula does the same thing for the other dates so that you have
    > >> an
    > >> array that looks like this:
    > >>
    > >> H5 = 6/17/2004 = FALSE * TRUE = 0
    > >> J5 = 1/11/2005 = TRUE * FALSE = 0
    > >> L5 = 10/18/2004 = TRUE * TRUE = 1
    > >>
    > >> So, the only date counted is in L5.
    > >>
    > >> This formula is a little more robust in that it accounts for empty cells:
    > >>
    > >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > The dates in F1 and H1 are a 2 month span.
    > >> > F1 =TODAY()-365 H1 =TODAY()-305.
    > >> >
    > >> > H5 is 6/17/04
    > >> > J5 is 1/11/05
    > >> > L5 is 10/18/04
    > >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    > >> > not
    > >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    > >> > it
    > >> > counts H5. I need it to count only the dates which fall in between F1
    > >> > and
    > >> > H1. I don't know how to combine the equation to make it fit Both
    > >> > criteria
    > >> > at
    > >> > the same time. How DO you learn all this stuff?
    > >> >
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> OK, maybe if you give some examples of what to count and when...
    > >> >>
    > >> >> For example....
    > >> >>
    > >> >> F1 = 1/1/2005
    > >> >> H1 = 1/2/2005
    > >> >>
    > >> >> H5 = 1/1/2005
    > >> >> J5 = 1/10/2005
    > >> >> L5 = blank (empty cell)
    > >> >>
    > >> >> What result would you expect from that example? Based on my
    > >> >> understanding
    > >> >> of
    > >> >> what you want I would think the result should be 1. Also, you didn't
    > >> >> really
    > >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    > >> >> said
    > >> >> "within" and a literal reading of that would exclude both of the dates
    > >> >> in
    > >> >> my
    > >> >> example.
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> > It is a date cell. It says Type : date
    > >> >> >
    > >> >> > "Biff" wrote:
    > >> >> >
    > >> >> >> Are you sure that the dates are true Excel dates?
    > >> >> >>
    > >> >> >> True Excel dates are really numbers with a special format.
    > >> >> >>
    > >> >> >> Check the formats for your date cells. If you select a date cell
    > >> >> >> then
    > >> >> >> right
    > >> >> >> click and choose Format Cells what format does it show as being
    > >> >> >> used?
    > >> >> >>
    > >> >> >> Biff
    > >> >> >>
    > >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> news:[email protected]...
    > >> >> >> >I tried all 3 suggestions, but they didn't work.
    > >> >> >> >
    > >> >> >> > "Biff" wrote:
    > >> >> >> >
    > >> >> >> >> Hi!
    > >> >> >> >>
    > >> >> >> >> See this:
    > >> >> >> >>
    > >> >> >> >> http://tinyurl.com/aml9c
    > >> >> >> >>
    > >> >> >> >> Biff
    > >> >> >> >>
    > >> >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> >> news:[email protected]...
    > >> >> >> >> >I am tracking dates of service and I need to be able to see if
    > >> >> >> >> >dates
    > >> >> >> >> >fall
    > >> >> >> >> > within a certain time frame.
    > >> >> >> >> > column F Column H
    > >> >> >> >> > row 1 (date 1) (date 2)
    > >> >> >> >> >
    > >> >> >> >> >
    > >> >> >> >> > column H column J column L
    > >> >> >> >> > (Client 1) date date date
    > >> >> >> >> >
    > >> >> >> >> > I want to see if any of the clients dates fall between date 1
    > >> >> >> >> > and
    > >> >> >> >> > date
    > >> >> >> >> > 2.
    > >> >> >> >> > If any fall between these dates then count as 1 or true. If
    > >> >> >> >> > the
    > >> >> >> >> > dates
    > >> >> >> >> > are
    > >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    > >> >> >> >> > at
    > >> >> >> >> > all.
    > >> >> >> >> > The
    > >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > >> >> >> >> > everything
    > >> >> >> >> > before
    > >> >> >> >> > date 1 as well. Please help me.
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  30. #30
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?


    [display name][email protected]


    > > Can you send me a copy of the file? If so, let me know how to contact you.
    > >
    > > Biff
    > >
    > > "Pe66les" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > Biff, it still counts dates prior to F1.
    > > >
    > > > "Biff" wrote:
    > > >
    > > >> Hi!
    > > >>
    > > >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    > > >> >not
    > > >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > > >> >counts H5.
    > > >>
    > > >> OK, that's where you're not understanding how the formula works. The
    > > >> dates
    > > >> have to meet both of those conditions to be counted. The date has to be
    > > >> >=F1
    > > >> AND <=H1.
    > > >>
    > > >> F1 = 8/27/2004
    > > >> H1 = 11/26/2004
    > > >>
    > > >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    > > >>
    > > >> So this is how it gets evaluated:
    > > >>
    > > >> FALSE * TRUE = 0 (not counted)
    > > >>
    > > >> And the formula does the same thing for the other dates so that you have
    > > >> an
    > > >> array that looks like this:
    > > >>
    > > >> H5 = 6/17/2004 = FALSE * TRUE = 0
    > > >> J5 = 1/11/2005 = TRUE * FALSE = 0
    > > >> L5 = 10/18/2004 = TRUE * TRUE = 1
    > > >>
    > > >> So, the only date counted is in L5.
    > > >>
    > > >> This formula is a little more robust in that it accounts for empty cells:
    > > >>
    > > >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    > > >>
    > > >> Biff
    > > >>
    > > >> "Pe66les" <[email protected]> wrote in message
    > > >> news:[email protected]...
    > > >> > The dates in F1 and H1 are a 2 month span.
    > > >> > F1 =TODAY()-365 H1 =TODAY()-305.
    > > >> >
    > > >> > H5 is 6/17/04
    > > >> > J5 is 1/11/05
    > > >> > L5 is 10/18/04
    > > >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    > > >> > not
    > > >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    > > >> > it
    > > >> > counts H5. I need it to count only the dates which fall in between F1
    > > >> > and
    > > >> > H1. I don't know how to combine the equation to make it fit Both
    > > >> > criteria
    > > >> > at
    > > >> > the same time. How DO you learn all this stuff?
    > > >> >
    > > >> >
    > > >> > "Biff" wrote:
    > > >> >
    > > >> >> OK, maybe if you give some examples of what to count and when...
    > > >> >>
    > > >> >> For example....
    > > >> >>
    > > >> >> F1 = 1/1/2005
    > > >> >> H1 = 1/2/2005
    > > >> >>
    > > >> >> H5 = 1/1/2005
    > > >> >> J5 = 1/10/2005
    > > >> >> L5 = blank (empty cell)
    > > >> >>
    > > >> >> What result would you expect from that example? Based on my
    > > >> >> understanding
    > > >> >> of
    > > >> >> what you want I would think the result should be 1. Also, you didn't
    > > >> >> really
    > > >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    > > >> >> said
    > > >> >> "within" and a literal reading of that would exclude both of the dates
    > > >> >> in
    > > >> >> my
    > > >> >> example.
    > > >> >>
    > > >> >> Biff
    > > >> >>
    > > >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> news:[email protected]...
    > > >> >> > It is a date cell. It says Type : date
    > > >> >> >
    > > >> >> > "Biff" wrote:
    > > >> >> >
    > > >> >> >> Are you sure that the dates are true Excel dates?
    > > >> >> >>
    > > >> >> >> True Excel dates are really numbers with a special format.
    > > >> >> >>
    > > >> >> >> Check the formats for your date cells. If you select a date cell
    > > >> >> >> then
    > > >> >> >> right
    > > >> >> >> click and choose Format Cells what format does it show as being
    > > >> >> >> used?
    > > >> >> >>
    > > >> >> >> Biff
    > > >> >> >>
    > > >> >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> >> news:[email protected]...
    > > >> >> >> >I tried all 3 suggestions, but they didn't work.
    > > >> >> >> >
    > > >> >> >> > "Biff" wrote:
    > > >> >> >> >
    > > >> >> >> >> Hi!
    > > >> >> >> >>
    > > >> >> >> >> See this:
    > > >> >> >> >>
    > > >> >> >> >> http://tinyurl.com/aml9c
    > > >> >> >> >>
    > > >> >> >> >> Biff
    > > >> >> >> >>
    > > >> >> >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> >> >> news:[email protected]...
    > > >> >> >> >> >I am tracking dates of service and I need to be able to see if
    > > >> >> >> >> >dates
    > > >> >> >> >> >fall
    > > >> >> >> >> > within a certain time frame.
    > > >> >> >> >> > column F Column H
    > > >> >> >> >> > row 1 (date 1) (date 2)
    > > >> >> >> >> >
    > > >> >> >> >> >
    > > >> >> >> >> > column H column J column L
    > > >> >> >> >> > (Client 1) date date date
    > > >> >> >> >> >
    > > >> >> >> >> > I want to see if any of the clients dates fall between date 1
    > > >> >> >> >> > and
    > > >> >> >> >> > date
    > > >> >> >> >> > 2.
    > > >> >> >> >> > If any fall between these dates then count as 1 or true. If
    > > >> >> >> >> > the
    > > >> >> >> >> > dates
    > > >> >> >> >> > are
    > > >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    > > >> >> >> >> > at
    > > >> >> >> >> > all.
    > > >> >> >> >> > The
    > > >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > > >> >> >> >> > everything
    > > >> >> >> >> > before
    > > >> >> >> >> > date 1 as well. Please help me.
    > > >> >> >> >>
    > > >> >> >> >>
    > > >> >> >> >>
    > > >> >> >>
    > > >> >> >>
    > > >> >> >>
    > > >> >>
    > > >> >>
    > > >> >>
    > > >>
    > > >>
    > > >>

    > >
    > >
    > >


  31. #31
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    <[email protected]> wrote:

    >I am tracking dates of service and I need to be able to see if dates fall
    >within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    >(Client 1) date date date
    >
    >I want to see if any of the clients dates fall between date 1 and date 2.
    >If any fall between these dates then count as 1 or true. If the dates are
    >before date 1 or after date 2, then I don't want to count them at all. The
    >problem is if I use > date 1 and < date 2 then it counts everything before
    >date 1 as well. Please help me.



    With the range of dates that you are checking named "rng" (you can substitute a
    cell reference for this):

    =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))

    date1 and date2 may be cell references also.


    --ron

  32. #32
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    With the range of dates that you are checking named "rng" ----How do I do this?

    "Ron Rosenfeld" wrote:

    > On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    > >I am tracking dates of service and I need to be able to see if dates fall
    > >within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > >(Client 1) date date date
    > >
    > >I want to see if any of the clients dates fall between date 1 and date 2.
    > >If any fall between these dates then count as 1 or true. If the dates are
    > >before date 1 or after date 2, then I don't want to count them at all. The
    > >problem is if I use > date 1 and < date 2 then it counts everything before
    > >date 1 as well. Please help me.

    >
    >
    > With the range of dates that you are checking named "rng" (you can substitute a
    > cell reference for this):
    >
    > =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))
    >
    > date1 and date2 may be cell references also.
    >
    >
    > --ron
    >


  33. #33
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    I tried your suggestion but it is still counting 1 when it should be 0,
    This is what I typed:
    =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))
    What am I doing wrong?


    "Ron Rosenfeld" wrote:

    > On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    > >I am tracking dates of service and I need to be able to see if dates fall
    > >within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > >(Client 1) date date date
    > >
    > >I want to see if any of the clients dates fall between date 1 and date 2.
    > >If any fall between these dates then count as 1 or true. If the dates are
    > >before date 1 or after date 2, then I don't want to count them at all. The
    > >problem is if I use > date 1 and < date 2 then it counts everything before
    > >date 1 as well. Please help me.

    >
    >
    > With the range of dates that you are checking named "rng" (you can substitute a
    > cell reference for this):
    >
    > =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))
    >
    > date1 and date2 may be cell references also.
    >
    >
    > --ron
    >


  34. #34
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Sat, 27 Aug 2005 01:33:01 -0700, "Pe66les"
    <[email protected]> wrote:

    >I tried your suggestion but it is still counting 1 when it should be 0,
    >This is what I typed:
    >=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))



    >What am I doing wrong?
    >


    Uh, you are NOT using the equation I posted. You have the comparison operator
    incorrect in your second COUNTIF function.

    Assuming F1 contains your earlier date, and H1 contains your later date.

    Change yours to:

    =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))


    --ron

  35. #35
    Pe66les
    Guest

    RE: How do I calculate if a date is in a certain time frame?

    WOOOHOOOO!!!!! I did it!!!! I used:
    =3-COUNTIF(H5:L5,">="&$H$1)-COUNTIF(H5:L5,"<="&$F$1)
    It worked!!!!! Thank You so much for helping me figure out what I needed
    to do!!!

    "Pe66les" wrote:

    > I am tracking dates of service and I need to be able to see if dates fall
    > within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    > (Client 1) date date date
    >
    > I want to see if any of the clients dates fall between date 1 and date 2.
    > If any fall between these dates then count as 1 or true. If the dates are
    > before date 1 or after date 2, then I don't want to count them at all. The
    > problem is if I use > date 1 and < date 2 then it counts everything before
    > date 1 as well. Please help me.


  36. #36
    Pe66les
    Guest

    RE: How do I calculate if a date is in a certain time frame?

    OK, You get A Double WOOOOOHOOOO!!!!! I corrected my mistake and your
    equation is much better than mine. Thank you!!!! Thank you!!! Thank you!!!

    "Pe66les" wrote:

    > WOOOHOOOO!!!!! I did it!!!! I used:
    > =3-COUNTIF(H5:L5,">="&$H$1)-COUNTIF(H5:L5,"<="&$F$1)
    > It worked!!!!! Thank You so much for helping me figure out what I needed
    > to do!!!
    >
    > "Pe66les" wrote:
    >
    > > I am tracking dates of service and I need to be able to see if dates fall
    > > within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > > (Client 1) date date date
    > >
    > > I want to see if any of the clients dates fall between date 1 and date 2.
    > > If any fall between these dates then count as 1 or true. If the dates are
    > > before date 1 or after date 2, then I don't want to count them at all. The
    > > problem is if I use > date 1 and < date 2 then it counts everything before
    > > date 1 as well. Please help me.


  37. #37
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    >=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))

    Hmmm...

    If that works then so should:

    =IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0)

    I was accounting for the non-contiguous range and the possibilty of other
    numeric data within the range, but even if you leave that out:

    =IF(SUMPRODUCT(--(H5:L5>=F1),--(H5:L5<=H1)),1,0)

    That should also work.

    I don't get it!

    Biff

    "Ron Rosenfeld" <[email protected]> wrote in message
    news:[email protected]...
    > On Sat, 27 Aug 2005 01:33:01 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    >>I tried your suggestion but it is still counting 1 when it should be 0,
    >>This is what I typed:
    >>=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))

    >
    >
    >>What am I doing wrong?
    >>

    >
    > Uh, you are NOT using the equation I posted. You have the comparison
    > operator
    > incorrect in your second COUNTIF function.
    >
    > Assuming F1 contains your earlier date, and H1 contains your later date.
    >
    > Change yours to:
    >
    > =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))
    >
    >
    > --ron




  38. #38
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Sat, 27 Aug 2005 14:48:41 -0400, "Biff" <[email protected]> wrote:

    >>=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))

    >
    >Hmmm...
    >
    >If that works then so should:
    >
    >=IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0)
    >
    >I was accounting for the non-contiguous range and the possibilty of other
    >numeric data within the range, but even if you leave that out:
    >
    >=IF(SUMPRODUCT(--(H5:L5>=F1),--(H5:L5<=H1)),1,0)
    >
    >That should also work.
    >
    >I don't get it!


    When Pe66les posted the variation of *my* formula that he actually tried, it
    was incorrect. Perhaps the same thing was going on with the translation of
    yours.


    --ron

  39. #39
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Hi!

    See this:

    http://tinyurl.com/aml9c

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    >I am tracking dates of service and I need to be able to see if dates fall
    > within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    > (Client 1) date date date
    >
    > I want to see if any of the clients dates fall between date 1 and date 2.
    > If any fall between these dates then count as 1 or true. If the dates are
    > before date 1 or after date 2, then I don't want to count them at all.
    > The
    > problem is if I use > date 1 and < date 2 then it counts everything before
    > date 1 as well. Please help me.




  40. #40
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    I tried all 3 suggestions, but they didn't work.

    "Biff" wrote:

    > Hi!
    >
    > See this:
    >
    > http://tinyurl.com/aml9c
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > >I am tracking dates of service and I need to be able to see if dates fall
    > > within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > > (Client 1) date date date
    > >
    > > I want to see if any of the clients dates fall between date 1 and date 2.
    > > If any fall between these dates then count as 1 or true. If the dates are
    > > before date 1 or after date 2, then I don't want to count them at all.
    > > The
    > > problem is if I use > date 1 and < date 2 then it counts everything before
    > > date 1 as well. Please help me.

    >
    >
    >


  41. #41
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Are you sure that the dates are true Excel dates?

    True Excel dates are really numbers with a special format.

    Check the formats for your date cells. If you select a date cell then right
    click and choose Format Cells what format does it show as being used?

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    >I tried all 3 suggestions, but they didn't work.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> See this:
    >>
    >> http://tinyurl.com/aml9c
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I am tracking dates of service and I need to be able to see if dates
    >> >fall
    >> > within a certain time frame.
    >> > column F Column H
    >> > row 1 (date 1) (date 2)
    >> >
    >> >
    >> > column H column J column L
    >> > (Client 1) date date date
    >> >
    >> > I want to see if any of the clients dates fall between date 1 and date
    >> > 2.
    >> > If any fall between these dates then count as 1 or true. If the dates
    >> > are
    >> > before date 1 or after date 2, then I don't want to count them at all.
    >> > The
    >> > problem is if I use > date 1 and < date 2 then it counts everything
    >> > before
    >> > date 1 as well. Please help me.

    >>
    >>
    >>




  42. #42
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    It is a date cell. It says Type : date

    "Biff" wrote:

    > Are you sure that the dates are true Excel dates?
    >
    > True Excel dates are really numbers with a special format.
    >
    > Check the formats for your date cells. If you select a date cell then right
    > click and choose Format Cells what format does it show as being used?
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > >I tried all 3 suggestions, but they didn't work.
    > >
    > > "Biff" wrote:
    > >
    > >> Hi!
    > >>
    > >> See this:
    > >>
    > >> http://tinyurl.com/aml9c
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> >I am tracking dates of service and I need to be able to see if dates
    > >> >fall
    > >> > within a certain time frame.
    > >> > column F Column H
    > >> > row 1 (date 1) (date 2)
    > >> >
    > >> >
    > >> > column H column J column L
    > >> > (Client 1) date date date
    > >> >
    > >> > I want to see if any of the clients dates fall between date 1 and date
    > >> > 2.
    > >> > If any fall between these dates then count as 1 or true. If the dates
    > >> > are
    > >> > before date 1 or after date 2, then I don't want to count them at all.
    > >> > The
    > >> > problem is if I use > date 1 and < date 2 then it counts everything
    > >> > before
    > >> > date 1 as well. Please help me.
    > >>
    > >>
    > >>

    >
    >
    >


  43. #43
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    OK, maybe if you give some examples of what to count and when...

    For example....

    F1 = 1/1/2005
    H1 = 1/2/2005

    H5 = 1/1/2005
    J5 = 1/10/2005
    L5 = blank (empty cell)

    What result would you expect from that example? Based on my understanding of
    what you want I would think the result should be 1. Also, you didn't really
    say whether you actually meant >= and <= the dates in F1 and H1. You said
    "within" and a literal reading of that would exclude both of the dates in my
    example.

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > It is a date cell. It says Type : date
    >
    > "Biff" wrote:
    >
    >> Are you sure that the dates are true Excel dates?
    >>
    >> True Excel dates are really numbers with a special format.
    >>
    >> Check the formats for your date cells. If you select a date cell then
    >> right
    >> click and choose Format Cells what format does it show as being used?
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I tried all 3 suggestions, but they didn't work.
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> Hi!
    >> >>
    >> >> See this:
    >> >>
    >> >> http://tinyurl.com/aml9c
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> >I am tracking dates of service and I need to be able to see if dates
    >> >> >fall
    >> >> > within a certain time frame.
    >> >> > column F Column H
    >> >> > row 1 (date 1) (date 2)
    >> >> >
    >> >> >
    >> >> > column H column J column L
    >> >> > (Client 1) date date date
    >> >> >
    >> >> > I want to see if any of the clients dates fall between date 1 and
    >> >> > date
    >> >> > 2.
    >> >> > If any fall between these dates then count as 1 or true. If the
    >> >> > dates
    >> >> > are
    >> >> > before date 1 or after date 2, then I don't want to count them at
    >> >> > all.
    >> >> > The
    >> >> > problem is if I use > date 1 and < date 2 then it counts everything
    >> >> > before
    >> >> > date 1 as well. Please help me.
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  44. #44
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    The dates in F1 and H1 are a 2 month span.
    F1 =TODAY()-365 H1 =TODAY()-305.

    H5 is 6/17/04
    J5 is 1/11/05
    L5 is 10/18/04
    The only cell which would count is L5. H5 is too long ago, and J5 is not
    long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    counts H5. I need it to count only the dates which fall in between F1 and
    H1. I don't know how to combine the equation to make it fit Both criteria at
    the same time. How DO you learn all this stuff?


    "Biff" wrote:

    > OK, maybe if you give some examples of what to count and when...
    >
    > For example....
    >
    > F1 = 1/1/2005
    > H1 = 1/2/2005
    >
    > H5 = 1/1/2005
    > J5 = 1/10/2005
    > L5 = blank (empty cell)
    >
    > What result would you expect from that example? Based on my understanding of
    > what you want I would think the result should be 1. Also, you didn't really
    > say whether you actually meant >= and <= the dates in F1 and H1. You said
    > "within" and a literal reading of that would exclude both of the dates in my
    > example.
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > It is a date cell. It says Type : date
    > >
    > > "Biff" wrote:
    > >
    > >> Are you sure that the dates are true Excel dates?
    > >>
    > >> True Excel dates are really numbers with a special format.
    > >>
    > >> Check the formats for your date cells. If you select a date cell then
    > >> right
    > >> click and choose Format Cells what format does it show as being used?
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> >I tried all 3 suggestions, but they didn't work.
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> Hi!
    > >> >>
    > >> >> See this:
    > >> >>
    > >> >> http://tinyurl.com/aml9c
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> >I am tracking dates of service and I need to be able to see if dates
    > >> >> >fall
    > >> >> > within a certain time frame.
    > >> >> > column F Column H
    > >> >> > row 1 (date 1) (date 2)
    > >> >> >
    > >> >> >
    > >> >> > column H column J column L
    > >> >> > (Client 1) date date date
    > >> >> >
    > >> >> > I want to see if any of the clients dates fall between date 1 and
    > >> >> > date
    > >> >> > 2.
    > >> >> > If any fall between these dates then count as 1 or true. If the
    > >> >> > dates
    > >> >> > are
    > >> >> > before date 1 or after date 2, then I don't want to count them at
    > >> >> > all.
    > >> >> > The
    > >> >> > problem is if I use > date 1 and < date 2 then it counts everything
    > >> >> > before
    > >> >> > date 1 as well. Please help me.
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  45. #45
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Hi!

    >The only cell which would count is L5. H5 is too long ago, and J5 is not
    >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    >counts H5.


    OK, that's where you're not understanding how the formula works. The dates
    have to meet both of those conditions to be counted. The date has to be >=F1
    AND <=H1.

    F1 = 8/27/2004
    H1 = 11/26/2004

    H5 = 6/17/2004 is NOT >F1 but IS <H1

    So this is how it gets evaluated:

    FALSE * TRUE = 0 (not counted)

    And the formula does the same thing for the other dates so that you have an
    array that looks like this:

    H5 = 6/17/2004 = FALSE * TRUE = 0
    J5 = 1/11/2005 = TRUE * FALSE = 0
    L5 = 10/18/2004 = TRUE * TRUE = 1

    So, the only date counted is in L5.

    This formula is a little more robust in that it accounts for empty cells:

    =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > The dates in F1 and H1 are a 2 month span.
    > F1 =TODAY()-365 H1 =TODAY()-305.
    >
    > H5 is 6/17/04
    > J5 is 1/11/05
    > L5 is 10/18/04
    > The only cell which would count is L5. H5 is too long ago, and J5 is not
    > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > counts H5. I need it to count only the dates which fall in between F1 and
    > H1. I don't know how to combine the equation to make it fit Both criteria
    > at
    > the same time. How DO you learn all this stuff?
    >
    >
    > "Biff" wrote:
    >
    >> OK, maybe if you give some examples of what to count and when...
    >>
    >> For example....
    >>
    >> F1 = 1/1/2005
    >> H1 = 1/2/2005
    >>
    >> H5 = 1/1/2005
    >> J5 = 1/10/2005
    >> L5 = blank (empty cell)
    >>
    >> What result would you expect from that example? Based on my understanding
    >> of
    >> what you want I would think the result should be 1. Also, you didn't
    >> really
    >> say whether you actually meant >= and <= the dates in F1 and H1. You said
    >> "within" and a literal reading of that would exclude both of the dates in
    >> my
    >> example.
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > It is a date cell. It says Type : date
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> Are you sure that the dates are true Excel dates?
    >> >>
    >> >> True Excel dates are really numbers with a special format.
    >> >>
    >> >> Check the formats for your date cells. If you select a date cell then
    >> >> right
    >> >> click and choose Format Cells what format does it show as being used?
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> >I tried all 3 suggestions, but they didn't work.
    >> >> >
    >> >> > "Biff" wrote:
    >> >> >
    >> >> >> Hi!
    >> >> >>
    >> >> >> See this:
    >> >> >>
    >> >> >> http://tinyurl.com/aml9c
    >> >> >>
    >> >> >> Biff
    >> >> >>
    >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> news:[email protected]...
    >> >> >> >I am tracking dates of service and I need to be able to see if
    >> >> >> >dates
    >> >> >> >fall
    >> >> >> > within a certain time frame.
    >> >> >> > column F Column H
    >> >> >> > row 1 (date 1) (date 2)
    >> >> >> >
    >> >> >> >
    >> >> >> > column H column J column L
    >> >> >> > (Client 1) date date date
    >> >> >> >
    >> >> >> > I want to see if any of the clients dates fall between date 1 and
    >> >> >> > date
    >> >> >> > 2.
    >> >> >> > If any fall between these dates then count as 1 or true. If the
    >> >> >> > dates
    >> >> >> > are
    >> >> >> > before date 1 or after date 2, then I don't want to count them at
    >> >> >> > all.
    >> >> >> > The
    >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    >> >> >> > everything
    >> >> >> > before
    >> >> >> > date 1 as well. Please help me.
    >> >> >>
    >> >> >>
    >> >> >>
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  46. #46
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Biff, it still counts dates prior to F1.

    "Biff" wrote:

    > Hi!
    >
    > >The only cell which would count is L5. H5 is too long ago, and J5 is not
    > >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > >counts H5.

    >
    > OK, that's where you're not understanding how the formula works. The dates
    > have to meet both of those conditions to be counted. The date has to be >=F1
    > AND <=H1.
    >
    > F1 = 8/27/2004
    > H1 = 11/26/2004
    >
    > H5 = 6/17/2004 is NOT >F1 but IS <H1
    >
    > So this is how it gets evaluated:
    >
    > FALSE * TRUE = 0 (not counted)
    >
    > And the formula does the same thing for the other dates so that you have an
    > array that looks like this:
    >
    > H5 = 6/17/2004 = FALSE * TRUE = 0
    > J5 = 1/11/2005 = TRUE * FALSE = 0
    > L5 = 10/18/2004 = TRUE * TRUE = 1
    >
    > So, the only date counted is in L5.
    >
    > This formula is a little more robust in that it accounts for empty cells:
    >
    > =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > The dates in F1 and H1 are a 2 month span.
    > > F1 =TODAY()-365 H1 =TODAY()-305.
    > >
    > > H5 is 6/17/04
    > > J5 is 1/11/05
    > > L5 is 10/18/04
    > > The only cell which would count is L5. H5 is too long ago, and J5 is not
    > > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > > counts H5. I need it to count only the dates which fall in between F1 and
    > > H1. I don't know how to combine the equation to make it fit Both criteria
    > > at
    > > the same time. How DO you learn all this stuff?
    > >
    > >
    > > "Biff" wrote:
    > >
    > >> OK, maybe if you give some examples of what to count and when...
    > >>
    > >> For example....
    > >>
    > >> F1 = 1/1/2005
    > >> H1 = 1/2/2005
    > >>
    > >> H5 = 1/1/2005
    > >> J5 = 1/10/2005
    > >> L5 = blank (empty cell)
    > >>
    > >> What result would you expect from that example? Based on my understanding
    > >> of
    > >> what you want I would think the result should be 1. Also, you didn't
    > >> really
    > >> say whether you actually meant >= and <= the dates in F1 and H1. You said
    > >> "within" and a literal reading of that would exclude both of the dates in
    > >> my
    > >> example.
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > It is a date cell. It says Type : date
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> Are you sure that the dates are true Excel dates?
    > >> >>
    > >> >> True Excel dates are really numbers with a special format.
    > >> >>
    > >> >> Check the formats for your date cells. If you select a date cell then
    > >> >> right
    > >> >> click and choose Format Cells what format does it show as being used?
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> >I tried all 3 suggestions, but they didn't work.
    > >> >> >
    > >> >> > "Biff" wrote:
    > >> >> >
    > >> >> >> Hi!
    > >> >> >>
    > >> >> >> See this:
    > >> >> >>
    > >> >> >> http://tinyurl.com/aml9c
    > >> >> >>
    > >> >> >> Biff
    > >> >> >>
    > >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> news:[email protected]...
    > >> >> >> >I am tracking dates of service and I need to be able to see if
    > >> >> >> >dates
    > >> >> >> >fall
    > >> >> >> > within a certain time frame.
    > >> >> >> > column F Column H
    > >> >> >> > row 1 (date 1) (date 2)
    > >> >> >> >
    > >> >> >> >
    > >> >> >> > column H column J column L
    > >> >> >> > (Client 1) date date date
    > >> >> >> >
    > >> >> >> > I want to see if any of the clients dates fall between date 1 and
    > >> >> >> > date
    > >> >> >> > 2.
    > >> >> >> > If any fall between these dates then count as 1 or true. If the
    > >> >> >> > dates
    > >> >> >> > are
    > >> >> >> > before date 1 or after date 2, then I don't want to count them at
    > >> >> >> > all.
    > >> >> >> > The
    > >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > >> >> >> > everything
    > >> >> >> > before
    > >> >> >> > date 1 as well. Please help me.
    > >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  47. #47
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Can you send me a copy of the file? If so, let me know how to contact you.

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > Biff, it still counts dates prior to F1.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    >> >not
    >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    >> >counts H5.

    >>
    >> OK, that's where you're not understanding how the formula works. The
    >> dates
    >> have to meet both of those conditions to be counted. The date has to be
    >> >=F1

    >> AND <=H1.
    >>
    >> F1 = 8/27/2004
    >> H1 = 11/26/2004
    >>
    >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    >>
    >> So this is how it gets evaluated:
    >>
    >> FALSE * TRUE = 0 (not counted)
    >>
    >> And the formula does the same thing for the other dates so that you have
    >> an
    >> array that looks like this:
    >>
    >> H5 = 6/17/2004 = FALSE * TRUE = 0
    >> J5 = 1/11/2005 = TRUE * FALSE = 0
    >> L5 = 10/18/2004 = TRUE * TRUE = 1
    >>
    >> So, the only date counted is in L5.
    >>
    >> This formula is a little more robust in that it accounts for empty cells:
    >>
    >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > The dates in F1 and H1 are a 2 month span.
    >> > F1 =TODAY()-365 H1 =TODAY()-305.
    >> >
    >> > H5 is 6/17/04
    >> > J5 is 1/11/05
    >> > L5 is 10/18/04
    >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    >> > not
    >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    >> > it
    >> > counts H5. I need it to count only the dates which fall in between F1
    >> > and
    >> > H1. I don't know how to combine the equation to make it fit Both
    >> > criteria
    >> > at
    >> > the same time. How DO you learn all this stuff?
    >> >
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> OK, maybe if you give some examples of what to count and when...
    >> >>
    >> >> For example....
    >> >>
    >> >> F1 = 1/1/2005
    >> >> H1 = 1/2/2005
    >> >>
    >> >> H5 = 1/1/2005
    >> >> J5 = 1/10/2005
    >> >> L5 = blank (empty cell)
    >> >>
    >> >> What result would you expect from that example? Based on my
    >> >> understanding
    >> >> of
    >> >> what you want I would think the result should be 1. Also, you didn't
    >> >> really
    >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    >> >> said
    >> >> "within" and a literal reading of that would exclude both of the dates
    >> >> in
    >> >> my
    >> >> example.
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> > It is a date cell. It says Type : date
    >> >> >
    >> >> > "Biff" wrote:
    >> >> >
    >> >> >> Are you sure that the dates are true Excel dates?
    >> >> >>
    >> >> >> True Excel dates are really numbers with a special format.
    >> >> >>
    >> >> >> Check the formats for your date cells. If you select a date cell
    >> >> >> then
    >> >> >> right
    >> >> >> click and choose Format Cells what format does it show as being
    >> >> >> used?
    >> >> >>
    >> >> >> Biff
    >> >> >>
    >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> news:[email protected]...
    >> >> >> >I tried all 3 suggestions, but they didn't work.
    >> >> >> >
    >> >> >> > "Biff" wrote:
    >> >> >> >
    >> >> >> >> Hi!
    >> >> >> >>
    >> >> >> >> See this:
    >> >> >> >>
    >> >> >> >> http://tinyurl.com/aml9c
    >> >> >> >>
    >> >> >> >> Biff
    >> >> >> >>
    >> >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> >> news:[email protected]...
    >> >> >> >> >I am tracking dates of service and I need to be able to see if
    >> >> >> >> >dates
    >> >> >> >> >fall
    >> >> >> >> > within a certain time frame.
    >> >> >> >> > column F Column H
    >> >> >> >> > row 1 (date 1) (date 2)
    >> >> >> >> >
    >> >> >> >> >
    >> >> >> >> > column H column J column L
    >> >> >> >> > (Client 1) date date date
    >> >> >> >> >
    >> >> >> >> > I want to see if any of the clients dates fall between date 1
    >> >> >> >> > and
    >> >> >> >> > date
    >> >> >> >> > 2.
    >> >> >> >> > If any fall between these dates then count as 1 or true. If
    >> >> >> >> > the
    >> >> >> >> > dates
    >> >> >> >> > are
    >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    >> >> >> >> > at
    >> >> >> >> > all.
    >> >> >> >> > The
    >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    >> >> >> >> > everything
    >> >> >> >> > before
    >> >> >> >> > date 1 as well. Please help me.
    >> >> >> >>
    >> >> >> >>
    >> >> >> >>
    >> >> >>
    >> >> >>
    >> >> >>
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  48. #48
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    e-mail - see my profile

    "Biff" wrote:

    > Can you send me a copy of the file? If so, let me know how to contact you.
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > Biff, it still counts dates prior to F1.
    > >
    > > "Biff" wrote:
    > >
    > >> Hi!
    > >>
    > >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    > >> >not
    > >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > >> >counts H5.
    > >>
    > >> OK, that's where you're not understanding how the formula works. The
    > >> dates
    > >> have to meet both of those conditions to be counted. The date has to be
    > >> >=F1
    > >> AND <=H1.
    > >>
    > >> F1 = 8/27/2004
    > >> H1 = 11/26/2004
    > >>
    > >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    > >>
    > >> So this is how it gets evaluated:
    > >>
    > >> FALSE * TRUE = 0 (not counted)
    > >>
    > >> And the formula does the same thing for the other dates so that you have
    > >> an
    > >> array that looks like this:
    > >>
    > >> H5 = 6/17/2004 = FALSE * TRUE = 0
    > >> J5 = 1/11/2005 = TRUE * FALSE = 0
    > >> L5 = 10/18/2004 = TRUE * TRUE = 1
    > >>
    > >> So, the only date counted is in L5.
    > >>
    > >> This formula is a little more robust in that it accounts for empty cells:
    > >>
    > >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > The dates in F1 and H1 are a 2 month span.
    > >> > F1 =TODAY()-365 H1 =TODAY()-305.
    > >> >
    > >> > H5 is 6/17/04
    > >> > J5 is 1/11/05
    > >> > L5 is 10/18/04
    > >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    > >> > not
    > >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    > >> > it
    > >> > counts H5. I need it to count only the dates which fall in between F1
    > >> > and
    > >> > H1. I don't know how to combine the equation to make it fit Both
    > >> > criteria
    > >> > at
    > >> > the same time. How DO you learn all this stuff?
    > >> >
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> OK, maybe if you give some examples of what to count and when...
    > >> >>
    > >> >> For example....
    > >> >>
    > >> >> F1 = 1/1/2005
    > >> >> H1 = 1/2/2005
    > >> >>
    > >> >> H5 = 1/1/2005
    > >> >> J5 = 1/10/2005
    > >> >> L5 = blank (empty cell)
    > >> >>
    > >> >> What result would you expect from that example? Based on my
    > >> >> understanding
    > >> >> of
    > >> >> what you want I would think the result should be 1. Also, you didn't
    > >> >> really
    > >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    > >> >> said
    > >> >> "within" and a literal reading of that would exclude both of the dates
    > >> >> in
    > >> >> my
    > >> >> example.
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> > It is a date cell. It says Type : date
    > >> >> >
    > >> >> > "Biff" wrote:
    > >> >> >
    > >> >> >> Are you sure that the dates are true Excel dates?
    > >> >> >>
    > >> >> >> True Excel dates are really numbers with a special format.
    > >> >> >>
    > >> >> >> Check the formats for your date cells. If you select a date cell
    > >> >> >> then
    > >> >> >> right
    > >> >> >> click and choose Format Cells what format does it show as being
    > >> >> >> used?
    > >> >> >>
    > >> >> >> Biff
    > >> >> >>
    > >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> news:[email protected]...
    > >> >> >> >I tried all 3 suggestions, but they didn't work.
    > >> >> >> >
    > >> >> >> > "Biff" wrote:
    > >> >> >> >
    > >> >> >> >> Hi!
    > >> >> >> >>
    > >> >> >> >> See this:
    > >> >> >> >>
    > >> >> >> >> http://tinyurl.com/aml9c
    > >> >> >> >>
    > >> >> >> >> Biff
    > >> >> >> >>
    > >> >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> >> news:[email protected]...
    > >> >> >> >> >I am tracking dates of service and I need to be able to see if
    > >> >> >> >> >dates
    > >> >> >> >> >fall
    > >> >> >> >> > within a certain time frame.
    > >> >> >> >> > column F Column H
    > >> >> >> >> > row 1 (date 1) (date 2)
    > >> >> >> >> >
    > >> >> >> >> >
    > >> >> >> >> > column H column J column L
    > >> >> >> >> > (Client 1) date date date
    > >> >> >> >> >
    > >> >> >> >> > I want to see if any of the clients dates fall between date 1
    > >> >> >> >> > and
    > >> >> >> >> > date
    > >> >> >> >> > 2.
    > >> >> >> >> > If any fall between these dates then count as 1 or true. If
    > >> >> >> >> > the
    > >> >> >> >> > dates
    > >> >> >> >> > are
    > >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    > >> >> >> >> > at
    > >> >> >> >> > all.
    > >> >> >> >> > The
    > >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > >> >> >> >> > everything
    > >> >> >> >> > before
    > >> >> >> >> > date 1 as well. Please help me.
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  49. #49
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?


    [display name][email protected]


    > > Can you send me a copy of the file? If so, let me know how to contact you.
    > >
    > > Biff
    > >
    > > "Pe66les" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > Biff, it still counts dates prior to F1.
    > > >
    > > > "Biff" wrote:
    > > >
    > > >> Hi!
    > > >>
    > > >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    > > >> >not
    > > >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > > >> >counts H5.
    > > >>
    > > >> OK, that's where you're not understanding how the formula works. The
    > > >> dates
    > > >> have to meet both of those conditions to be counted. The date has to be
    > > >> >=F1
    > > >> AND <=H1.
    > > >>
    > > >> F1 = 8/27/2004
    > > >> H1 = 11/26/2004
    > > >>
    > > >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    > > >>
    > > >> So this is how it gets evaluated:
    > > >>
    > > >> FALSE * TRUE = 0 (not counted)
    > > >>
    > > >> And the formula does the same thing for the other dates so that you have
    > > >> an
    > > >> array that looks like this:
    > > >>
    > > >> H5 = 6/17/2004 = FALSE * TRUE = 0
    > > >> J5 = 1/11/2005 = TRUE * FALSE = 0
    > > >> L5 = 10/18/2004 = TRUE * TRUE = 1
    > > >>
    > > >> So, the only date counted is in L5.
    > > >>
    > > >> This formula is a little more robust in that it accounts for empty cells:
    > > >>
    > > >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    > > >>
    > > >> Biff
    > > >>
    > > >> "Pe66les" <[email protected]> wrote in message
    > > >> news:[email protected]...
    > > >> > The dates in F1 and H1 are a 2 month span.
    > > >> > F1 =TODAY()-365 H1 =TODAY()-305.
    > > >> >
    > > >> > H5 is 6/17/04
    > > >> > J5 is 1/11/05
    > > >> > L5 is 10/18/04
    > > >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    > > >> > not
    > > >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    > > >> > it
    > > >> > counts H5. I need it to count only the dates which fall in between F1
    > > >> > and
    > > >> > H1. I don't know how to combine the equation to make it fit Both
    > > >> > criteria
    > > >> > at
    > > >> > the same time. How DO you learn all this stuff?
    > > >> >
    > > >> >
    > > >> > "Biff" wrote:
    > > >> >
    > > >> >> OK, maybe if you give some examples of what to count and when...
    > > >> >>
    > > >> >> For example....
    > > >> >>
    > > >> >> F1 = 1/1/2005
    > > >> >> H1 = 1/2/2005
    > > >> >>
    > > >> >> H5 = 1/1/2005
    > > >> >> J5 = 1/10/2005
    > > >> >> L5 = blank (empty cell)
    > > >> >>
    > > >> >> What result would you expect from that example? Based on my
    > > >> >> understanding
    > > >> >> of
    > > >> >> what you want I would think the result should be 1. Also, you didn't
    > > >> >> really
    > > >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    > > >> >> said
    > > >> >> "within" and a literal reading of that would exclude both of the dates
    > > >> >> in
    > > >> >> my
    > > >> >> example.
    > > >> >>
    > > >> >> Biff
    > > >> >>
    > > >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> news:[email protected]...
    > > >> >> > It is a date cell. It says Type : date
    > > >> >> >
    > > >> >> > "Biff" wrote:
    > > >> >> >
    > > >> >> >> Are you sure that the dates are true Excel dates?
    > > >> >> >>
    > > >> >> >> True Excel dates are really numbers with a special format.
    > > >> >> >>
    > > >> >> >> Check the formats for your date cells. If you select a date cell
    > > >> >> >> then
    > > >> >> >> right
    > > >> >> >> click and choose Format Cells what format does it show as being
    > > >> >> >> used?
    > > >> >> >>
    > > >> >> >> Biff
    > > >> >> >>
    > > >> >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> >> news:[email protected]...
    > > >> >> >> >I tried all 3 suggestions, but they didn't work.
    > > >> >> >> >
    > > >> >> >> > "Biff" wrote:
    > > >> >> >> >
    > > >> >> >> >> Hi!
    > > >> >> >> >>
    > > >> >> >> >> See this:
    > > >> >> >> >>
    > > >> >> >> >> http://tinyurl.com/aml9c
    > > >> >> >> >>
    > > >> >> >> >> Biff
    > > >> >> >> >>
    > > >> >> >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> >> >> news:[email protected]...
    > > >> >> >> >> >I am tracking dates of service and I need to be able to see if
    > > >> >> >> >> >dates
    > > >> >> >> >> >fall
    > > >> >> >> >> > within a certain time frame.
    > > >> >> >> >> > column F Column H
    > > >> >> >> >> > row 1 (date 1) (date 2)
    > > >> >> >> >> >
    > > >> >> >> >> >
    > > >> >> >> >> > column H column J column L
    > > >> >> >> >> > (Client 1) date date date
    > > >> >> >> >> >
    > > >> >> >> >> > I want to see if any of the clients dates fall between date 1
    > > >> >> >> >> > and
    > > >> >> >> >> > date
    > > >> >> >> >> > 2.
    > > >> >> >> >> > If any fall between these dates then count as 1 or true. If
    > > >> >> >> >> > the
    > > >> >> >> >> > dates
    > > >> >> >> >> > are
    > > >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    > > >> >> >> >> > at
    > > >> >> >> >> > all.
    > > >> >> >> >> > The
    > > >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > > >> >> >> >> > everything
    > > >> >> >> >> > before
    > > >> >> >> >> > date 1 as well. Please help me.
    > > >> >> >> >>
    > > >> >> >> >>
    > > >> >> >> >>
    > > >> >> >>
    > > >> >> >>
    > > >> >> >>
    > > >> >>
    > > >> >>
    > > >> >>
    > > >>
    > > >>
    > > >>

    > >
    > >
    > >


  50. #50
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    <[email protected]> wrote:

    >I am tracking dates of service and I need to be able to see if dates fall
    >within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    >(Client 1) date date date
    >
    >I want to see if any of the clients dates fall between date 1 and date 2.
    >If any fall between these dates then count as 1 or true. If the dates are
    >before date 1 or after date 2, then I don't want to count them at all. The
    >problem is if I use > date 1 and < date 2 then it counts everything before
    >date 1 as well. Please help me.



    With the range of dates that you are checking named "rng" (you can substitute a
    cell reference for this):

    =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))

    date1 and date2 may be cell references also.


    --ron

  51. #51
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    With the range of dates that you are checking named "rng" ----How do I do this?

    "Ron Rosenfeld" wrote:

    > On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    > >I am tracking dates of service and I need to be able to see if dates fall
    > >within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > >(Client 1) date date date
    > >
    > >I want to see if any of the clients dates fall between date 1 and date 2.
    > >If any fall between these dates then count as 1 or true. If the dates are
    > >before date 1 or after date 2, then I don't want to count them at all. The
    > >problem is if I use > date 1 and < date 2 then it counts everything before
    > >date 1 as well. Please help me.

    >
    >
    > With the range of dates that you are checking named "rng" (you can substitute a
    > cell reference for this):
    >
    > =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))
    >
    > date1 and date2 may be cell references also.
    >
    >
    > --ron
    >


  52. #52
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    I tried your suggestion but it is still counting 1 when it should be 0,
    This is what I typed:
    =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))
    What am I doing wrong?


    "Ron Rosenfeld" wrote:

    > On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    > >I am tracking dates of service and I need to be able to see if dates fall
    > >within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > >(Client 1) date date date
    > >
    > >I want to see if any of the clients dates fall between date 1 and date 2.
    > >If any fall between these dates then count as 1 or true. If the dates are
    > >before date 1 or after date 2, then I don't want to count them at all. The
    > >problem is if I use > date 1 and < date 2 then it counts everything before
    > >date 1 as well. Please help me.

    >
    >
    > With the range of dates that you are checking named "rng" (you can substitute a
    > cell reference for this):
    >
    > =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))
    >
    > date1 and date2 may be cell references also.
    >
    >
    > --ron
    >


  53. #53
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Sat, 27 Aug 2005 01:33:01 -0700, "Pe66les"
    <[email protected]> wrote:

    >I tried your suggestion but it is still counting 1 when it should be 0,
    >This is what I typed:
    >=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))



    >What am I doing wrong?
    >


    Uh, you are NOT using the equation I posted. You have the comparison operator
    incorrect in your second COUNTIF function.

    Assuming F1 contains your earlier date, and H1 contains your later date.

    Change yours to:

    =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))


    --ron

  54. #54
    Pe66les
    Guest

    RE: How do I calculate if a date is in a certain time frame?

    WOOOHOOOO!!!!! I did it!!!! I used:
    =3-COUNTIF(H5:L5,">="&$H$1)-COUNTIF(H5:L5,"<="&$F$1)
    It worked!!!!! Thank You so much for helping me figure out what I needed
    to do!!!

    "Pe66les" wrote:

    > I am tracking dates of service and I need to be able to see if dates fall
    > within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    > (Client 1) date date date
    >
    > I want to see if any of the clients dates fall between date 1 and date 2.
    > If any fall between these dates then count as 1 or true. If the dates are
    > before date 1 or after date 2, then I don't want to count them at all. The
    > problem is if I use > date 1 and < date 2 then it counts everything before
    > date 1 as well. Please help me.


  55. #55
    Pe66les
    Guest

    RE: How do I calculate if a date is in a certain time frame?

    OK, You get A Double WOOOOOHOOOO!!!!! I corrected my mistake and your
    equation is much better than mine. Thank you!!!! Thank you!!! Thank you!!!

    "Pe66les" wrote:

    > WOOOHOOOO!!!!! I did it!!!! I used:
    > =3-COUNTIF(H5:L5,">="&$H$1)-COUNTIF(H5:L5,"<="&$F$1)
    > It worked!!!!! Thank You so much for helping me figure out what I needed
    > to do!!!
    >
    > "Pe66les" wrote:
    >
    > > I am tracking dates of service and I need to be able to see if dates fall
    > > within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > > (Client 1) date date date
    > >
    > > I want to see if any of the clients dates fall between date 1 and date 2.
    > > If any fall between these dates then count as 1 or true. If the dates are
    > > before date 1 or after date 2, then I don't want to count them at all. The
    > > problem is if I use > date 1 and < date 2 then it counts everything before
    > > date 1 as well. Please help me.


  56. #56
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    >=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))

    Hmmm...

    If that works then so should:

    =IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0)

    I was accounting for the non-contiguous range and the possibilty of other
    numeric data within the range, but even if you leave that out:

    =IF(SUMPRODUCT(--(H5:L5>=F1),--(H5:L5<=H1)),1,0)

    That should also work.

    I don't get it!

    Biff

    "Ron Rosenfeld" <[email protected]> wrote in message
    news:[email protected]...
    > On Sat, 27 Aug 2005 01:33:01 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    >>I tried your suggestion but it is still counting 1 when it should be 0,
    >>This is what I typed:
    >>=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))

    >
    >
    >>What am I doing wrong?
    >>

    >
    > Uh, you are NOT using the equation I posted. You have the comparison
    > operator
    > incorrect in your second COUNTIF function.
    >
    > Assuming F1 contains your earlier date, and H1 contains your later date.
    >
    > Change yours to:
    >
    > =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))
    >
    >
    > --ron




  57. #57
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Sat, 27 Aug 2005 14:48:41 -0400, "Biff" <[email protected]> wrote:

    >>=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))

    >
    >Hmmm...
    >
    >If that works then so should:
    >
    >=IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0)
    >
    >I was accounting for the non-contiguous range and the possibilty of other
    >numeric data within the range, but even if you leave that out:
    >
    >=IF(SUMPRODUCT(--(H5:L5>=F1),--(H5:L5<=H1)),1,0)
    >
    >That should also work.
    >
    >I don't get it!


    When Pe66les posted the variation of *my* formula that he actually tried, it
    was incorrect. Perhaps the same thing was going on with the translation of
    yours.


    --ron

  58. #58
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Hi!

    See this:

    http://tinyurl.com/aml9c

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    >I am tracking dates of service and I need to be able to see if dates fall
    > within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    > (Client 1) date date date
    >
    > I want to see if any of the clients dates fall between date 1 and date 2.
    > If any fall between these dates then count as 1 or true. If the dates are
    > before date 1 or after date 2, then I don't want to count them at all.
    > The
    > problem is if I use > date 1 and < date 2 then it counts everything before
    > date 1 as well. Please help me.




  59. #59
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    I tried all 3 suggestions, but they didn't work.

    "Biff" wrote:

    > Hi!
    >
    > See this:
    >
    > http://tinyurl.com/aml9c
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > >I am tracking dates of service and I need to be able to see if dates fall
    > > within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > > (Client 1) date date date
    > >
    > > I want to see if any of the clients dates fall between date 1 and date 2.
    > > If any fall between these dates then count as 1 or true. If the dates are
    > > before date 1 or after date 2, then I don't want to count them at all.
    > > The
    > > problem is if I use > date 1 and < date 2 then it counts everything before
    > > date 1 as well. Please help me.

    >
    >
    >


  60. #60
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Are you sure that the dates are true Excel dates?

    True Excel dates are really numbers with a special format.

    Check the formats for your date cells. If you select a date cell then right
    click and choose Format Cells what format does it show as being used?

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    >I tried all 3 suggestions, but they didn't work.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> See this:
    >>
    >> http://tinyurl.com/aml9c
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I am tracking dates of service and I need to be able to see if dates
    >> >fall
    >> > within a certain time frame.
    >> > column F Column H
    >> > row 1 (date 1) (date 2)
    >> >
    >> >
    >> > column H column J column L
    >> > (Client 1) date date date
    >> >
    >> > I want to see if any of the clients dates fall between date 1 and date
    >> > 2.
    >> > If any fall between these dates then count as 1 or true. If the dates
    >> > are
    >> > before date 1 or after date 2, then I don't want to count them at all.
    >> > The
    >> > problem is if I use > date 1 and < date 2 then it counts everything
    >> > before
    >> > date 1 as well. Please help me.

    >>
    >>
    >>




  61. #61
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    It is a date cell. It says Type : date

    "Biff" wrote:

    > Are you sure that the dates are true Excel dates?
    >
    > True Excel dates are really numbers with a special format.
    >
    > Check the formats for your date cells. If you select a date cell then right
    > click and choose Format Cells what format does it show as being used?
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > >I tried all 3 suggestions, but they didn't work.
    > >
    > > "Biff" wrote:
    > >
    > >> Hi!
    > >>
    > >> See this:
    > >>
    > >> http://tinyurl.com/aml9c
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> >I am tracking dates of service and I need to be able to see if dates
    > >> >fall
    > >> > within a certain time frame.
    > >> > column F Column H
    > >> > row 1 (date 1) (date 2)
    > >> >
    > >> >
    > >> > column H column J column L
    > >> > (Client 1) date date date
    > >> >
    > >> > I want to see if any of the clients dates fall between date 1 and date
    > >> > 2.
    > >> > If any fall between these dates then count as 1 or true. If the dates
    > >> > are
    > >> > before date 1 or after date 2, then I don't want to count them at all.
    > >> > The
    > >> > problem is if I use > date 1 and < date 2 then it counts everything
    > >> > before
    > >> > date 1 as well. Please help me.
    > >>
    > >>
    > >>

    >
    >
    >


  62. #62
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    OK, maybe if you give some examples of what to count and when...

    For example....

    F1 = 1/1/2005
    H1 = 1/2/2005

    H5 = 1/1/2005
    J5 = 1/10/2005
    L5 = blank (empty cell)

    What result would you expect from that example? Based on my understanding of
    what you want I would think the result should be 1. Also, you didn't really
    say whether you actually meant >= and <= the dates in F1 and H1. You said
    "within" and a literal reading of that would exclude both of the dates in my
    example.

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > It is a date cell. It says Type : date
    >
    > "Biff" wrote:
    >
    >> Are you sure that the dates are true Excel dates?
    >>
    >> True Excel dates are really numbers with a special format.
    >>
    >> Check the formats for your date cells. If you select a date cell then
    >> right
    >> click and choose Format Cells what format does it show as being used?
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I tried all 3 suggestions, but they didn't work.
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> Hi!
    >> >>
    >> >> See this:
    >> >>
    >> >> http://tinyurl.com/aml9c
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> >I am tracking dates of service and I need to be able to see if dates
    >> >> >fall
    >> >> > within a certain time frame.
    >> >> > column F Column H
    >> >> > row 1 (date 1) (date 2)
    >> >> >
    >> >> >
    >> >> > column H column J column L
    >> >> > (Client 1) date date date
    >> >> >
    >> >> > I want to see if any of the clients dates fall between date 1 and
    >> >> > date
    >> >> > 2.
    >> >> > If any fall between these dates then count as 1 or true. If the
    >> >> > dates
    >> >> > are
    >> >> > before date 1 or after date 2, then I don't want to count them at
    >> >> > all.
    >> >> > The
    >> >> > problem is if I use > date 1 and < date 2 then it counts everything
    >> >> > before
    >> >> > date 1 as well. Please help me.
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  63. #63
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    The dates in F1 and H1 are a 2 month span.
    F1 =TODAY()-365 H1 =TODAY()-305.

    H5 is 6/17/04
    J5 is 1/11/05
    L5 is 10/18/04
    The only cell which would count is L5. H5 is too long ago, and J5 is not
    long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    counts H5. I need it to count only the dates which fall in between F1 and
    H1. I don't know how to combine the equation to make it fit Both criteria at
    the same time. How DO you learn all this stuff?


    "Biff" wrote:

    > OK, maybe if you give some examples of what to count and when...
    >
    > For example....
    >
    > F1 = 1/1/2005
    > H1 = 1/2/2005
    >
    > H5 = 1/1/2005
    > J5 = 1/10/2005
    > L5 = blank (empty cell)
    >
    > What result would you expect from that example? Based on my understanding of
    > what you want I would think the result should be 1. Also, you didn't really
    > say whether you actually meant >= and <= the dates in F1 and H1. You said
    > "within" and a literal reading of that would exclude both of the dates in my
    > example.
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > It is a date cell. It says Type : date
    > >
    > > "Biff" wrote:
    > >
    > >> Are you sure that the dates are true Excel dates?
    > >>
    > >> True Excel dates are really numbers with a special format.
    > >>
    > >> Check the formats for your date cells. If you select a date cell then
    > >> right
    > >> click and choose Format Cells what format does it show as being used?
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> >I tried all 3 suggestions, but they didn't work.
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> Hi!
    > >> >>
    > >> >> See this:
    > >> >>
    > >> >> http://tinyurl.com/aml9c
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> >I am tracking dates of service and I need to be able to see if dates
    > >> >> >fall
    > >> >> > within a certain time frame.
    > >> >> > column F Column H
    > >> >> > row 1 (date 1) (date 2)
    > >> >> >
    > >> >> >
    > >> >> > column H column J column L
    > >> >> > (Client 1) date date date
    > >> >> >
    > >> >> > I want to see if any of the clients dates fall between date 1 and
    > >> >> > date
    > >> >> > 2.
    > >> >> > If any fall between these dates then count as 1 or true. If the
    > >> >> > dates
    > >> >> > are
    > >> >> > before date 1 or after date 2, then I don't want to count them at
    > >> >> > all.
    > >> >> > The
    > >> >> > problem is if I use > date 1 and < date 2 then it counts everything
    > >> >> > before
    > >> >> > date 1 as well. Please help me.
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  64. #64
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Hi!

    >The only cell which would count is L5. H5 is too long ago, and J5 is not
    >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    >counts H5.


    OK, that's where you're not understanding how the formula works. The dates
    have to meet both of those conditions to be counted. The date has to be >=F1
    AND <=H1.

    F1 = 8/27/2004
    H1 = 11/26/2004

    H5 = 6/17/2004 is NOT >F1 but IS <H1

    So this is how it gets evaluated:

    FALSE * TRUE = 0 (not counted)

    And the formula does the same thing for the other dates so that you have an
    array that looks like this:

    H5 = 6/17/2004 = FALSE * TRUE = 0
    J5 = 1/11/2005 = TRUE * FALSE = 0
    L5 = 10/18/2004 = TRUE * TRUE = 1

    So, the only date counted is in L5.

    This formula is a little more robust in that it accounts for empty cells:

    =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > The dates in F1 and H1 are a 2 month span.
    > F1 =TODAY()-365 H1 =TODAY()-305.
    >
    > H5 is 6/17/04
    > J5 is 1/11/05
    > L5 is 10/18/04
    > The only cell which would count is L5. H5 is too long ago, and J5 is not
    > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > counts H5. I need it to count only the dates which fall in between F1 and
    > H1. I don't know how to combine the equation to make it fit Both criteria
    > at
    > the same time. How DO you learn all this stuff?
    >
    >
    > "Biff" wrote:
    >
    >> OK, maybe if you give some examples of what to count and when...
    >>
    >> For example....
    >>
    >> F1 = 1/1/2005
    >> H1 = 1/2/2005
    >>
    >> H5 = 1/1/2005
    >> J5 = 1/10/2005
    >> L5 = blank (empty cell)
    >>
    >> What result would you expect from that example? Based on my understanding
    >> of
    >> what you want I would think the result should be 1. Also, you didn't
    >> really
    >> say whether you actually meant >= and <= the dates in F1 and H1. You said
    >> "within" and a literal reading of that would exclude both of the dates in
    >> my
    >> example.
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > It is a date cell. It says Type : date
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> Are you sure that the dates are true Excel dates?
    >> >>
    >> >> True Excel dates are really numbers with a special format.
    >> >>
    >> >> Check the formats for your date cells. If you select a date cell then
    >> >> right
    >> >> click and choose Format Cells what format does it show as being used?
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> >I tried all 3 suggestions, but they didn't work.
    >> >> >
    >> >> > "Biff" wrote:
    >> >> >
    >> >> >> Hi!
    >> >> >>
    >> >> >> See this:
    >> >> >>
    >> >> >> http://tinyurl.com/aml9c
    >> >> >>
    >> >> >> Biff
    >> >> >>
    >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> news:[email protected]...
    >> >> >> >I am tracking dates of service and I need to be able to see if
    >> >> >> >dates
    >> >> >> >fall
    >> >> >> > within a certain time frame.
    >> >> >> > column F Column H
    >> >> >> > row 1 (date 1) (date 2)
    >> >> >> >
    >> >> >> >
    >> >> >> > column H column J column L
    >> >> >> > (Client 1) date date date
    >> >> >> >
    >> >> >> > I want to see if any of the clients dates fall between date 1 and
    >> >> >> > date
    >> >> >> > 2.
    >> >> >> > If any fall between these dates then count as 1 or true. If the
    >> >> >> > dates
    >> >> >> > are
    >> >> >> > before date 1 or after date 2, then I don't want to count them at
    >> >> >> > all.
    >> >> >> > The
    >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    >> >> >> > everything
    >> >> >> > before
    >> >> >> > date 1 as well. Please help me.
    >> >> >>
    >> >> >>
    >> >> >>
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  65. #65
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Biff, it still counts dates prior to F1.

    "Biff" wrote:

    > Hi!
    >
    > >The only cell which would count is L5. H5 is too long ago, and J5 is not
    > >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > >counts H5.

    >
    > OK, that's where you're not understanding how the formula works. The dates
    > have to meet both of those conditions to be counted. The date has to be >=F1
    > AND <=H1.
    >
    > F1 = 8/27/2004
    > H1 = 11/26/2004
    >
    > H5 = 6/17/2004 is NOT >F1 but IS <H1
    >
    > So this is how it gets evaluated:
    >
    > FALSE * TRUE = 0 (not counted)
    >
    > And the formula does the same thing for the other dates so that you have an
    > array that looks like this:
    >
    > H5 = 6/17/2004 = FALSE * TRUE = 0
    > J5 = 1/11/2005 = TRUE * FALSE = 0
    > L5 = 10/18/2004 = TRUE * TRUE = 1
    >
    > So, the only date counted is in L5.
    >
    > This formula is a little more robust in that it accounts for empty cells:
    >
    > =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > The dates in F1 and H1 are a 2 month span.
    > > F1 =TODAY()-365 H1 =TODAY()-305.
    > >
    > > H5 is 6/17/04
    > > J5 is 1/11/05
    > > L5 is 10/18/04
    > > The only cell which would count is L5. H5 is too long ago, and J5 is not
    > > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > > counts H5. I need it to count only the dates which fall in between F1 and
    > > H1. I don't know how to combine the equation to make it fit Both criteria
    > > at
    > > the same time. How DO you learn all this stuff?
    > >
    > >
    > > "Biff" wrote:
    > >
    > >> OK, maybe if you give some examples of what to count and when...
    > >>
    > >> For example....
    > >>
    > >> F1 = 1/1/2005
    > >> H1 = 1/2/2005
    > >>
    > >> H5 = 1/1/2005
    > >> J5 = 1/10/2005
    > >> L5 = blank (empty cell)
    > >>
    > >> What result would you expect from that example? Based on my understanding
    > >> of
    > >> what you want I would think the result should be 1. Also, you didn't
    > >> really
    > >> say whether you actually meant >= and <= the dates in F1 and H1. You said
    > >> "within" and a literal reading of that would exclude both of the dates in
    > >> my
    > >> example.
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > It is a date cell. It says Type : date
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> Are you sure that the dates are true Excel dates?
    > >> >>
    > >> >> True Excel dates are really numbers with a special format.
    > >> >>
    > >> >> Check the formats for your date cells. If you select a date cell then
    > >> >> right
    > >> >> click and choose Format Cells what format does it show as being used?
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> >I tried all 3 suggestions, but they didn't work.
    > >> >> >
    > >> >> > "Biff" wrote:
    > >> >> >
    > >> >> >> Hi!
    > >> >> >>
    > >> >> >> See this:
    > >> >> >>
    > >> >> >> http://tinyurl.com/aml9c
    > >> >> >>
    > >> >> >> Biff
    > >> >> >>
    > >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> news:[email protected]...
    > >> >> >> >I am tracking dates of service and I need to be able to see if
    > >> >> >> >dates
    > >> >> >> >fall
    > >> >> >> > within a certain time frame.
    > >> >> >> > column F Column H
    > >> >> >> > row 1 (date 1) (date 2)
    > >> >> >> >
    > >> >> >> >
    > >> >> >> > column H column J column L
    > >> >> >> > (Client 1) date date date
    > >> >> >> >
    > >> >> >> > I want to see if any of the clients dates fall between date 1 and
    > >> >> >> > date
    > >> >> >> > 2.
    > >> >> >> > If any fall between these dates then count as 1 or true. If the
    > >> >> >> > dates
    > >> >> >> > are
    > >> >> >> > before date 1 or after date 2, then I don't want to count them at
    > >> >> >> > all.
    > >> >> >> > The
    > >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > >> >> >> > everything
    > >> >> >> > before
    > >> >> >> > date 1 as well. Please help me.
    > >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  66. #66
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Can you send me a copy of the file? If so, let me know how to contact you.

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > Biff, it still counts dates prior to F1.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    >> >not
    >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    >> >counts H5.

    >>
    >> OK, that's where you're not understanding how the formula works. The
    >> dates
    >> have to meet both of those conditions to be counted. The date has to be
    >> >=F1

    >> AND <=H1.
    >>
    >> F1 = 8/27/2004
    >> H1 = 11/26/2004
    >>
    >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    >>
    >> So this is how it gets evaluated:
    >>
    >> FALSE * TRUE = 0 (not counted)
    >>
    >> And the formula does the same thing for the other dates so that you have
    >> an
    >> array that looks like this:
    >>
    >> H5 = 6/17/2004 = FALSE * TRUE = 0
    >> J5 = 1/11/2005 = TRUE * FALSE = 0
    >> L5 = 10/18/2004 = TRUE * TRUE = 1
    >>
    >> So, the only date counted is in L5.
    >>
    >> This formula is a little more robust in that it accounts for empty cells:
    >>
    >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > The dates in F1 and H1 are a 2 month span.
    >> > F1 =TODAY()-365 H1 =TODAY()-305.
    >> >
    >> > H5 is 6/17/04
    >> > J5 is 1/11/05
    >> > L5 is 10/18/04
    >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    >> > not
    >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    >> > it
    >> > counts H5. I need it to count only the dates which fall in between F1
    >> > and
    >> > H1. I don't know how to combine the equation to make it fit Both
    >> > criteria
    >> > at
    >> > the same time. How DO you learn all this stuff?
    >> >
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> OK, maybe if you give some examples of what to count and when...
    >> >>
    >> >> For example....
    >> >>
    >> >> F1 = 1/1/2005
    >> >> H1 = 1/2/2005
    >> >>
    >> >> H5 = 1/1/2005
    >> >> J5 = 1/10/2005
    >> >> L5 = blank (empty cell)
    >> >>
    >> >> What result would you expect from that example? Based on my
    >> >> understanding
    >> >> of
    >> >> what you want I would think the result should be 1. Also, you didn't
    >> >> really
    >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    >> >> said
    >> >> "within" and a literal reading of that would exclude both of the dates
    >> >> in
    >> >> my
    >> >> example.
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> > It is a date cell. It says Type : date
    >> >> >
    >> >> > "Biff" wrote:
    >> >> >
    >> >> >> Are you sure that the dates are true Excel dates?
    >> >> >>
    >> >> >> True Excel dates are really numbers with a special format.
    >> >> >>
    >> >> >> Check the formats for your date cells. If you select a date cell
    >> >> >> then
    >> >> >> right
    >> >> >> click and choose Format Cells what format does it show as being
    >> >> >> used?
    >> >> >>
    >> >> >> Biff
    >> >> >>
    >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> news:[email protected]...
    >> >> >> >I tried all 3 suggestions, but they didn't work.
    >> >> >> >
    >> >> >> > "Biff" wrote:
    >> >> >> >
    >> >> >> >> Hi!
    >> >> >> >>
    >> >> >> >> See this:
    >> >> >> >>
    >> >> >> >> http://tinyurl.com/aml9c
    >> >> >> >>
    >> >> >> >> Biff
    >> >> >> >>
    >> >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> >> news:[email protected]...
    >> >> >> >> >I am tracking dates of service and I need to be able to see if
    >> >> >> >> >dates
    >> >> >> >> >fall
    >> >> >> >> > within a certain time frame.
    >> >> >> >> > column F Column H
    >> >> >> >> > row 1 (date 1) (date 2)
    >> >> >> >> >
    >> >> >> >> >
    >> >> >> >> > column H column J column L
    >> >> >> >> > (Client 1) date date date
    >> >> >> >> >
    >> >> >> >> > I want to see if any of the clients dates fall between date 1
    >> >> >> >> > and
    >> >> >> >> > date
    >> >> >> >> > 2.
    >> >> >> >> > If any fall between these dates then count as 1 or true. If
    >> >> >> >> > the
    >> >> >> >> > dates
    >> >> >> >> > are
    >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    >> >> >> >> > at
    >> >> >> >> > all.
    >> >> >> >> > The
    >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    >> >> >> >> > everything
    >> >> >> >> > before
    >> >> >> >> > date 1 as well. Please help me.
    >> >> >> >>
    >> >> >> >>
    >> >> >> >>
    >> >> >>
    >> >> >>
    >> >> >>
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  67. #67
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    e-mail - see my profile

    "Biff" wrote:

    > Can you send me a copy of the file? If so, let me know how to contact you.
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > Biff, it still counts dates prior to F1.
    > >
    > > "Biff" wrote:
    > >
    > >> Hi!
    > >>
    > >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    > >> >not
    > >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > >> >counts H5.
    > >>
    > >> OK, that's where you're not understanding how the formula works. The
    > >> dates
    > >> have to meet both of those conditions to be counted. The date has to be
    > >> >=F1
    > >> AND <=H1.
    > >>
    > >> F1 = 8/27/2004
    > >> H1 = 11/26/2004
    > >>
    > >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    > >>
    > >> So this is how it gets evaluated:
    > >>
    > >> FALSE * TRUE = 0 (not counted)
    > >>
    > >> And the formula does the same thing for the other dates so that you have
    > >> an
    > >> array that looks like this:
    > >>
    > >> H5 = 6/17/2004 = FALSE * TRUE = 0
    > >> J5 = 1/11/2005 = TRUE * FALSE = 0
    > >> L5 = 10/18/2004 = TRUE * TRUE = 1
    > >>
    > >> So, the only date counted is in L5.
    > >>
    > >> This formula is a little more robust in that it accounts for empty cells:
    > >>
    > >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > The dates in F1 and H1 are a 2 month span.
    > >> > F1 =TODAY()-365 H1 =TODAY()-305.
    > >> >
    > >> > H5 is 6/17/04
    > >> > J5 is 1/11/05
    > >> > L5 is 10/18/04
    > >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    > >> > not
    > >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    > >> > it
    > >> > counts H5. I need it to count only the dates which fall in between F1
    > >> > and
    > >> > H1. I don't know how to combine the equation to make it fit Both
    > >> > criteria
    > >> > at
    > >> > the same time. How DO you learn all this stuff?
    > >> >
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> OK, maybe if you give some examples of what to count and when...
    > >> >>
    > >> >> For example....
    > >> >>
    > >> >> F1 = 1/1/2005
    > >> >> H1 = 1/2/2005
    > >> >>
    > >> >> H5 = 1/1/2005
    > >> >> J5 = 1/10/2005
    > >> >> L5 = blank (empty cell)
    > >> >>
    > >> >> What result would you expect from that example? Based on my
    > >> >> understanding
    > >> >> of
    > >> >> what you want I would think the result should be 1. Also, you didn't
    > >> >> really
    > >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    > >> >> said
    > >> >> "within" and a literal reading of that would exclude both of the dates
    > >> >> in
    > >> >> my
    > >> >> example.
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> > It is a date cell. It says Type : date
    > >> >> >
    > >> >> > "Biff" wrote:
    > >> >> >
    > >> >> >> Are you sure that the dates are true Excel dates?
    > >> >> >>
    > >> >> >> True Excel dates are really numbers with a special format.
    > >> >> >>
    > >> >> >> Check the formats for your date cells. If you select a date cell
    > >> >> >> then
    > >> >> >> right
    > >> >> >> click and choose Format Cells what format does it show as being
    > >> >> >> used?
    > >> >> >>
    > >> >> >> Biff
    > >> >> >>
    > >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> news:[email protected]...
    > >> >> >> >I tried all 3 suggestions, but they didn't work.
    > >> >> >> >
    > >> >> >> > "Biff" wrote:
    > >> >> >> >
    > >> >> >> >> Hi!
    > >> >> >> >>
    > >> >> >> >> See this:
    > >> >> >> >>
    > >> >> >> >> http://tinyurl.com/aml9c
    > >> >> >> >>
    > >> >> >> >> Biff
    > >> >> >> >>
    > >> >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> >> news:[email protected]...
    > >> >> >> >> >I am tracking dates of service and I need to be able to see if
    > >> >> >> >> >dates
    > >> >> >> >> >fall
    > >> >> >> >> > within a certain time frame.
    > >> >> >> >> > column F Column H
    > >> >> >> >> > row 1 (date 1) (date 2)
    > >> >> >> >> >
    > >> >> >> >> >
    > >> >> >> >> > column H column J column L
    > >> >> >> >> > (Client 1) date date date
    > >> >> >> >> >
    > >> >> >> >> > I want to see if any of the clients dates fall between date 1
    > >> >> >> >> > and
    > >> >> >> >> > date
    > >> >> >> >> > 2.
    > >> >> >> >> > If any fall between these dates then count as 1 or true. If
    > >> >> >> >> > the
    > >> >> >> >> > dates
    > >> >> >> >> > are
    > >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    > >> >> >> >> > at
    > >> >> >> >> > all.
    > >> >> >> >> > The
    > >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > >> >> >> >> > everything
    > >> >> >> >> > before
    > >> >> >> >> > date 1 as well. Please help me.
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  68. #68
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?


    [display name][email protected]


    > > Can you send me a copy of the file? If so, let me know how to contact you.
    > >
    > > Biff
    > >
    > > "Pe66les" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > Biff, it still counts dates prior to F1.
    > > >
    > > > "Biff" wrote:
    > > >
    > > >> Hi!
    > > >>
    > > >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    > > >> >not
    > > >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > > >> >counts H5.
    > > >>
    > > >> OK, that's where you're not understanding how the formula works. The
    > > >> dates
    > > >> have to meet both of those conditions to be counted. The date has to be
    > > >> >=F1
    > > >> AND <=H1.
    > > >>
    > > >> F1 = 8/27/2004
    > > >> H1 = 11/26/2004
    > > >>
    > > >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    > > >>
    > > >> So this is how it gets evaluated:
    > > >>
    > > >> FALSE * TRUE = 0 (not counted)
    > > >>
    > > >> And the formula does the same thing for the other dates so that you have
    > > >> an
    > > >> array that looks like this:
    > > >>
    > > >> H5 = 6/17/2004 = FALSE * TRUE = 0
    > > >> J5 = 1/11/2005 = TRUE * FALSE = 0
    > > >> L5 = 10/18/2004 = TRUE * TRUE = 1
    > > >>
    > > >> So, the only date counted is in L5.
    > > >>
    > > >> This formula is a little more robust in that it accounts for empty cells:
    > > >>
    > > >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    > > >>
    > > >> Biff
    > > >>
    > > >> "Pe66les" <[email protected]> wrote in message
    > > >> news:[email protected]...
    > > >> > The dates in F1 and H1 are a 2 month span.
    > > >> > F1 =TODAY()-365 H1 =TODAY()-305.
    > > >> >
    > > >> > H5 is 6/17/04
    > > >> > J5 is 1/11/05
    > > >> > L5 is 10/18/04
    > > >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    > > >> > not
    > > >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    > > >> > it
    > > >> > counts H5. I need it to count only the dates which fall in between F1
    > > >> > and
    > > >> > H1. I don't know how to combine the equation to make it fit Both
    > > >> > criteria
    > > >> > at
    > > >> > the same time. How DO you learn all this stuff?
    > > >> >
    > > >> >
    > > >> > "Biff" wrote:
    > > >> >
    > > >> >> OK, maybe if you give some examples of what to count and when...
    > > >> >>
    > > >> >> For example....
    > > >> >>
    > > >> >> F1 = 1/1/2005
    > > >> >> H1 = 1/2/2005
    > > >> >>
    > > >> >> H5 = 1/1/2005
    > > >> >> J5 = 1/10/2005
    > > >> >> L5 = blank (empty cell)
    > > >> >>
    > > >> >> What result would you expect from that example? Based on my
    > > >> >> understanding
    > > >> >> of
    > > >> >> what you want I would think the result should be 1. Also, you didn't
    > > >> >> really
    > > >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    > > >> >> said
    > > >> >> "within" and a literal reading of that would exclude both of the dates
    > > >> >> in
    > > >> >> my
    > > >> >> example.
    > > >> >>
    > > >> >> Biff
    > > >> >>
    > > >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> news:[email protected]...
    > > >> >> > It is a date cell. It says Type : date
    > > >> >> >
    > > >> >> > "Biff" wrote:
    > > >> >> >
    > > >> >> >> Are you sure that the dates are true Excel dates?
    > > >> >> >>
    > > >> >> >> True Excel dates are really numbers with a special format.
    > > >> >> >>
    > > >> >> >> Check the formats for your date cells. If you select a date cell
    > > >> >> >> then
    > > >> >> >> right
    > > >> >> >> click and choose Format Cells what format does it show as being
    > > >> >> >> used?
    > > >> >> >>
    > > >> >> >> Biff
    > > >> >> >>
    > > >> >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> >> news:[email protected]...
    > > >> >> >> >I tried all 3 suggestions, but they didn't work.
    > > >> >> >> >
    > > >> >> >> > "Biff" wrote:
    > > >> >> >> >
    > > >> >> >> >> Hi!
    > > >> >> >> >>
    > > >> >> >> >> See this:
    > > >> >> >> >>
    > > >> >> >> >> http://tinyurl.com/aml9c
    > > >> >> >> >>
    > > >> >> >> >> Biff
    > > >> >> >> >>
    > > >> >> >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> >> >> news:[email protected]...
    > > >> >> >> >> >I am tracking dates of service and I need to be able to see if
    > > >> >> >> >> >dates
    > > >> >> >> >> >fall
    > > >> >> >> >> > within a certain time frame.
    > > >> >> >> >> > column F Column H
    > > >> >> >> >> > row 1 (date 1) (date 2)
    > > >> >> >> >> >
    > > >> >> >> >> >
    > > >> >> >> >> > column H column J column L
    > > >> >> >> >> > (Client 1) date date date
    > > >> >> >> >> >
    > > >> >> >> >> > I want to see if any of the clients dates fall between date 1
    > > >> >> >> >> > and
    > > >> >> >> >> > date
    > > >> >> >> >> > 2.
    > > >> >> >> >> > If any fall between these dates then count as 1 or true. If
    > > >> >> >> >> > the
    > > >> >> >> >> > dates
    > > >> >> >> >> > are
    > > >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    > > >> >> >> >> > at
    > > >> >> >> >> > all.
    > > >> >> >> >> > The
    > > >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > > >> >> >> >> > everything
    > > >> >> >> >> > before
    > > >> >> >> >> > date 1 as well. Please help me.
    > > >> >> >> >>
    > > >> >> >> >>
    > > >> >> >> >>
    > > >> >> >>
    > > >> >> >>
    > > >> >> >>
    > > >> >>
    > > >> >>
    > > >> >>
    > > >>
    > > >>
    > > >>

    > >
    > >
    > >


  69. #69
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    <[email protected]> wrote:

    >I am tracking dates of service and I need to be able to see if dates fall
    >within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    >(Client 1) date date date
    >
    >I want to see if any of the clients dates fall between date 1 and date 2.
    >If any fall between these dates then count as 1 or true. If the dates are
    >before date 1 or after date 2, then I don't want to count them at all. The
    >problem is if I use > date 1 and < date 2 then it counts everything before
    >date 1 as well. Please help me.



    With the range of dates that you are checking named "rng" (you can substitute a
    cell reference for this):

    =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))

    date1 and date2 may be cell references also.


    --ron

  70. #70
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    With the range of dates that you are checking named "rng" ----How do I do this?

    "Ron Rosenfeld" wrote:

    > On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    > >I am tracking dates of service and I need to be able to see if dates fall
    > >within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > >(Client 1) date date date
    > >
    > >I want to see if any of the clients dates fall between date 1 and date 2.
    > >If any fall between these dates then count as 1 or true. If the dates are
    > >before date 1 or after date 2, then I don't want to count them at all. The
    > >problem is if I use > date 1 and < date 2 then it counts everything before
    > >date 1 as well. Please help me.

    >
    >
    > With the range of dates that you are checking named "rng" (you can substitute a
    > cell reference for this):
    >
    > =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))
    >
    > date1 and date2 may be cell references also.
    >
    >
    > --ron
    >


  71. #71
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    I tried your suggestion but it is still counting 1 when it should be 0,
    This is what I typed:
    =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))
    What am I doing wrong?


    "Ron Rosenfeld" wrote:

    > On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    > >I am tracking dates of service and I need to be able to see if dates fall
    > >within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > >(Client 1) date date date
    > >
    > >I want to see if any of the clients dates fall between date 1 and date 2.
    > >If any fall between these dates then count as 1 or true. If the dates are
    > >before date 1 or after date 2, then I don't want to count them at all. The
    > >problem is if I use > date 1 and < date 2 then it counts everything before
    > >date 1 as well. Please help me.

    >
    >
    > With the range of dates that you are checking named "rng" (you can substitute a
    > cell reference for this):
    >
    > =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))
    >
    > date1 and date2 may be cell references also.
    >
    >
    > --ron
    >


  72. #72
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Sat, 27 Aug 2005 01:33:01 -0700, "Pe66les"
    <[email protected]> wrote:

    >I tried your suggestion but it is still counting 1 when it should be 0,
    >This is what I typed:
    >=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))



    >What am I doing wrong?
    >


    Uh, you are NOT using the equation I posted. You have the comparison operator
    incorrect in your second COUNTIF function.

    Assuming F1 contains your earlier date, and H1 contains your later date.

    Change yours to:

    =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))


    --ron

  73. #73
    Pe66les
    Guest

    RE: How do I calculate if a date is in a certain time frame?

    WOOOHOOOO!!!!! I did it!!!! I used:
    =3-COUNTIF(H5:L5,">="&$H$1)-COUNTIF(H5:L5,"<="&$F$1)
    It worked!!!!! Thank You so much for helping me figure out what I needed
    to do!!!

    "Pe66les" wrote:

    > I am tracking dates of service and I need to be able to see if dates fall
    > within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    > (Client 1) date date date
    >
    > I want to see if any of the clients dates fall between date 1 and date 2.
    > If any fall between these dates then count as 1 or true. If the dates are
    > before date 1 or after date 2, then I don't want to count them at all. The
    > problem is if I use > date 1 and < date 2 then it counts everything before
    > date 1 as well. Please help me.


  74. #74
    Pe66les
    Guest

    RE: How do I calculate if a date is in a certain time frame?

    OK, You get A Double WOOOOOHOOOO!!!!! I corrected my mistake and your
    equation is much better than mine. Thank you!!!! Thank you!!! Thank you!!!

    "Pe66les" wrote:

    > WOOOHOOOO!!!!! I did it!!!! I used:
    > =3-COUNTIF(H5:L5,">="&$H$1)-COUNTIF(H5:L5,"<="&$F$1)
    > It worked!!!!! Thank You so much for helping me figure out what I needed
    > to do!!!
    >
    > "Pe66les" wrote:
    >
    > > I am tracking dates of service and I need to be able to see if dates fall
    > > within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > > (Client 1) date date date
    > >
    > > I want to see if any of the clients dates fall between date 1 and date 2.
    > > If any fall between these dates then count as 1 or true. If the dates are
    > > before date 1 or after date 2, then I don't want to count them at all. The
    > > problem is if I use > date 1 and < date 2 then it counts everything before
    > > date 1 as well. Please help me.


  75. #75
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    >=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))

    Hmmm...

    If that works then so should:

    =IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0)

    I was accounting for the non-contiguous range and the possibilty of other
    numeric data within the range, but even if you leave that out:

    =IF(SUMPRODUCT(--(H5:L5>=F1),--(H5:L5<=H1)),1,0)

    That should also work.

    I don't get it!

    Biff

    "Ron Rosenfeld" <[email protected]> wrote in message
    news:[email protected]...
    > On Sat, 27 Aug 2005 01:33:01 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    >>I tried your suggestion but it is still counting 1 when it should be 0,
    >>This is what I typed:
    >>=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))

    >
    >
    >>What am I doing wrong?
    >>

    >
    > Uh, you are NOT using the equation I posted. You have the comparison
    > operator
    > incorrect in your second COUNTIF function.
    >
    > Assuming F1 contains your earlier date, and H1 contains your later date.
    >
    > Change yours to:
    >
    > =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))
    >
    >
    > --ron




  76. #76
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Sat, 27 Aug 2005 14:48:41 -0400, "Biff" <[email protected]> wrote:

    >>=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))

    >
    >Hmmm...
    >
    >If that works then so should:
    >
    >=IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0)
    >
    >I was accounting for the non-contiguous range and the possibilty of other
    >numeric data within the range, but even if you leave that out:
    >
    >=IF(SUMPRODUCT(--(H5:L5>=F1),--(H5:L5<=H1)),1,0)
    >
    >That should also work.
    >
    >I don't get it!


    When Pe66les posted the variation of *my* formula that he actually tried, it
    was incorrect. Perhaps the same thing was going on with the translation of
    yours.


    --ron

  77. #77
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Hi!

    See this:

    http://tinyurl.com/aml9c

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    >I am tracking dates of service and I need to be able to see if dates fall
    > within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    > (Client 1) date date date
    >
    > I want to see if any of the clients dates fall between date 1 and date 2.
    > If any fall between these dates then count as 1 or true. If the dates are
    > before date 1 or after date 2, then I don't want to count them at all.
    > The
    > problem is if I use > date 1 and < date 2 then it counts everything before
    > date 1 as well. Please help me.




  78. #78
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    I tried all 3 suggestions, but they didn't work.

    "Biff" wrote:

    > Hi!
    >
    > See this:
    >
    > http://tinyurl.com/aml9c
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > >I am tracking dates of service and I need to be able to see if dates fall
    > > within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > > (Client 1) date date date
    > >
    > > I want to see if any of the clients dates fall between date 1 and date 2.
    > > If any fall between these dates then count as 1 or true. If the dates are
    > > before date 1 or after date 2, then I don't want to count them at all.
    > > The
    > > problem is if I use > date 1 and < date 2 then it counts everything before
    > > date 1 as well. Please help me.

    >
    >
    >


  79. #79
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Are you sure that the dates are true Excel dates?

    True Excel dates are really numbers with a special format.

    Check the formats for your date cells. If you select a date cell then right
    click and choose Format Cells what format does it show as being used?

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    >I tried all 3 suggestions, but they didn't work.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> See this:
    >>
    >> http://tinyurl.com/aml9c
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I am tracking dates of service and I need to be able to see if dates
    >> >fall
    >> > within a certain time frame.
    >> > column F Column H
    >> > row 1 (date 1) (date 2)
    >> >
    >> >
    >> > column H column J column L
    >> > (Client 1) date date date
    >> >
    >> > I want to see if any of the clients dates fall between date 1 and date
    >> > 2.
    >> > If any fall between these dates then count as 1 or true. If the dates
    >> > are
    >> > before date 1 or after date 2, then I don't want to count them at all.
    >> > The
    >> > problem is if I use > date 1 and < date 2 then it counts everything
    >> > before
    >> > date 1 as well. Please help me.

    >>
    >>
    >>




  80. #80
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    It is a date cell. It says Type : date

    "Biff" wrote:

    > Are you sure that the dates are true Excel dates?
    >
    > True Excel dates are really numbers with a special format.
    >
    > Check the formats for your date cells. If you select a date cell then right
    > click and choose Format Cells what format does it show as being used?
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > >I tried all 3 suggestions, but they didn't work.
    > >
    > > "Biff" wrote:
    > >
    > >> Hi!
    > >>
    > >> See this:
    > >>
    > >> http://tinyurl.com/aml9c
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> >I am tracking dates of service and I need to be able to see if dates
    > >> >fall
    > >> > within a certain time frame.
    > >> > column F Column H
    > >> > row 1 (date 1) (date 2)
    > >> >
    > >> >
    > >> > column H column J column L
    > >> > (Client 1) date date date
    > >> >
    > >> > I want to see if any of the clients dates fall between date 1 and date
    > >> > 2.
    > >> > If any fall between these dates then count as 1 or true. If the dates
    > >> > are
    > >> > before date 1 or after date 2, then I don't want to count them at all.
    > >> > The
    > >> > problem is if I use > date 1 and < date 2 then it counts everything
    > >> > before
    > >> > date 1 as well. Please help me.
    > >>
    > >>
    > >>

    >
    >
    >


  81. #81
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    OK, maybe if you give some examples of what to count and when...

    For example....

    F1 = 1/1/2005
    H1 = 1/2/2005

    H5 = 1/1/2005
    J5 = 1/10/2005
    L5 = blank (empty cell)

    What result would you expect from that example? Based on my understanding of
    what you want I would think the result should be 1. Also, you didn't really
    say whether you actually meant >= and <= the dates in F1 and H1. You said
    "within" and a literal reading of that would exclude both of the dates in my
    example.

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > It is a date cell. It says Type : date
    >
    > "Biff" wrote:
    >
    >> Are you sure that the dates are true Excel dates?
    >>
    >> True Excel dates are really numbers with a special format.
    >>
    >> Check the formats for your date cells. If you select a date cell then
    >> right
    >> click and choose Format Cells what format does it show as being used?
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I tried all 3 suggestions, but they didn't work.
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> Hi!
    >> >>
    >> >> See this:
    >> >>
    >> >> http://tinyurl.com/aml9c
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> >I am tracking dates of service and I need to be able to see if dates
    >> >> >fall
    >> >> > within a certain time frame.
    >> >> > column F Column H
    >> >> > row 1 (date 1) (date 2)
    >> >> >
    >> >> >
    >> >> > column H column J column L
    >> >> > (Client 1) date date date
    >> >> >
    >> >> > I want to see if any of the clients dates fall between date 1 and
    >> >> > date
    >> >> > 2.
    >> >> > If any fall between these dates then count as 1 or true. If the
    >> >> > dates
    >> >> > are
    >> >> > before date 1 or after date 2, then I don't want to count them at
    >> >> > all.
    >> >> > The
    >> >> > problem is if I use > date 1 and < date 2 then it counts everything
    >> >> > before
    >> >> > date 1 as well. Please help me.
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  82. #82
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    The dates in F1 and H1 are a 2 month span.
    F1 =TODAY()-365 H1 =TODAY()-305.

    H5 is 6/17/04
    J5 is 1/11/05
    L5 is 10/18/04
    The only cell which would count is L5. H5 is too long ago, and J5 is not
    long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    counts H5. I need it to count only the dates which fall in between F1 and
    H1. I don't know how to combine the equation to make it fit Both criteria at
    the same time. How DO you learn all this stuff?


    "Biff" wrote:

    > OK, maybe if you give some examples of what to count and when...
    >
    > For example....
    >
    > F1 = 1/1/2005
    > H1 = 1/2/2005
    >
    > H5 = 1/1/2005
    > J5 = 1/10/2005
    > L5 = blank (empty cell)
    >
    > What result would you expect from that example? Based on my understanding of
    > what you want I would think the result should be 1. Also, you didn't really
    > say whether you actually meant >= and <= the dates in F1 and H1. You said
    > "within" and a literal reading of that would exclude both of the dates in my
    > example.
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > It is a date cell. It says Type : date
    > >
    > > "Biff" wrote:
    > >
    > >> Are you sure that the dates are true Excel dates?
    > >>
    > >> True Excel dates are really numbers with a special format.
    > >>
    > >> Check the formats for your date cells. If you select a date cell then
    > >> right
    > >> click and choose Format Cells what format does it show as being used?
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> >I tried all 3 suggestions, but they didn't work.
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> Hi!
    > >> >>
    > >> >> See this:
    > >> >>
    > >> >> http://tinyurl.com/aml9c
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> >I am tracking dates of service and I need to be able to see if dates
    > >> >> >fall
    > >> >> > within a certain time frame.
    > >> >> > column F Column H
    > >> >> > row 1 (date 1) (date 2)
    > >> >> >
    > >> >> >
    > >> >> > column H column J column L
    > >> >> > (Client 1) date date date
    > >> >> >
    > >> >> > I want to see if any of the clients dates fall between date 1 and
    > >> >> > date
    > >> >> > 2.
    > >> >> > If any fall between these dates then count as 1 or true. If the
    > >> >> > dates
    > >> >> > are
    > >> >> > before date 1 or after date 2, then I don't want to count them at
    > >> >> > all.
    > >> >> > The
    > >> >> > problem is if I use > date 1 and < date 2 then it counts everything
    > >> >> > before
    > >> >> > date 1 as well. Please help me.
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  83. #83
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Hi!

    >The only cell which would count is L5. H5 is too long ago, and J5 is not
    >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    >counts H5.


    OK, that's where you're not understanding how the formula works. The dates
    have to meet both of those conditions to be counted. The date has to be >=F1
    AND <=H1.

    F1 = 8/27/2004
    H1 = 11/26/2004

    H5 = 6/17/2004 is NOT >F1 but IS <H1

    So this is how it gets evaluated:

    FALSE * TRUE = 0 (not counted)

    And the formula does the same thing for the other dates so that you have an
    array that looks like this:

    H5 = 6/17/2004 = FALSE * TRUE = 0
    J5 = 1/11/2005 = TRUE * FALSE = 0
    L5 = 10/18/2004 = TRUE * TRUE = 1

    So, the only date counted is in L5.

    This formula is a little more robust in that it accounts for empty cells:

    =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > The dates in F1 and H1 are a 2 month span.
    > F1 =TODAY()-365 H1 =TODAY()-305.
    >
    > H5 is 6/17/04
    > J5 is 1/11/05
    > L5 is 10/18/04
    > The only cell which would count is L5. H5 is too long ago, and J5 is not
    > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > counts H5. I need it to count only the dates which fall in between F1 and
    > H1. I don't know how to combine the equation to make it fit Both criteria
    > at
    > the same time. How DO you learn all this stuff?
    >
    >
    > "Biff" wrote:
    >
    >> OK, maybe if you give some examples of what to count and when...
    >>
    >> For example....
    >>
    >> F1 = 1/1/2005
    >> H1 = 1/2/2005
    >>
    >> H5 = 1/1/2005
    >> J5 = 1/10/2005
    >> L5 = blank (empty cell)
    >>
    >> What result would you expect from that example? Based on my understanding
    >> of
    >> what you want I would think the result should be 1. Also, you didn't
    >> really
    >> say whether you actually meant >= and <= the dates in F1 and H1. You said
    >> "within" and a literal reading of that would exclude both of the dates in
    >> my
    >> example.
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > It is a date cell. It says Type : date
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> Are you sure that the dates are true Excel dates?
    >> >>
    >> >> True Excel dates are really numbers with a special format.
    >> >>
    >> >> Check the formats for your date cells. If you select a date cell then
    >> >> right
    >> >> click and choose Format Cells what format does it show as being used?
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> >I tried all 3 suggestions, but they didn't work.
    >> >> >
    >> >> > "Biff" wrote:
    >> >> >
    >> >> >> Hi!
    >> >> >>
    >> >> >> See this:
    >> >> >>
    >> >> >> http://tinyurl.com/aml9c
    >> >> >>
    >> >> >> Biff
    >> >> >>
    >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> news:[email protected]...
    >> >> >> >I am tracking dates of service and I need to be able to see if
    >> >> >> >dates
    >> >> >> >fall
    >> >> >> > within a certain time frame.
    >> >> >> > column F Column H
    >> >> >> > row 1 (date 1) (date 2)
    >> >> >> >
    >> >> >> >
    >> >> >> > column H column J column L
    >> >> >> > (Client 1) date date date
    >> >> >> >
    >> >> >> > I want to see if any of the clients dates fall between date 1 and
    >> >> >> > date
    >> >> >> > 2.
    >> >> >> > If any fall between these dates then count as 1 or true. If the
    >> >> >> > dates
    >> >> >> > are
    >> >> >> > before date 1 or after date 2, then I don't want to count them at
    >> >> >> > all.
    >> >> >> > The
    >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    >> >> >> > everything
    >> >> >> > before
    >> >> >> > date 1 as well. Please help me.
    >> >> >>
    >> >> >>
    >> >> >>
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  84. #84
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Biff, it still counts dates prior to F1.

    "Biff" wrote:

    > Hi!
    >
    > >The only cell which would count is L5. H5 is too long ago, and J5 is not
    > >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > >counts H5.

    >
    > OK, that's where you're not understanding how the formula works. The dates
    > have to meet both of those conditions to be counted. The date has to be >=F1
    > AND <=H1.
    >
    > F1 = 8/27/2004
    > H1 = 11/26/2004
    >
    > H5 = 6/17/2004 is NOT >F1 but IS <H1
    >
    > So this is how it gets evaluated:
    >
    > FALSE * TRUE = 0 (not counted)
    >
    > And the formula does the same thing for the other dates so that you have an
    > array that looks like this:
    >
    > H5 = 6/17/2004 = FALSE * TRUE = 0
    > J5 = 1/11/2005 = TRUE * FALSE = 0
    > L5 = 10/18/2004 = TRUE * TRUE = 1
    >
    > So, the only date counted is in L5.
    >
    > This formula is a little more robust in that it accounts for empty cells:
    >
    > =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > The dates in F1 and H1 are a 2 month span.
    > > F1 =TODAY()-365 H1 =TODAY()-305.
    > >
    > > H5 is 6/17/04
    > > J5 is 1/11/05
    > > L5 is 10/18/04
    > > The only cell which would count is L5. H5 is too long ago, and J5 is not
    > > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > > counts H5. I need it to count only the dates which fall in between F1 and
    > > H1. I don't know how to combine the equation to make it fit Both criteria
    > > at
    > > the same time. How DO you learn all this stuff?
    > >
    > >
    > > "Biff" wrote:
    > >
    > >> OK, maybe if you give some examples of what to count and when...
    > >>
    > >> For example....
    > >>
    > >> F1 = 1/1/2005
    > >> H1 = 1/2/2005
    > >>
    > >> H5 = 1/1/2005
    > >> J5 = 1/10/2005
    > >> L5 = blank (empty cell)
    > >>
    > >> What result would you expect from that example? Based on my understanding
    > >> of
    > >> what you want I would think the result should be 1. Also, you didn't
    > >> really
    > >> say whether you actually meant >= and <= the dates in F1 and H1. You said
    > >> "within" and a literal reading of that would exclude both of the dates in
    > >> my
    > >> example.
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > It is a date cell. It says Type : date
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> Are you sure that the dates are true Excel dates?
    > >> >>
    > >> >> True Excel dates are really numbers with a special format.
    > >> >>
    > >> >> Check the formats for your date cells. If you select a date cell then
    > >> >> right
    > >> >> click and choose Format Cells what format does it show as being used?
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> >I tried all 3 suggestions, but they didn't work.
    > >> >> >
    > >> >> > "Biff" wrote:
    > >> >> >
    > >> >> >> Hi!
    > >> >> >>
    > >> >> >> See this:
    > >> >> >>
    > >> >> >> http://tinyurl.com/aml9c
    > >> >> >>
    > >> >> >> Biff
    > >> >> >>
    > >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> news:[email protected]...
    > >> >> >> >I am tracking dates of service and I need to be able to see if
    > >> >> >> >dates
    > >> >> >> >fall
    > >> >> >> > within a certain time frame.
    > >> >> >> > column F Column H
    > >> >> >> > row 1 (date 1) (date 2)
    > >> >> >> >
    > >> >> >> >
    > >> >> >> > column H column J column L
    > >> >> >> > (Client 1) date date date
    > >> >> >> >
    > >> >> >> > I want to see if any of the clients dates fall between date 1 and
    > >> >> >> > date
    > >> >> >> > 2.
    > >> >> >> > If any fall between these dates then count as 1 or true. If the
    > >> >> >> > dates
    > >> >> >> > are
    > >> >> >> > before date 1 or after date 2, then I don't want to count them at
    > >> >> >> > all.
    > >> >> >> > The
    > >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > >> >> >> > everything
    > >> >> >> > before
    > >> >> >> > date 1 as well. Please help me.
    > >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  85. #85
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Can you send me a copy of the file? If so, let me know how to contact you.

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > Biff, it still counts dates prior to F1.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    >> >not
    >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    >> >counts H5.

    >>
    >> OK, that's where you're not understanding how the formula works. The
    >> dates
    >> have to meet both of those conditions to be counted. The date has to be
    >> >=F1

    >> AND <=H1.
    >>
    >> F1 = 8/27/2004
    >> H1 = 11/26/2004
    >>
    >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    >>
    >> So this is how it gets evaluated:
    >>
    >> FALSE * TRUE = 0 (not counted)
    >>
    >> And the formula does the same thing for the other dates so that you have
    >> an
    >> array that looks like this:
    >>
    >> H5 = 6/17/2004 = FALSE * TRUE = 0
    >> J5 = 1/11/2005 = TRUE * FALSE = 0
    >> L5 = 10/18/2004 = TRUE * TRUE = 1
    >>
    >> So, the only date counted is in L5.
    >>
    >> This formula is a little more robust in that it accounts for empty cells:
    >>
    >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > The dates in F1 and H1 are a 2 month span.
    >> > F1 =TODAY()-365 H1 =TODAY()-305.
    >> >
    >> > H5 is 6/17/04
    >> > J5 is 1/11/05
    >> > L5 is 10/18/04
    >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    >> > not
    >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    >> > it
    >> > counts H5. I need it to count only the dates which fall in between F1
    >> > and
    >> > H1. I don't know how to combine the equation to make it fit Both
    >> > criteria
    >> > at
    >> > the same time. How DO you learn all this stuff?
    >> >
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> OK, maybe if you give some examples of what to count and when...
    >> >>
    >> >> For example....
    >> >>
    >> >> F1 = 1/1/2005
    >> >> H1 = 1/2/2005
    >> >>
    >> >> H5 = 1/1/2005
    >> >> J5 = 1/10/2005
    >> >> L5 = blank (empty cell)
    >> >>
    >> >> What result would you expect from that example? Based on my
    >> >> understanding
    >> >> of
    >> >> what you want I would think the result should be 1. Also, you didn't
    >> >> really
    >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    >> >> said
    >> >> "within" and a literal reading of that would exclude both of the dates
    >> >> in
    >> >> my
    >> >> example.
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> > It is a date cell. It says Type : date
    >> >> >
    >> >> > "Biff" wrote:
    >> >> >
    >> >> >> Are you sure that the dates are true Excel dates?
    >> >> >>
    >> >> >> True Excel dates are really numbers with a special format.
    >> >> >>
    >> >> >> Check the formats for your date cells. If you select a date cell
    >> >> >> then
    >> >> >> right
    >> >> >> click and choose Format Cells what format does it show as being
    >> >> >> used?
    >> >> >>
    >> >> >> Biff
    >> >> >>
    >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> news:[email protected]...
    >> >> >> >I tried all 3 suggestions, but they didn't work.
    >> >> >> >
    >> >> >> > "Biff" wrote:
    >> >> >> >
    >> >> >> >> Hi!
    >> >> >> >>
    >> >> >> >> See this:
    >> >> >> >>
    >> >> >> >> http://tinyurl.com/aml9c
    >> >> >> >>
    >> >> >> >> Biff
    >> >> >> >>
    >> >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> >> news:[email protected]...
    >> >> >> >> >I am tracking dates of service and I need to be able to see if
    >> >> >> >> >dates
    >> >> >> >> >fall
    >> >> >> >> > within a certain time frame.
    >> >> >> >> > column F Column H
    >> >> >> >> > row 1 (date 1) (date 2)
    >> >> >> >> >
    >> >> >> >> >
    >> >> >> >> > column H column J column L
    >> >> >> >> > (Client 1) date date date
    >> >> >> >> >
    >> >> >> >> > I want to see if any of the clients dates fall between date 1
    >> >> >> >> > and
    >> >> >> >> > date
    >> >> >> >> > 2.
    >> >> >> >> > If any fall between these dates then count as 1 or true. If
    >> >> >> >> > the
    >> >> >> >> > dates
    >> >> >> >> > are
    >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    >> >> >> >> > at
    >> >> >> >> > all.
    >> >> >> >> > The
    >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    >> >> >> >> > everything
    >> >> >> >> > before
    >> >> >> >> > date 1 as well. Please help me.
    >> >> >> >>
    >> >> >> >>
    >> >> >> >>
    >> >> >>
    >> >> >>
    >> >> >>
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  86. #86
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    e-mail - see my profile

    "Biff" wrote:

    > Can you send me a copy of the file? If so, let me know how to contact you.
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > Biff, it still counts dates prior to F1.
    > >
    > > "Biff" wrote:
    > >
    > >> Hi!
    > >>
    > >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    > >> >not
    > >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > >> >counts H5.
    > >>
    > >> OK, that's where you're not understanding how the formula works. The
    > >> dates
    > >> have to meet both of those conditions to be counted. The date has to be
    > >> >=F1
    > >> AND <=H1.
    > >>
    > >> F1 = 8/27/2004
    > >> H1 = 11/26/2004
    > >>
    > >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    > >>
    > >> So this is how it gets evaluated:
    > >>
    > >> FALSE * TRUE = 0 (not counted)
    > >>
    > >> And the formula does the same thing for the other dates so that you have
    > >> an
    > >> array that looks like this:
    > >>
    > >> H5 = 6/17/2004 = FALSE * TRUE = 0
    > >> J5 = 1/11/2005 = TRUE * FALSE = 0
    > >> L5 = 10/18/2004 = TRUE * TRUE = 1
    > >>
    > >> So, the only date counted is in L5.
    > >>
    > >> This formula is a little more robust in that it accounts for empty cells:
    > >>
    > >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > The dates in F1 and H1 are a 2 month span.
    > >> > F1 =TODAY()-365 H1 =TODAY()-305.
    > >> >
    > >> > H5 is 6/17/04
    > >> > J5 is 1/11/05
    > >> > L5 is 10/18/04
    > >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    > >> > not
    > >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    > >> > it
    > >> > counts H5. I need it to count only the dates which fall in between F1
    > >> > and
    > >> > H1. I don't know how to combine the equation to make it fit Both
    > >> > criteria
    > >> > at
    > >> > the same time. How DO you learn all this stuff?
    > >> >
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> OK, maybe if you give some examples of what to count and when...
    > >> >>
    > >> >> For example....
    > >> >>
    > >> >> F1 = 1/1/2005
    > >> >> H1 = 1/2/2005
    > >> >>
    > >> >> H5 = 1/1/2005
    > >> >> J5 = 1/10/2005
    > >> >> L5 = blank (empty cell)
    > >> >>
    > >> >> What result would you expect from that example? Based on my
    > >> >> understanding
    > >> >> of
    > >> >> what you want I would think the result should be 1. Also, you didn't
    > >> >> really
    > >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    > >> >> said
    > >> >> "within" and a literal reading of that would exclude both of the dates
    > >> >> in
    > >> >> my
    > >> >> example.
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> > It is a date cell. It says Type : date
    > >> >> >
    > >> >> > "Biff" wrote:
    > >> >> >
    > >> >> >> Are you sure that the dates are true Excel dates?
    > >> >> >>
    > >> >> >> True Excel dates are really numbers with a special format.
    > >> >> >>
    > >> >> >> Check the formats for your date cells. If you select a date cell
    > >> >> >> then
    > >> >> >> right
    > >> >> >> click and choose Format Cells what format does it show as being
    > >> >> >> used?
    > >> >> >>
    > >> >> >> Biff
    > >> >> >>
    > >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> news:[email protected]...
    > >> >> >> >I tried all 3 suggestions, but they didn't work.
    > >> >> >> >
    > >> >> >> > "Biff" wrote:
    > >> >> >> >
    > >> >> >> >> Hi!
    > >> >> >> >>
    > >> >> >> >> See this:
    > >> >> >> >>
    > >> >> >> >> http://tinyurl.com/aml9c
    > >> >> >> >>
    > >> >> >> >> Biff
    > >> >> >> >>
    > >> >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> >> news:[email protected]...
    > >> >> >> >> >I am tracking dates of service and I need to be able to see if
    > >> >> >> >> >dates
    > >> >> >> >> >fall
    > >> >> >> >> > within a certain time frame.
    > >> >> >> >> > column F Column H
    > >> >> >> >> > row 1 (date 1) (date 2)
    > >> >> >> >> >
    > >> >> >> >> >
    > >> >> >> >> > column H column J column L
    > >> >> >> >> > (Client 1) date date date
    > >> >> >> >> >
    > >> >> >> >> > I want to see if any of the clients dates fall between date 1
    > >> >> >> >> > and
    > >> >> >> >> > date
    > >> >> >> >> > 2.
    > >> >> >> >> > If any fall between these dates then count as 1 or true. If
    > >> >> >> >> > the
    > >> >> >> >> > dates
    > >> >> >> >> > are
    > >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    > >> >> >> >> > at
    > >> >> >> >> > all.
    > >> >> >> >> > The
    > >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > >> >> >> >> > everything
    > >> >> >> >> > before
    > >> >> >> >> > date 1 as well. Please help me.
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  87. #87
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?


    [display name][email protected]


    > > Can you send me a copy of the file? If so, let me know how to contact you.
    > >
    > > Biff
    > >
    > > "Pe66les" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > Biff, it still counts dates prior to F1.
    > > >
    > > > "Biff" wrote:
    > > >
    > > >> Hi!
    > > >>
    > > >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    > > >> >not
    > > >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > > >> >counts H5.
    > > >>
    > > >> OK, that's where you're not understanding how the formula works. The
    > > >> dates
    > > >> have to meet both of those conditions to be counted. The date has to be
    > > >> >=F1
    > > >> AND <=H1.
    > > >>
    > > >> F1 = 8/27/2004
    > > >> H1 = 11/26/2004
    > > >>
    > > >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    > > >>
    > > >> So this is how it gets evaluated:
    > > >>
    > > >> FALSE * TRUE = 0 (not counted)
    > > >>
    > > >> And the formula does the same thing for the other dates so that you have
    > > >> an
    > > >> array that looks like this:
    > > >>
    > > >> H5 = 6/17/2004 = FALSE * TRUE = 0
    > > >> J5 = 1/11/2005 = TRUE * FALSE = 0
    > > >> L5 = 10/18/2004 = TRUE * TRUE = 1
    > > >>
    > > >> So, the only date counted is in L5.
    > > >>
    > > >> This formula is a little more robust in that it accounts for empty cells:
    > > >>
    > > >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    > > >>
    > > >> Biff
    > > >>
    > > >> "Pe66les" <[email protected]> wrote in message
    > > >> news:[email protected]...
    > > >> > The dates in F1 and H1 are a 2 month span.
    > > >> > F1 =TODAY()-365 H1 =TODAY()-305.
    > > >> >
    > > >> > H5 is 6/17/04
    > > >> > J5 is 1/11/05
    > > >> > L5 is 10/18/04
    > > >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    > > >> > not
    > > >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    > > >> > it
    > > >> > counts H5. I need it to count only the dates which fall in between F1
    > > >> > and
    > > >> > H1. I don't know how to combine the equation to make it fit Both
    > > >> > criteria
    > > >> > at
    > > >> > the same time. How DO you learn all this stuff?
    > > >> >
    > > >> >
    > > >> > "Biff" wrote:
    > > >> >
    > > >> >> OK, maybe if you give some examples of what to count and when...
    > > >> >>
    > > >> >> For example....
    > > >> >>
    > > >> >> F1 = 1/1/2005
    > > >> >> H1 = 1/2/2005
    > > >> >>
    > > >> >> H5 = 1/1/2005
    > > >> >> J5 = 1/10/2005
    > > >> >> L5 = blank (empty cell)
    > > >> >>
    > > >> >> What result would you expect from that example? Based on my
    > > >> >> understanding
    > > >> >> of
    > > >> >> what you want I would think the result should be 1. Also, you didn't
    > > >> >> really
    > > >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    > > >> >> said
    > > >> >> "within" and a literal reading of that would exclude both of the dates
    > > >> >> in
    > > >> >> my
    > > >> >> example.
    > > >> >>
    > > >> >> Biff
    > > >> >>
    > > >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> news:[email protected]...
    > > >> >> > It is a date cell. It says Type : date
    > > >> >> >
    > > >> >> > "Biff" wrote:
    > > >> >> >
    > > >> >> >> Are you sure that the dates are true Excel dates?
    > > >> >> >>
    > > >> >> >> True Excel dates are really numbers with a special format.
    > > >> >> >>
    > > >> >> >> Check the formats for your date cells. If you select a date cell
    > > >> >> >> then
    > > >> >> >> right
    > > >> >> >> click and choose Format Cells what format does it show as being
    > > >> >> >> used?
    > > >> >> >>
    > > >> >> >> Biff
    > > >> >> >>
    > > >> >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> >> news:[email protected]...
    > > >> >> >> >I tried all 3 suggestions, but they didn't work.
    > > >> >> >> >
    > > >> >> >> > "Biff" wrote:
    > > >> >> >> >
    > > >> >> >> >> Hi!
    > > >> >> >> >>
    > > >> >> >> >> See this:
    > > >> >> >> >>
    > > >> >> >> >> http://tinyurl.com/aml9c
    > > >> >> >> >>
    > > >> >> >> >> Biff
    > > >> >> >> >>
    > > >> >> >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> >> >> news:[email protected]...
    > > >> >> >> >> >I am tracking dates of service and I need to be able to see if
    > > >> >> >> >> >dates
    > > >> >> >> >> >fall
    > > >> >> >> >> > within a certain time frame.
    > > >> >> >> >> > column F Column H
    > > >> >> >> >> > row 1 (date 1) (date 2)
    > > >> >> >> >> >
    > > >> >> >> >> >
    > > >> >> >> >> > column H column J column L
    > > >> >> >> >> > (Client 1) date date date
    > > >> >> >> >> >
    > > >> >> >> >> > I want to see if any of the clients dates fall between date 1
    > > >> >> >> >> > and
    > > >> >> >> >> > date
    > > >> >> >> >> > 2.
    > > >> >> >> >> > If any fall between these dates then count as 1 or true. If
    > > >> >> >> >> > the
    > > >> >> >> >> > dates
    > > >> >> >> >> > are
    > > >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    > > >> >> >> >> > at
    > > >> >> >> >> > all.
    > > >> >> >> >> > The
    > > >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > > >> >> >> >> > everything
    > > >> >> >> >> > before
    > > >> >> >> >> > date 1 as well. Please help me.
    > > >> >> >> >>
    > > >> >> >> >>
    > > >> >> >> >>
    > > >> >> >>
    > > >> >> >>
    > > >> >> >>
    > > >> >>
    > > >> >>
    > > >> >>
    > > >>
    > > >>
    > > >>

    > >
    > >
    > >


  88. #88
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    <[email protected]> wrote:

    >I am tracking dates of service and I need to be able to see if dates fall
    >within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    >(Client 1) date date date
    >
    >I want to see if any of the clients dates fall between date 1 and date 2.
    >If any fall between these dates then count as 1 or true. If the dates are
    >before date 1 or after date 2, then I don't want to count them at all. The
    >problem is if I use > date 1 and < date 2 then it counts everything before
    >date 1 as well. Please help me.



    With the range of dates that you are checking named "rng" (you can substitute a
    cell reference for this):

    =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))

    date1 and date2 may be cell references also.


    --ron

  89. #89
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    With the range of dates that you are checking named "rng" ----How do I do this?

    "Ron Rosenfeld" wrote:

    > On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    > >I am tracking dates of service and I need to be able to see if dates fall
    > >within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > >(Client 1) date date date
    > >
    > >I want to see if any of the clients dates fall between date 1 and date 2.
    > >If any fall between these dates then count as 1 or true. If the dates are
    > >before date 1 or after date 2, then I don't want to count them at all. The
    > >problem is if I use > date 1 and < date 2 then it counts everything before
    > >date 1 as well. Please help me.

    >
    >
    > With the range of dates that you are checking named "rng" (you can substitute a
    > cell reference for this):
    >
    > =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))
    >
    > date1 and date2 may be cell references also.
    >
    >
    > --ron
    >


  90. #90
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    I tried your suggestion but it is still counting 1 when it should be 0,
    This is what I typed:
    =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))
    What am I doing wrong?


    "Ron Rosenfeld" wrote:

    > On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    > >I am tracking dates of service and I need to be able to see if dates fall
    > >within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > >(Client 1) date date date
    > >
    > >I want to see if any of the clients dates fall between date 1 and date 2.
    > >If any fall between these dates then count as 1 or true. If the dates are
    > >before date 1 or after date 2, then I don't want to count them at all. The
    > >problem is if I use > date 1 and < date 2 then it counts everything before
    > >date 1 as well. Please help me.

    >
    >
    > With the range of dates that you are checking named "rng" (you can substitute a
    > cell reference for this):
    >
    > =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))
    >
    > date1 and date2 may be cell references also.
    >
    >
    > --ron
    >


  91. #91
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Sat, 27 Aug 2005 01:33:01 -0700, "Pe66les"
    <[email protected]> wrote:

    >I tried your suggestion but it is still counting 1 when it should be 0,
    >This is what I typed:
    >=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))



    >What am I doing wrong?
    >


    Uh, you are NOT using the equation I posted. You have the comparison operator
    incorrect in your second COUNTIF function.

    Assuming F1 contains your earlier date, and H1 contains your later date.

    Change yours to:

    =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))


    --ron

  92. #92
    Pe66les
    Guest

    RE: How do I calculate if a date is in a certain time frame?

    WOOOHOOOO!!!!! I did it!!!! I used:
    =3-COUNTIF(H5:L5,">="&$H$1)-COUNTIF(H5:L5,"<="&$F$1)
    It worked!!!!! Thank You so much for helping me figure out what I needed
    to do!!!

    "Pe66les" wrote:

    > I am tracking dates of service and I need to be able to see if dates fall
    > within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    > (Client 1) date date date
    >
    > I want to see if any of the clients dates fall between date 1 and date 2.
    > If any fall between these dates then count as 1 or true. If the dates are
    > before date 1 or after date 2, then I don't want to count them at all. The
    > problem is if I use > date 1 and < date 2 then it counts everything before
    > date 1 as well. Please help me.


  93. #93
    Pe66les
    Guest

    RE: How do I calculate if a date is in a certain time frame?

    OK, You get A Double WOOOOOHOOOO!!!!! I corrected my mistake and your
    equation is much better than mine. Thank you!!!! Thank you!!! Thank you!!!

    "Pe66les" wrote:

    > WOOOHOOOO!!!!! I did it!!!! I used:
    > =3-COUNTIF(H5:L5,">="&$H$1)-COUNTIF(H5:L5,"<="&$F$1)
    > It worked!!!!! Thank You so much for helping me figure out what I needed
    > to do!!!
    >
    > "Pe66les" wrote:
    >
    > > I am tracking dates of service and I need to be able to see if dates fall
    > > within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > > (Client 1) date date date
    > >
    > > I want to see if any of the clients dates fall between date 1 and date 2.
    > > If any fall between these dates then count as 1 or true. If the dates are
    > > before date 1 or after date 2, then I don't want to count them at all. The
    > > problem is if I use > date 1 and < date 2 then it counts everything before
    > > date 1 as well. Please help me.


  94. #94
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    >=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))

    Hmmm...

    If that works then so should:

    =IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0)

    I was accounting for the non-contiguous range and the possibilty of other
    numeric data within the range, but even if you leave that out:

    =IF(SUMPRODUCT(--(H5:L5>=F1),--(H5:L5<=H1)),1,0)

    That should also work.

    I don't get it!

    Biff

    "Ron Rosenfeld" <[email protected]> wrote in message
    news:[email protected]...
    > On Sat, 27 Aug 2005 01:33:01 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    >>I tried your suggestion but it is still counting 1 when it should be 0,
    >>This is what I typed:
    >>=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))

    >
    >
    >>What am I doing wrong?
    >>

    >
    > Uh, you are NOT using the equation I posted. You have the comparison
    > operator
    > incorrect in your second COUNTIF function.
    >
    > Assuming F1 contains your earlier date, and H1 contains your later date.
    >
    > Change yours to:
    >
    > =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))
    >
    >
    > --ron




  95. #95
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Sat, 27 Aug 2005 14:48:41 -0400, "Biff" <[email protected]> wrote:

    >>=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))

    >
    >Hmmm...
    >
    >If that works then so should:
    >
    >=IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0)
    >
    >I was accounting for the non-contiguous range and the possibilty of other
    >numeric data within the range, but even if you leave that out:
    >
    >=IF(SUMPRODUCT(--(H5:L5>=F1),--(H5:L5<=H1)),1,0)
    >
    >That should also work.
    >
    >I don't get it!


    When Pe66les posted the variation of *my* formula that he actually tried, it
    was incorrect. Perhaps the same thing was going on with the translation of
    yours.


    --ron

  96. #96
    Pe66les
    Guest

    How do I calculate if a date is in a certain time frame?

    I am tracking dates of service and I need to be able to see if dates fall
    within a certain time frame.
    column F Column H
    row 1 (date 1) (date 2)


    column H column J column L
    (Client 1) date date date

    I want to see if any of the clients dates fall between date 1 and date 2.
    If any fall between these dates then count as 1 or true. If the dates are
    before date 1 or after date 2, then I don't want to count them at all. The
    problem is if I use > date 1 and < date 2 then it counts everything before
    date 1 as well. Please help me.

  97. #97
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Hi!

    See this:

    http://tinyurl.com/aml9c

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    >I am tracking dates of service and I need to be able to see if dates fall
    > within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    > (Client 1) date date date
    >
    > I want to see if any of the clients dates fall between date 1 and date 2.
    > If any fall between these dates then count as 1 or true. If the dates are
    > before date 1 or after date 2, then I don't want to count them at all.
    > The
    > problem is if I use > date 1 and < date 2 then it counts everything before
    > date 1 as well. Please help me.




  98. #98
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    I tried all 3 suggestions, but they didn't work.

    "Biff" wrote:

    > Hi!
    >
    > See this:
    >
    > http://tinyurl.com/aml9c
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > >I am tracking dates of service and I need to be able to see if dates fall
    > > within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > > (Client 1) date date date
    > >
    > > I want to see if any of the clients dates fall between date 1 and date 2.
    > > If any fall between these dates then count as 1 or true. If the dates are
    > > before date 1 or after date 2, then I don't want to count them at all.
    > > The
    > > problem is if I use > date 1 and < date 2 then it counts everything before
    > > date 1 as well. Please help me.

    >
    >
    >


  99. #99
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Are you sure that the dates are true Excel dates?

    True Excel dates are really numbers with a special format.

    Check the formats for your date cells. If you select a date cell then right
    click and choose Format Cells what format does it show as being used?

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    >I tried all 3 suggestions, but they didn't work.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> See this:
    >>
    >> http://tinyurl.com/aml9c
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I am tracking dates of service and I need to be able to see if dates
    >> >fall
    >> > within a certain time frame.
    >> > column F Column H
    >> > row 1 (date 1) (date 2)
    >> >
    >> >
    >> > column H column J column L
    >> > (Client 1) date date date
    >> >
    >> > I want to see if any of the clients dates fall between date 1 and date
    >> > 2.
    >> > If any fall between these dates then count as 1 or true. If the dates
    >> > are
    >> > before date 1 or after date 2, then I don't want to count them at all.
    >> > The
    >> > problem is if I use > date 1 and < date 2 then it counts everything
    >> > before
    >> > date 1 as well. Please help me.

    >>
    >>
    >>




  100. #100
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    It is a date cell. It says Type : date

    "Biff" wrote:

    > Are you sure that the dates are true Excel dates?
    >
    > True Excel dates are really numbers with a special format.
    >
    > Check the formats for your date cells. If you select a date cell then right
    > click and choose Format Cells what format does it show as being used?
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > >I tried all 3 suggestions, but they didn't work.
    > >
    > > "Biff" wrote:
    > >
    > >> Hi!
    > >>
    > >> See this:
    > >>
    > >> http://tinyurl.com/aml9c
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> >I am tracking dates of service and I need to be able to see if dates
    > >> >fall
    > >> > within a certain time frame.
    > >> > column F Column H
    > >> > row 1 (date 1) (date 2)
    > >> >
    > >> >
    > >> > column H column J column L
    > >> > (Client 1) date date date
    > >> >
    > >> > I want to see if any of the clients dates fall between date 1 and date
    > >> > 2.
    > >> > If any fall between these dates then count as 1 or true. If the dates
    > >> > are
    > >> > before date 1 or after date 2, then I don't want to count them at all.
    > >> > The
    > >> > problem is if I use > date 1 and < date 2 then it counts everything
    > >> > before
    > >> > date 1 as well. Please help me.
    > >>
    > >>
    > >>

    >
    >
    >


  101. #101
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    OK, maybe if you give some examples of what to count and when...

    For example....

    F1 = 1/1/2005
    H1 = 1/2/2005

    H5 = 1/1/2005
    J5 = 1/10/2005
    L5 = blank (empty cell)

    What result would you expect from that example? Based on my understanding of
    what you want I would think the result should be 1. Also, you didn't really
    say whether you actually meant >= and <= the dates in F1 and H1. You said
    "within" and a literal reading of that would exclude both of the dates in my
    example.

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > It is a date cell. It says Type : date
    >
    > "Biff" wrote:
    >
    >> Are you sure that the dates are true Excel dates?
    >>
    >> True Excel dates are really numbers with a special format.
    >>
    >> Check the formats for your date cells. If you select a date cell then
    >> right
    >> click and choose Format Cells what format does it show as being used?
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I tried all 3 suggestions, but they didn't work.
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> Hi!
    >> >>
    >> >> See this:
    >> >>
    >> >> http://tinyurl.com/aml9c
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> >I am tracking dates of service and I need to be able to see if dates
    >> >> >fall
    >> >> > within a certain time frame.
    >> >> > column F Column H
    >> >> > row 1 (date 1) (date 2)
    >> >> >
    >> >> >
    >> >> > column H column J column L
    >> >> > (Client 1) date date date
    >> >> >
    >> >> > I want to see if any of the clients dates fall between date 1 and
    >> >> > date
    >> >> > 2.
    >> >> > If any fall between these dates then count as 1 or true. If the
    >> >> > dates
    >> >> > are
    >> >> > before date 1 or after date 2, then I don't want to count them at
    >> >> > all.
    >> >> > The
    >> >> > problem is if I use > date 1 and < date 2 then it counts everything
    >> >> > before
    >> >> > date 1 as well. Please help me.
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  102. #102
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    The dates in F1 and H1 are a 2 month span.
    F1 =TODAY()-365 H1 =TODAY()-305.

    H5 is 6/17/04
    J5 is 1/11/05
    L5 is 10/18/04
    The only cell which would count is L5. H5 is too long ago, and J5 is not
    long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    counts H5. I need it to count only the dates which fall in between F1 and
    H1. I don't know how to combine the equation to make it fit Both criteria at
    the same time. How DO you learn all this stuff?


    "Biff" wrote:

    > OK, maybe if you give some examples of what to count and when...
    >
    > For example....
    >
    > F1 = 1/1/2005
    > H1 = 1/2/2005
    >
    > H5 = 1/1/2005
    > J5 = 1/10/2005
    > L5 = blank (empty cell)
    >
    > What result would you expect from that example? Based on my understanding of
    > what you want I would think the result should be 1. Also, you didn't really
    > say whether you actually meant >= and <= the dates in F1 and H1. You said
    > "within" and a literal reading of that would exclude both of the dates in my
    > example.
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > It is a date cell. It says Type : date
    > >
    > > "Biff" wrote:
    > >
    > >> Are you sure that the dates are true Excel dates?
    > >>
    > >> True Excel dates are really numbers with a special format.
    > >>
    > >> Check the formats for your date cells. If you select a date cell then
    > >> right
    > >> click and choose Format Cells what format does it show as being used?
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> >I tried all 3 suggestions, but they didn't work.
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> Hi!
    > >> >>
    > >> >> See this:
    > >> >>
    > >> >> http://tinyurl.com/aml9c
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> >I am tracking dates of service and I need to be able to see if dates
    > >> >> >fall
    > >> >> > within a certain time frame.
    > >> >> > column F Column H
    > >> >> > row 1 (date 1) (date 2)
    > >> >> >
    > >> >> >
    > >> >> > column H column J column L
    > >> >> > (Client 1) date date date
    > >> >> >
    > >> >> > I want to see if any of the clients dates fall between date 1 and
    > >> >> > date
    > >> >> > 2.
    > >> >> > If any fall between these dates then count as 1 or true. If the
    > >> >> > dates
    > >> >> > are
    > >> >> > before date 1 or after date 2, then I don't want to count them at
    > >> >> > all.
    > >> >> > The
    > >> >> > problem is if I use > date 1 and < date 2 then it counts everything
    > >> >> > before
    > >> >> > date 1 as well. Please help me.
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  103. #103
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Hi!

    >The only cell which would count is L5. H5 is too long ago, and J5 is not
    >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    >counts H5.


    OK, that's where you're not understanding how the formula works. The dates
    have to meet both of those conditions to be counted. The date has to be >=F1
    AND <=H1.

    F1 = 8/27/2004
    H1 = 11/26/2004

    H5 = 6/17/2004 is NOT >F1 but IS <H1

    So this is how it gets evaluated:

    FALSE * TRUE = 0 (not counted)

    And the formula does the same thing for the other dates so that you have an
    array that looks like this:

    H5 = 6/17/2004 = FALSE * TRUE = 0
    J5 = 1/11/2005 = TRUE * FALSE = 0
    L5 = 10/18/2004 = TRUE * TRUE = 1

    So, the only date counted is in L5.

    This formula is a little more robust in that it accounts for empty cells:

    =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > The dates in F1 and H1 are a 2 month span.
    > F1 =TODAY()-365 H1 =TODAY()-305.
    >
    > H5 is 6/17/04
    > J5 is 1/11/05
    > L5 is 10/18/04
    > The only cell which would count is L5. H5 is too long ago, and J5 is not
    > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > counts H5. I need it to count only the dates which fall in between F1 and
    > H1. I don't know how to combine the equation to make it fit Both criteria
    > at
    > the same time. How DO you learn all this stuff?
    >
    >
    > "Biff" wrote:
    >
    >> OK, maybe if you give some examples of what to count and when...
    >>
    >> For example....
    >>
    >> F1 = 1/1/2005
    >> H1 = 1/2/2005
    >>
    >> H5 = 1/1/2005
    >> J5 = 1/10/2005
    >> L5 = blank (empty cell)
    >>
    >> What result would you expect from that example? Based on my understanding
    >> of
    >> what you want I would think the result should be 1. Also, you didn't
    >> really
    >> say whether you actually meant >= and <= the dates in F1 and H1. You said
    >> "within" and a literal reading of that would exclude both of the dates in
    >> my
    >> example.
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > It is a date cell. It says Type : date
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> Are you sure that the dates are true Excel dates?
    >> >>
    >> >> True Excel dates are really numbers with a special format.
    >> >>
    >> >> Check the formats for your date cells. If you select a date cell then
    >> >> right
    >> >> click and choose Format Cells what format does it show as being used?
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> >I tried all 3 suggestions, but they didn't work.
    >> >> >
    >> >> > "Biff" wrote:
    >> >> >
    >> >> >> Hi!
    >> >> >>
    >> >> >> See this:
    >> >> >>
    >> >> >> http://tinyurl.com/aml9c
    >> >> >>
    >> >> >> Biff
    >> >> >>
    >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> news:[email protected]...
    >> >> >> >I am tracking dates of service and I need to be able to see if
    >> >> >> >dates
    >> >> >> >fall
    >> >> >> > within a certain time frame.
    >> >> >> > column F Column H
    >> >> >> > row 1 (date 1) (date 2)
    >> >> >> >
    >> >> >> >
    >> >> >> > column H column J column L
    >> >> >> > (Client 1) date date date
    >> >> >> >
    >> >> >> > I want to see if any of the clients dates fall between date 1 and
    >> >> >> > date
    >> >> >> > 2.
    >> >> >> > If any fall between these dates then count as 1 or true. If the
    >> >> >> > dates
    >> >> >> > are
    >> >> >> > before date 1 or after date 2, then I don't want to count them at
    >> >> >> > all.
    >> >> >> > The
    >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    >> >> >> > everything
    >> >> >> > before
    >> >> >> > date 1 as well. Please help me.
    >> >> >>
    >> >> >>
    >> >> >>
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  104. #104
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Biff, it still counts dates prior to F1.

    "Biff" wrote:

    > Hi!
    >
    > >The only cell which would count is L5. H5 is too long ago, and J5 is not
    > >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > >counts H5.

    >
    > OK, that's where you're not understanding how the formula works. The dates
    > have to meet both of those conditions to be counted. The date has to be >=F1
    > AND <=H1.
    >
    > F1 = 8/27/2004
    > H1 = 11/26/2004
    >
    > H5 = 6/17/2004 is NOT >F1 but IS <H1
    >
    > So this is how it gets evaluated:
    >
    > FALSE * TRUE = 0 (not counted)
    >
    > And the formula does the same thing for the other dates so that you have an
    > array that looks like this:
    >
    > H5 = 6/17/2004 = FALSE * TRUE = 0
    > J5 = 1/11/2005 = TRUE * FALSE = 0
    > L5 = 10/18/2004 = TRUE * TRUE = 1
    >
    > So, the only date counted is in L5.
    >
    > This formula is a little more robust in that it accounts for empty cells:
    >
    > =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > The dates in F1 and H1 are a 2 month span.
    > > F1 =TODAY()-365 H1 =TODAY()-305.
    > >
    > > H5 is 6/17/04
    > > J5 is 1/11/05
    > > L5 is 10/18/04
    > > The only cell which would count is L5. H5 is too long ago, and J5 is not
    > > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > > counts H5. I need it to count only the dates which fall in between F1 and
    > > H1. I don't know how to combine the equation to make it fit Both criteria
    > > at
    > > the same time. How DO you learn all this stuff?
    > >
    > >
    > > "Biff" wrote:
    > >
    > >> OK, maybe if you give some examples of what to count and when...
    > >>
    > >> For example....
    > >>
    > >> F1 = 1/1/2005
    > >> H1 = 1/2/2005
    > >>
    > >> H5 = 1/1/2005
    > >> J5 = 1/10/2005
    > >> L5 = blank (empty cell)
    > >>
    > >> What result would you expect from that example? Based on my understanding
    > >> of
    > >> what you want I would think the result should be 1. Also, you didn't
    > >> really
    > >> say whether you actually meant >= and <= the dates in F1 and H1. You said
    > >> "within" and a literal reading of that would exclude both of the dates in
    > >> my
    > >> example.
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > It is a date cell. It says Type : date
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> Are you sure that the dates are true Excel dates?
    > >> >>
    > >> >> True Excel dates are really numbers with a special format.
    > >> >>
    > >> >> Check the formats for your date cells. If you select a date cell then
    > >> >> right
    > >> >> click and choose Format Cells what format does it show as being used?
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> >I tried all 3 suggestions, but they didn't work.
    > >> >> >
    > >> >> > "Biff" wrote:
    > >> >> >
    > >> >> >> Hi!
    > >> >> >>
    > >> >> >> See this:
    > >> >> >>
    > >> >> >> http://tinyurl.com/aml9c
    > >> >> >>
    > >> >> >> Biff
    > >> >> >>
    > >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> news:[email protected]...
    > >> >> >> >I am tracking dates of service and I need to be able to see if
    > >> >> >> >dates
    > >> >> >> >fall
    > >> >> >> > within a certain time frame.
    > >> >> >> > column F Column H
    > >> >> >> > row 1 (date 1) (date 2)
    > >> >> >> >
    > >> >> >> >
    > >> >> >> > column H column J column L
    > >> >> >> > (Client 1) date date date
    > >> >> >> >
    > >> >> >> > I want to see if any of the clients dates fall between date 1 and
    > >> >> >> > date
    > >> >> >> > 2.
    > >> >> >> > If any fall between these dates then count as 1 or true. If the
    > >> >> >> > dates
    > >> >> >> > are
    > >> >> >> > before date 1 or after date 2, then I don't want to count them at
    > >> >> >> > all.
    > >> >> >> > The
    > >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > >> >> >> > everything
    > >> >> >> > before
    > >> >> >> > date 1 as well. Please help me.
    > >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  105. #105
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Can you send me a copy of the file? If so, let me know how to contact you.

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > Biff, it still counts dates prior to F1.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    >> >not
    >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    >> >counts H5.

    >>
    >> OK, that's where you're not understanding how the formula works. The
    >> dates
    >> have to meet both of those conditions to be counted. The date has to be
    >> >=F1

    >> AND <=H1.
    >>
    >> F1 = 8/27/2004
    >> H1 = 11/26/2004
    >>
    >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    >>
    >> So this is how it gets evaluated:
    >>
    >> FALSE * TRUE = 0 (not counted)
    >>
    >> And the formula does the same thing for the other dates so that you have
    >> an
    >> array that looks like this:
    >>
    >> H5 = 6/17/2004 = FALSE * TRUE = 0
    >> J5 = 1/11/2005 = TRUE * FALSE = 0
    >> L5 = 10/18/2004 = TRUE * TRUE = 1
    >>
    >> So, the only date counted is in L5.
    >>
    >> This formula is a little more robust in that it accounts for empty cells:
    >>
    >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > The dates in F1 and H1 are a 2 month span.
    >> > F1 =TODAY()-365 H1 =TODAY()-305.
    >> >
    >> > H5 is 6/17/04
    >> > J5 is 1/11/05
    >> > L5 is 10/18/04
    >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    >> > not
    >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    >> > it
    >> > counts H5. I need it to count only the dates which fall in between F1
    >> > and
    >> > H1. I don't know how to combine the equation to make it fit Both
    >> > criteria
    >> > at
    >> > the same time. How DO you learn all this stuff?
    >> >
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> OK, maybe if you give some examples of what to count and when...
    >> >>
    >> >> For example....
    >> >>
    >> >> F1 = 1/1/2005
    >> >> H1 = 1/2/2005
    >> >>
    >> >> H5 = 1/1/2005
    >> >> J5 = 1/10/2005
    >> >> L5 = blank (empty cell)
    >> >>
    >> >> What result would you expect from that example? Based on my
    >> >> understanding
    >> >> of
    >> >> what you want I would think the result should be 1. Also, you didn't
    >> >> really
    >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    >> >> said
    >> >> "within" and a literal reading of that would exclude both of the dates
    >> >> in
    >> >> my
    >> >> example.
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> > It is a date cell. It says Type : date
    >> >> >
    >> >> > "Biff" wrote:
    >> >> >
    >> >> >> Are you sure that the dates are true Excel dates?
    >> >> >>
    >> >> >> True Excel dates are really numbers with a special format.
    >> >> >>
    >> >> >> Check the formats for your date cells. If you select a date cell
    >> >> >> then
    >> >> >> right
    >> >> >> click and choose Format Cells what format does it show as being
    >> >> >> used?
    >> >> >>
    >> >> >> Biff
    >> >> >>
    >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> news:[email protected]...
    >> >> >> >I tried all 3 suggestions, but they didn't work.
    >> >> >> >
    >> >> >> > "Biff" wrote:
    >> >> >> >
    >> >> >> >> Hi!
    >> >> >> >>
    >> >> >> >> See this:
    >> >> >> >>
    >> >> >> >> http://tinyurl.com/aml9c
    >> >> >> >>
    >> >> >> >> Biff
    >> >> >> >>
    >> >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> >> news:[email protected]...
    >> >> >> >> >I am tracking dates of service and I need to be able to see if
    >> >> >> >> >dates
    >> >> >> >> >fall
    >> >> >> >> > within a certain time frame.
    >> >> >> >> > column F Column H
    >> >> >> >> > row 1 (date 1) (date 2)
    >> >> >> >> >
    >> >> >> >> >
    >> >> >> >> > column H column J column L
    >> >> >> >> > (Client 1) date date date
    >> >> >> >> >
    >> >> >> >> > I want to see if any of the clients dates fall between date 1
    >> >> >> >> > and
    >> >> >> >> > date
    >> >> >> >> > 2.
    >> >> >> >> > If any fall between these dates then count as 1 or true. If
    >> >> >> >> > the
    >> >> >> >> > dates
    >> >> >> >> > are
    >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    >> >> >> >> > at
    >> >> >> >> > all.
    >> >> >> >> > The
    >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    >> >> >> >> > everything
    >> >> >> >> > before
    >> >> >> >> > date 1 as well. Please help me.
    >> >> >> >>
    >> >> >> >>
    >> >> >> >>
    >> >> >>
    >> >> >>
    >> >> >>
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  106. #106
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    e-mail - see my profile

    "Biff" wrote:

    > Can you send me a copy of the file? If so, let me know how to contact you.
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > Biff, it still counts dates prior to F1.
    > >
    > > "Biff" wrote:
    > >
    > >> Hi!
    > >>
    > >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    > >> >not
    > >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > >> >counts H5.
    > >>
    > >> OK, that's where you're not understanding how the formula works. The
    > >> dates
    > >> have to meet both of those conditions to be counted. The date has to be
    > >> >=F1
    > >> AND <=H1.
    > >>
    > >> F1 = 8/27/2004
    > >> H1 = 11/26/2004
    > >>
    > >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    > >>
    > >> So this is how it gets evaluated:
    > >>
    > >> FALSE * TRUE = 0 (not counted)
    > >>
    > >> And the formula does the same thing for the other dates so that you have
    > >> an
    > >> array that looks like this:
    > >>
    > >> H5 = 6/17/2004 = FALSE * TRUE = 0
    > >> J5 = 1/11/2005 = TRUE * FALSE = 0
    > >> L5 = 10/18/2004 = TRUE * TRUE = 1
    > >>
    > >> So, the only date counted is in L5.
    > >>
    > >> This formula is a little more robust in that it accounts for empty cells:
    > >>
    > >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > The dates in F1 and H1 are a 2 month span.
    > >> > F1 =TODAY()-365 H1 =TODAY()-305.
    > >> >
    > >> > H5 is 6/17/04
    > >> > J5 is 1/11/05
    > >> > L5 is 10/18/04
    > >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    > >> > not
    > >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    > >> > it
    > >> > counts H5. I need it to count only the dates which fall in between F1
    > >> > and
    > >> > H1. I don't know how to combine the equation to make it fit Both
    > >> > criteria
    > >> > at
    > >> > the same time. How DO you learn all this stuff?
    > >> >
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> OK, maybe if you give some examples of what to count and when...
    > >> >>
    > >> >> For example....
    > >> >>
    > >> >> F1 = 1/1/2005
    > >> >> H1 = 1/2/2005
    > >> >>
    > >> >> H5 = 1/1/2005
    > >> >> J5 = 1/10/2005
    > >> >> L5 = blank (empty cell)
    > >> >>
    > >> >> What result would you expect from that example? Based on my
    > >> >> understanding
    > >> >> of
    > >> >> what you want I would think the result should be 1. Also, you didn't
    > >> >> really
    > >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    > >> >> said
    > >> >> "within" and a literal reading of that would exclude both of the dates
    > >> >> in
    > >> >> my
    > >> >> example.
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> > It is a date cell. It says Type : date
    > >> >> >
    > >> >> > "Biff" wrote:
    > >> >> >
    > >> >> >> Are you sure that the dates are true Excel dates?
    > >> >> >>
    > >> >> >> True Excel dates are really numbers with a special format.
    > >> >> >>
    > >> >> >> Check the formats for your date cells. If you select a date cell
    > >> >> >> then
    > >> >> >> right
    > >> >> >> click and choose Format Cells what format does it show as being
    > >> >> >> used?
    > >> >> >>
    > >> >> >> Biff
    > >> >> >>
    > >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> news:[email protected]...
    > >> >> >> >I tried all 3 suggestions, but they didn't work.
    > >> >> >> >
    > >> >> >> > "Biff" wrote:
    > >> >> >> >
    > >> >> >> >> Hi!
    > >> >> >> >>
    > >> >> >> >> See this:
    > >> >> >> >>
    > >> >> >> >> http://tinyurl.com/aml9c
    > >> >> >> >>
    > >> >> >> >> Biff
    > >> >> >> >>
    > >> >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> >> news:[email protected]...
    > >> >> >> >> >I am tracking dates of service and I need to be able to see if
    > >> >> >> >> >dates
    > >> >> >> >> >fall
    > >> >> >> >> > within a certain time frame.
    > >> >> >> >> > column F Column H
    > >> >> >> >> > row 1 (date 1) (date 2)
    > >> >> >> >> >
    > >> >> >> >> >
    > >> >> >> >> > column H column J column L
    > >> >> >> >> > (Client 1) date date date
    > >> >> >> >> >
    > >> >> >> >> > I want to see if any of the clients dates fall between date 1
    > >> >> >> >> > and
    > >> >> >> >> > date
    > >> >> >> >> > 2.
    > >> >> >> >> > If any fall between these dates then count as 1 or true. If
    > >> >> >> >> > the
    > >> >> >> >> > dates
    > >> >> >> >> > are
    > >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    > >> >> >> >> > at
    > >> >> >> >> > all.
    > >> >> >> >> > The
    > >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > >> >> >> >> > everything
    > >> >> >> >> > before
    > >> >> >> >> > date 1 as well. Please help me.
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  107. #107
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?


    [display name][email protected]


    > > Can you send me a copy of the file? If so, let me know how to contact you.
    > >
    > > Biff
    > >
    > > "Pe66les" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > Biff, it still counts dates prior to F1.
    > > >
    > > > "Biff" wrote:
    > > >
    > > >> Hi!
    > > >>
    > > >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    > > >> >not
    > > >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > > >> >counts H5.
    > > >>
    > > >> OK, that's where you're not understanding how the formula works. The
    > > >> dates
    > > >> have to meet both of those conditions to be counted. The date has to be
    > > >> >=F1
    > > >> AND <=H1.
    > > >>
    > > >> F1 = 8/27/2004
    > > >> H1 = 11/26/2004
    > > >>
    > > >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    > > >>
    > > >> So this is how it gets evaluated:
    > > >>
    > > >> FALSE * TRUE = 0 (not counted)
    > > >>
    > > >> And the formula does the same thing for the other dates so that you have
    > > >> an
    > > >> array that looks like this:
    > > >>
    > > >> H5 = 6/17/2004 = FALSE * TRUE = 0
    > > >> J5 = 1/11/2005 = TRUE * FALSE = 0
    > > >> L5 = 10/18/2004 = TRUE * TRUE = 1
    > > >>
    > > >> So, the only date counted is in L5.
    > > >>
    > > >> This formula is a little more robust in that it accounts for empty cells:
    > > >>
    > > >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    > > >>
    > > >> Biff
    > > >>
    > > >> "Pe66les" <[email protected]> wrote in message
    > > >> news:[email protected]...
    > > >> > The dates in F1 and H1 are a 2 month span.
    > > >> > F1 =TODAY()-365 H1 =TODAY()-305.
    > > >> >
    > > >> > H5 is 6/17/04
    > > >> > J5 is 1/11/05
    > > >> > L5 is 10/18/04
    > > >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    > > >> > not
    > > >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    > > >> > it
    > > >> > counts H5. I need it to count only the dates which fall in between F1
    > > >> > and
    > > >> > H1. I don't know how to combine the equation to make it fit Both
    > > >> > criteria
    > > >> > at
    > > >> > the same time. How DO you learn all this stuff?
    > > >> >
    > > >> >
    > > >> > "Biff" wrote:
    > > >> >
    > > >> >> OK, maybe if you give some examples of what to count and when...
    > > >> >>
    > > >> >> For example....
    > > >> >>
    > > >> >> F1 = 1/1/2005
    > > >> >> H1 = 1/2/2005
    > > >> >>
    > > >> >> H5 = 1/1/2005
    > > >> >> J5 = 1/10/2005
    > > >> >> L5 = blank (empty cell)
    > > >> >>
    > > >> >> What result would you expect from that example? Based on my
    > > >> >> understanding
    > > >> >> of
    > > >> >> what you want I would think the result should be 1. Also, you didn't
    > > >> >> really
    > > >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    > > >> >> said
    > > >> >> "within" and a literal reading of that would exclude both of the dates
    > > >> >> in
    > > >> >> my
    > > >> >> example.
    > > >> >>
    > > >> >> Biff
    > > >> >>
    > > >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> news:[email protected]...
    > > >> >> > It is a date cell. It says Type : date
    > > >> >> >
    > > >> >> > "Biff" wrote:
    > > >> >> >
    > > >> >> >> Are you sure that the dates are true Excel dates?
    > > >> >> >>
    > > >> >> >> True Excel dates are really numbers with a special format.
    > > >> >> >>
    > > >> >> >> Check the formats for your date cells. If you select a date cell
    > > >> >> >> then
    > > >> >> >> right
    > > >> >> >> click and choose Format Cells what format does it show as being
    > > >> >> >> used?
    > > >> >> >>
    > > >> >> >> Biff
    > > >> >> >>
    > > >> >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> >> news:[email protected]...
    > > >> >> >> >I tried all 3 suggestions, but they didn't work.
    > > >> >> >> >
    > > >> >> >> > "Biff" wrote:
    > > >> >> >> >
    > > >> >> >> >> Hi!
    > > >> >> >> >>
    > > >> >> >> >> See this:
    > > >> >> >> >>
    > > >> >> >> >> http://tinyurl.com/aml9c
    > > >> >> >> >>
    > > >> >> >> >> Biff
    > > >> >> >> >>
    > > >> >> >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> >> >> news:[email protected]...
    > > >> >> >> >> >I am tracking dates of service and I need to be able to see if
    > > >> >> >> >> >dates
    > > >> >> >> >> >fall
    > > >> >> >> >> > within a certain time frame.
    > > >> >> >> >> > column F Column H
    > > >> >> >> >> > row 1 (date 1) (date 2)
    > > >> >> >> >> >
    > > >> >> >> >> >
    > > >> >> >> >> > column H column J column L
    > > >> >> >> >> > (Client 1) date date date
    > > >> >> >> >> >
    > > >> >> >> >> > I want to see if any of the clients dates fall between date 1
    > > >> >> >> >> > and
    > > >> >> >> >> > date
    > > >> >> >> >> > 2.
    > > >> >> >> >> > If any fall between these dates then count as 1 or true. If
    > > >> >> >> >> > the
    > > >> >> >> >> > dates
    > > >> >> >> >> > are
    > > >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    > > >> >> >> >> > at
    > > >> >> >> >> > all.
    > > >> >> >> >> > The
    > > >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > > >> >> >> >> > everything
    > > >> >> >> >> > before
    > > >> >> >> >> > date 1 as well. Please help me.
    > > >> >> >> >>
    > > >> >> >> >>
    > > >> >> >> >>
    > > >> >> >>
    > > >> >> >>
    > > >> >> >>
    > > >> >>
    > > >> >>
    > > >> >>
    > > >>
    > > >>
    > > >>

    > >
    > >
    > >


  108. #108
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    <[email protected]> wrote:

    >I am tracking dates of service and I need to be able to see if dates fall
    >within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    >(Client 1) date date date
    >
    >I want to see if any of the clients dates fall between date 1 and date 2.
    >If any fall between these dates then count as 1 or true. If the dates are
    >before date 1 or after date 2, then I don't want to count them at all. The
    >problem is if I use > date 1 and < date 2 then it counts everything before
    >date 1 as well. Please help me.



    With the range of dates that you are checking named "rng" (you can substitute a
    cell reference for this):

    =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))

    date1 and date2 may be cell references also.


    --ron

  109. #109
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    With the range of dates that you are checking named "rng" ----How do I do this?

    "Ron Rosenfeld" wrote:

    > On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    > >I am tracking dates of service and I need to be able to see if dates fall
    > >within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > >(Client 1) date date date
    > >
    > >I want to see if any of the clients dates fall between date 1 and date 2.
    > >If any fall between these dates then count as 1 or true. If the dates are
    > >before date 1 or after date 2, then I don't want to count them at all. The
    > >problem is if I use > date 1 and < date 2 then it counts everything before
    > >date 1 as well. Please help me.

    >
    >
    > With the range of dates that you are checking named "rng" (you can substitute a
    > cell reference for this):
    >
    > =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))
    >
    > date1 and date2 may be cell references also.
    >
    >
    > --ron
    >


  110. #110
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    I tried your suggestion but it is still counting 1 when it should be 0,
    This is what I typed:
    =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))
    What am I doing wrong?


    "Ron Rosenfeld" wrote:

    > On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    > >I am tracking dates of service and I need to be able to see if dates fall
    > >within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > >(Client 1) date date date
    > >
    > >I want to see if any of the clients dates fall between date 1 and date 2.
    > >If any fall between these dates then count as 1 or true. If the dates are
    > >before date 1 or after date 2, then I don't want to count them at all. The
    > >problem is if I use > date 1 and < date 2 then it counts everything before
    > >date 1 as well. Please help me.

    >
    >
    > With the range of dates that you are checking named "rng" (you can substitute a
    > cell reference for this):
    >
    > =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))
    >
    > date1 and date2 may be cell references also.
    >
    >
    > --ron
    >


  111. #111
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Sat, 27 Aug 2005 01:33:01 -0700, "Pe66les"
    <[email protected]> wrote:

    >I tried your suggestion but it is still counting 1 when it should be 0,
    >This is what I typed:
    >=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))



    >What am I doing wrong?
    >


    Uh, you are NOT using the equation I posted. You have the comparison operator
    incorrect in your second COUNTIF function.

    Assuming F1 contains your earlier date, and H1 contains your later date.

    Change yours to:

    =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))


    --ron

  112. #112
    Pe66les
    Guest

    RE: How do I calculate if a date is in a certain time frame?

    WOOOHOOOO!!!!! I did it!!!! I used:
    =3-COUNTIF(H5:L5,">="&$H$1)-COUNTIF(H5:L5,"<="&$F$1)
    It worked!!!!! Thank You so much for helping me figure out what I needed
    to do!!!

    "Pe66les" wrote:

    > I am tracking dates of service and I need to be able to see if dates fall
    > within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    > (Client 1) date date date
    >
    > I want to see if any of the clients dates fall between date 1 and date 2.
    > If any fall between these dates then count as 1 or true. If the dates are
    > before date 1 or after date 2, then I don't want to count them at all. The
    > problem is if I use > date 1 and < date 2 then it counts everything before
    > date 1 as well. Please help me.


  113. #113
    Pe66les
    Guest

    RE: How do I calculate if a date is in a certain time frame?

    OK, You get A Double WOOOOOHOOOO!!!!! I corrected my mistake and your
    equation is much better than mine. Thank you!!!! Thank you!!! Thank you!!!

    "Pe66les" wrote:

    > WOOOHOOOO!!!!! I did it!!!! I used:
    > =3-COUNTIF(H5:L5,">="&$H$1)-COUNTIF(H5:L5,"<="&$F$1)
    > It worked!!!!! Thank You so much for helping me figure out what I needed
    > to do!!!
    >
    > "Pe66les" wrote:
    >
    > > I am tracking dates of service and I need to be able to see if dates fall
    > > within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > > (Client 1) date date date
    > >
    > > I want to see if any of the clients dates fall between date 1 and date 2.
    > > If any fall between these dates then count as 1 or true. If the dates are
    > > before date 1 or after date 2, then I don't want to count them at all. The
    > > problem is if I use > date 1 and < date 2 then it counts everything before
    > > date 1 as well. Please help me.


  114. #114
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    >=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))

    Hmmm...

    If that works then so should:

    =IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0)

    I was accounting for the non-contiguous range and the possibilty of other
    numeric data within the range, but even if you leave that out:

    =IF(SUMPRODUCT(--(H5:L5>=F1),--(H5:L5<=H1)),1,0)

    That should also work.

    I don't get it!

    Biff

    "Ron Rosenfeld" <[email protected]> wrote in message
    news:[email protected]...
    > On Sat, 27 Aug 2005 01:33:01 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    >>I tried your suggestion but it is still counting 1 when it should be 0,
    >>This is what I typed:
    >>=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))

    >
    >
    >>What am I doing wrong?
    >>

    >
    > Uh, you are NOT using the equation I posted. You have the comparison
    > operator
    > incorrect in your second COUNTIF function.
    >
    > Assuming F1 contains your earlier date, and H1 contains your later date.
    >
    > Change yours to:
    >
    > =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))
    >
    >
    > --ron




  115. #115
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Sat, 27 Aug 2005 14:48:41 -0400, "Biff" <[email protected]> wrote:

    >>=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))

    >
    >Hmmm...
    >
    >If that works then so should:
    >
    >=IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0)
    >
    >I was accounting for the non-contiguous range and the possibilty of other
    >numeric data within the range, but even if you leave that out:
    >
    >=IF(SUMPRODUCT(--(H5:L5>=F1),--(H5:L5<=H1)),1,0)
    >
    >That should also work.
    >
    >I don't get it!


    When Pe66les posted the variation of *my* formula that he actually tried, it
    was incorrect. Perhaps the same thing was going on with the translation of
    yours.


    --ron

  116. #116
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Are you sure that the dates are true Excel dates?

    True Excel dates are really numbers with a special format.

    Check the formats for your date cells. If you select a date cell then right
    click and choose Format Cells what format does it show as being used?

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    >I tried all 3 suggestions, but they didn't work.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> See this:
    >>
    >> http://tinyurl.com/aml9c
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I am tracking dates of service and I need to be able to see if dates
    >> >fall
    >> > within a certain time frame.
    >> > column F Column H
    >> > row 1 (date 1) (date 2)
    >> >
    >> >
    >> > column H column J column L
    >> > (Client 1) date date date
    >> >
    >> > I want to see if any of the clients dates fall between date 1 and date
    >> > 2.
    >> > If any fall between these dates then count as 1 or true. If the dates
    >> > are
    >> > before date 1 or after date 2, then I don't want to count them at all.
    >> > The
    >> > problem is if I use > date 1 and < date 2 then it counts everything
    >> > before
    >> > date 1 as well. Please help me.

    >>
    >>
    >>




  117. #117
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    It is a date cell. It says Type : date

    "Biff" wrote:

    > Are you sure that the dates are true Excel dates?
    >
    > True Excel dates are really numbers with a special format.
    >
    > Check the formats for your date cells. If you select a date cell then right
    > click and choose Format Cells what format does it show as being used?
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > >I tried all 3 suggestions, but they didn't work.
    > >
    > > "Biff" wrote:
    > >
    > >> Hi!
    > >>
    > >> See this:
    > >>
    > >> http://tinyurl.com/aml9c
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> >I am tracking dates of service and I need to be able to see if dates
    > >> >fall
    > >> > within a certain time frame.
    > >> > column F Column H
    > >> > row 1 (date 1) (date 2)
    > >> >
    > >> >
    > >> > column H column J column L
    > >> > (Client 1) date date date
    > >> >
    > >> > I want to see if any of the clients dates fall between date 1 and date
    > >> > 2.
    > >> > If any fall between these dates then count as 1 or true. If the dates
    > >> > are
    > >> > before date 1 or after date 2, then I don't want to count them at all.
    > >> > The
    > >> > problem is if I use > date 1 and < date 2 then it counts everything
    > >> > before
    > >> > date 1 as well. Please help me.
    > >>
    > >>
    > >>

    >
    >
    >


  118. #118
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    OK, maybe if you give some examples of what to count and when...

    For example....

    F1 = 1/1/2005
    H1 = 1/2/2005

    H5 = 1/1/2005
    J5 = 1/10/2005
    L5 = blank (empty cell)

    What result would you expect from that example? Based on my understanding of
    what you want I would think the result should be 1. Also, you didn't really
    say whether you actually meant >= and <= the dates in F1 and H1. You said
    "within" and a literal reading of that would exclude both of the dates in my
    example.

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > It is a date cell. It says Type : date
    >
    > "Biff" wrote:
    >
    >> Are you sure that the dates are true Excel dates?
    >>
    >> True Excel dates are really numbers with a special format.
    >>
    >> Check the formats for your date cells. If you select a date cell then
    >> right
    >> click and choose Format Cells what format does it show as being used?
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> >I tried all 3 suggestions, but they didn't work.
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> Hi!
    >> >>
    >> >> See this:
    >> >>
    >> >> http://tinyurl.com/aml9c
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> >I am tracking dates of service and I need to be able to see if dates
    >> >> >fall
    >> >> > within a certain time frame.
    >> >> > column F Column H
    >> >> > row 1 (date 1) (date 2)
    >> >> >
    >> >> >
    >> >> > column H column J column L
    >> >> > (Client 1) date date date
    >> >> >
    >> >> > I want to see if any of the clients dates fall between date 1 and
    >> >> > date
    >> >> > 2.
    >> >> > If any fall between these dates then count as 1 or true. If the
    >> >> > dates
    >> >> > are
    >> >> > before date 1 or after date 2, then I don't want to count them at
    >> >> > all.
    >> >> > The
    >> >> > problem is if I use > date 1 and < date 2 then it counts everything
    >> >> > before
    >> >> > date 1 as well. Please help me.
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  119. #119
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    The dates in F1 and H1 are a 2 month span.
    F1 =TODAY()-365 H1 =TODAY()-305.

    H5 is 6/17/04
    J5 is 1/11/05
    L5 is 10/18/04
    The only cell which would count is L5. H5 is too long ago, and J5 is not
    long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    counts H5. I need it to count only the dates which fall in between F1 and
    H1. I don't know how to combine the equation to make it fit Both criteria at
    the same time. How DO you learn all this stuff?


    "Biff" wrote:

    > OK, maybe if you give some examples of what to count and when...
    >
    > For example....
    >
    > F1 = 1/1/2005
    > H1 = 1/2/2005
    >
    > H5 = 1/1/2005
    > J5 = 1/10/2005
    > L5 = blank (empty cell)
    >
    > What result would you expect from that example? Based on my understanding of
    > what you want I would think the result should be 1. Also, you didn't really
    > say whether you actually meant >= and <= the dates in F1 and H1. You said
    > "within" and a literal reading of that would exclude both of the dates in my
    > example.
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > It is a date cell. It says Type : date
    > >
    > > "Biff" wrote:
    > >
    > >> Are you sure that the dates are true Excel dates?
    > >>
    > >> True Excel dates are really numbers with a special format.
    > >>
    > >> Check the formats for your date cells. If you select a date cell then
    > >> right
    > >> click and choose Format Cells what format does it show as being used?
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> >I tried all 3 suggestions, but they didn't work.
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> Hi!
    > >> >>
    > >> >> See this:
    > >> >>
    > >> >> http://tinyurl.com/aml9c
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> >I am tracking dates of service and I need to be able to see if dates
    > >> >> >fall
    > >> >> > within a certain time frame.
    > >> >> > column F Column H
    > >> >> > row 1 (date 1) (date 2)
    > >> >> >
    > >> >> >
    > >> >> > column H column J column L
    > >> >> > (Client 1) date date date
    > >> >> >
    > >> >> > I want to see if any of the clients dates fall between date 1 and
    > >> >> > date
    > >> >> > 2.
    > >> >> > If any fall between these dates then count as 1 or true. If the
    > >> >> > dates
    > >> >> > are
    > >> >> > before date 1 or after date 2, then I don't want to count them at
    > >> >> > all.
    > >> >> > The
    > >> >> > problem is if I use > date 1 and < date 2 then it counts everything
    > >> >> > before
    > >> >> > date 1 as well. Please help me.
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  120. #120
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Hi!

    >The only cell which would count is L5. H5 is too long ago, and J5 is not
    >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    >counts H5.


    OK, that's where you're not understanding how the formula works. The dates
    have to meet both of those conditions to be counted. The date has to be >=F1
    AND <=H1.

    F1 = 8/27/2004
    H1 = 11/26/2004

    H5 = 6/17/2004 is NOT >F1 but IS <H1

    So this is how it gets evaluated:

    FALSE * TRUE = 0 (not counted)

    And the formula does the same thing for the other dates so that you have an
    array that looks like this:

    H5 = 6/17/2004 = FALSE * TRUE = 0
    J5 = 1/11/2005 = TRUE * FALSE = 0
    L5 = 10/18/2004 = TRUE * TRUE = 1

    So, the only date counted is in L5.

    This formula is a little more robust in that it accounts for empty cells:

    =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > The dates in F1 and H1 are a 2 month span.
    > F1 =TODAY()-365 H1 =TODAY()-305.
    >
    > H5 is 6/17/04
    > J5 is 1/11/05
    > L5 is 10/18/04
    > The only cell which would count is L5. H5 is too long ago, and J5 is not
    > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > counts H5. I need it to count only the dates which fall in between F1 and
    > H1. I don't know how to combine the equation to make it fit Both criteria
    > at
    > the same time. How DO you learn all this stuff?
    >
    >
    > "Biff" wrote:
    >
    >> OK, maybe if you give some examples of what to count and when...
    >>
    >> For example....
    >>
    >> F1 = 1/1/2005
    >> H1 = 1/2/2005
    >>
    >> H5 = 1/1/2005
    >> J5 = 1/10/2005
    >> L5 = blank (empty cell)
    >>
    >> What result would you expect from that example? Based on my understanding
    >> of
    >> what you want I would think the result should be 1. Also, you didn't
    >> really
    >> say whether you actually meant >= and <= the dates in F1 and H1. You said
    >> "within" and a literal reading of that would exclude both of the dates in
    >> my
    >> example.
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > It is a date cell. It says Type : date
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> Are you sure that the dates are true Excel dates?
    >> >>
    >> >> True Excel dates are really numbers with a special format.
    >> >>
    >> >> Check the formats for your date cells. If you select a date cell then
    >> >> right
    >> >> click and choose Format Cells what format does it show as being used?
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> >I tried all 3 suggestions, but they didn't work.
    >> >> >
    >> >> > "Biff" wrote:
    >> >> >
    >> >> >> Hi!
    >> >> >>
    >> >> >> See this:
    >> >> >>
    >> >> >> http://tinyurl.com/aml9c
    >> >> >>
    >> >> >> Biff
    >> >> >>
    >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> news:[email protected]...
    >> >> >> >I am tracking dates of service and I need to be able to see if
    >> >> >> >dates
    >> >> >> >fall
    >> >> >> > within a certain time frame.
    >> >> >> > column F Column H
    >> >> >> > row 1 (date 1) (date 2)
    >> >> >> >
    >> >> >> >
    >> >> >> > column H column J column L
    >> >> >> > (Client 1) date date date
    >> >> >> >
    >> >> >> > I want to see if any of the clients dates fall between date 1 and
    >> >> >> > date
    >> >> >> > 2.
    >> >> >> > If any fall between these dates then count as 1 or true. If the
    >> >> >> > dates
    >> >> >> > are
    >> >> >> > before date 1 or after date 2, then I don't want to count them at
    >> >> >> > all.
    >> >> >> > The
    >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    >> >> >> > everything
    >> >> >> > before
    >> >> >> > date 1 as well. Please help me.
    >> >> >>
    >> >> >>
    >> >> >>
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  121. #121
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Biff, it still counts dates prior to F1.

    "Biff" wrote:

    > Hi!
    >
    > >The only cell which would count is L5. H5 is too long ago, and J5 is not
    > >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > >counts H5.

    >
    > OK, that's where you're not understanding how the formula works. The dates
    > have to meet both of those conditions to be counted. The date has to be >=F1
    > AND <=H1.
    >
    > F1 = 8/27/2004
    > H1 = 11/26/2004
    >
    > H5 = 6/17/2004 is NOT >F1 but IS <H1
    >
    > So this is how it gets evaluated:
    >
    > FALSE * TRUE = 0 (not counted)
    >
    > And the formula does the same thing for the other dates so that you have an
    > array that looks like this:
    >
    > H5 = 6/17/2004 = FALSE * TRUE = 0
    > J5 = 1/11/2005 = TRUE * FALSE = 0
    > L5 = 10/18/2004 = TRUE * TRUE = 1
    >
    > So, the only date counted is in L5.
    >
    > This formula is a little more robust in that it accounts for empty cells:
    >
    > =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > The dates in F1 and H1 are a 2 month span.
    > > F1 =TODAY()-365 H1 =TODAY()-305.
    > >
    > > H5 is 6/17/04
    > > J5 is 1/11/05
    > > L5 is 10/18/04
    > > The only cell which would count is L5. H5 is too long ago, and J5 is not
    > > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > > counts H5. I need it to count only the dates which fall in between F1 and
    > > H1. I don't know how to combine the equation to make it fit Both criteria
    > > at
    > > the same time. How DO you learn all this stuff?
    > >
    > >
    > > "Biff" wrote:
    > >
    > >> OK, maybe if you give some examples of what to count and when...
    > >>
    > >> For example....
    > >>
    > >> F1 = 1/1/2005
    > >> H1 = 1/2/2005
    > >>
    > >> H5 = 1/1/2005
    > >> J5 = 1/10/2005
    > >> L5 = blank (empty cell)
    > >>
    > >> What result would you expect from that example? Based on my understanding
    > >> of
    > >> what you want I would think the result should be 1. Also, you didn't
    > >> really
    > >> say whether you actually meant >= and <= the dates in F1 and H1. You said
    > >> "within" and a literal reading of that would exclude both of the dates in
    > >> my
    > >> example.
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > It is a date cell. It says Type : date
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> Are you sure that the dates are true Excel dates?
    > >> >>
    > >> >> True Excel dates are really numbers with a special format.
    > >> >>
    > >> >> Check the formats for your date cells. If you select a date cell then
    > >> >> right
    > >> >> click and choose Format Cells what format does it show as being used?
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> >I tried all 3 suggestions, but they didn't work.
    > >> >> >
    > >> >> > "Biff" wrote:
    > >> >> >
    > >> >> >> Hi!
    > >> >> >>
    > >> >> >> See this:
    > >> >> >>
    > >> >> >> http://tinyurl.com/aml9c
    > >> >> >>
    > >> >> >> Biff
    > >> >> >>
    > >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> news:[email protected]...
    > >> >> >> >I am tracking dates of service and I need to be able to see if
    > >> >> >> >dates
    > >> >> >> >fall
    > >> >> >> > within a certain time frame.
    > >> >> >> > column F Column H
    > >> >> >> > row 1 (date 1) (date 2)
    > >> >> >> >
    > >> >> >> >
    > >> >> >> > column H column J column L
    > >> >> >> > (Client 1) date date date
    > >> >> >> >
    > >> >> >> > I want to see if any of the clients dates fall between date 1 and
    > >> >> >> > date
    > >> >> >> > 2.
    > >> >> >> > If any fall between these dates then count as 1 or true. If the
    > >> >> >> > dates
    > >> >> >> > are
    > >> >> >> > before date 1 or after date 2, then I don't want to count them at
    > >> >> >> > all.
    > >> >> >> > The
    > >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > >> >> >> > everything
    > >> >> >> > before
    > >> >> >> > date 1 as well. Please help me.
    > >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  122. #122
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    Can you send me a copy of the file? If so, let me know how to contact you.

    Biff

    "Pe66les" <[email protected]> wrote in message
    news:[email protected]...
    > Biff, it still counts dates prior to F1.
    >
    > "Biff" wrote:
    >
    >> Hi!
    >>
    >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    >> >not
    >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    >> >counts H5.

    >>
    >> OK, that's where you're not understanding how the formula works. The
    >> dates
    >> have to meet both of those conditions to be counted. The date has to be
    >> >=F1

    >> AND <=H1.
    >>
    >> F1 = 8/27/2004
    >> H1 = 11/26/2004
    >>
    >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    >>
    >> So this is how it gets evaluated:
    >>
    >> FALSE * TRUE = 0 (not counted)
    >>
    >> And the formula does the same thing for the other dates so that you have
    >> an
    >> array that looks like this:
    >>
    >> H5 = 6/17/2004 = FALSE * TRUE = 0
    >> J5 = 1/11/2005 = TRUE * FALSE = 0
    >> L5 = 10/18/2004 = TRUE * TRUE = 1
    >>
    >> So, the only date counted is in L5.
    >>
    >> This formula is a little more robust in that it accounts for empty cells:
    >>
    >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    >>
    >> Biff
    >>
    >> "Pe66les" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > The dates in F1 and H1 are a 2 month span.
    >> > F1 =TODAY()-365 H1 =TODAY()-305.
    >> >
    >> > H5 is 6/17/04
    >> > J5 is 1/11/05
    >> > L5 is 10/18/04
    >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    >> > not
    >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    >> > it
    >> > counts H5. I need it to count only the dates which fall in between F1
    >> > and
    >> > H1. I don't know how to combine the equation to make it fit Both
    >> > criteria
    >> > at
    >> > the same time. How DO you learn all this stuff?
    >> >
    >> >
    >> > "Biff" wrote:
    >> >
    >> >> OK, maybe if you give some examples of what to count and when...
    >> >>
    >> >> For example....
    >> >>
    >> >> F1 = 1/1/2005
    >> >> H1 = 1/2/2005
    >> >>
    >> >> H5 = 1/1/2005
    >> >> J5 = 1/10/2005
    >> >> L5 = blank (empty cell)
    >> >>
    >> >> What result would you expect from that example? Based on my
    >> >> understanding
    >> >> of
    >> >> what you want I would think the result should be 1. Also, you didn't
    >> >> really
    >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    >> >> said
    >> >> "within" and a literal reading of that would exclude both of the dates
    >> >> in
    >> >> my
    >> >> example.
    >> >>
    >> >> Biff
    >> >>
    >> >> "Pe66les" <[email protected]> wrote in message
    >> >> news:[email protected]...
    >> >> > It is a date cell. It says Type : date
    >> >> >
    >> >> > "Biff" wrote:
    >> >> >
    >> >> >> Are you sure that the dates are true Excel dates?
    >> >> >>
    >> >> >> True Excel dates are really numbers with a special format.
    >> >> >>
    >> >> >> Check the formats for your date cells. If you select a date cell
    >> >> >> then
    >> >> >> right
    >> >> >> click and choose Format Cells what format does it show as being
    >> >> >> used?
    >> >> >>
    >> >> >> Biff
    >> >> >>
    >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> news:[email protected]...
    >> >> >> >I tried all 3 suggestions, but they didn't work.
    >> >> >> >
    >> >> >> > "Biff" wrote:
    >> >> >> >
    >> >> >> >> Hi!
    >> >> >> >>
    >> >> >> >> See this:
    >> >> >> >>
    >> >> >> >> http://tinyurl.com/aml9c
    >> >> >> >>
    >> >> >> >> Biff
    >> >> >> >>
    >> >> >> >> "Pe66les" <[email protected]> wrote in message
    >> >> >> >> news:[email protected]...
    >> >> >> >> >I am tracking dates of service and I need to be able to see if
    >> >> >> >> >dates
    >> >> >> >> >fall
    >> >> >> >> > within a certain time frame.
    >> >> >> >> > column F Column H
    >> >> >> >> > row 1 (date 1) (date 2)
    >> >> >> >> >
    >> >> >> >> >
    >> >> >> >> > column H column J column L
    >> >> >> >> > (Client 1) date date date
    >> >> >> >> >
    >> >> >> >> > I want to see if any of the clients dates fall between date 1
    >> >> >> >> > and
    >> >> >> >> > date
    >> >> >> >> > 2.
    >> >> >> >> > If any fall between these dates then count as 1 or true. If
    >> >> >> >> > the
    >> >> >> >> > dates
    >> >> >> >> > are
    >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    >> >> >> >> > at
    >> >> >> >> > all.
    >> >> >> >> > The
    >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    >> >> >> >> > everything
    >> >> >> >> > before
    >> >> >> >> > date 1 as well. Please help me.
    >> >> >> >>
    >> >> >> >>
    >> >> >> >>
    >> >> >>
    >> >> >>
    >> >> >>
    >> >>
    >> >>
    >> >>

    >>
    >>
    >>




  123. #123
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    e-mail - see my profile

    "Biff" wrote:

    > Can you send me a copy of the file? If so, let me know how to contact you.
    >
    > Biff
    >
    > "Pe66les" <[email protected]> wrote in message
    > news:[email protected]...
    > > Biff, it still counts dates prior to F1.
    > >
    > > "Biff" wrote:
    > >
    > >> Hi!
    > >>
    > >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    > >> >not
    > >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > >> >counts H5.
    > >>
    > >> OK, that's where you're not understanding how the formula works. The
    > >> dates
    > >> have to meet both of those conditions to be counted. The date has to be
    > >> >=F1
    > >> AND <=H1.
    > >>
    > >> F1 = 8/27/2004
    > >> H1 = 11/26/2004
    > >>
    > >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    > >>
    > >> So this is how it gets evaluated:
    > >>
    > >> FALSE * TRUE = 0 (not counted)
    > >>
    > >> And the formula does the same thing for the other dates so that you have
    > >> an
    > >> array that looks like this:
    > >>
    > >> H5 = 6/17/2004 = FALSE * TRUE = 0
    > >> J5 = 1/11/2005 = TRUE * FALSE = 0
    > >> L5 = 10/18/2004 = TRUE * TRUE = 1
    > >>
    > >> So, the only date counted is in L5.
    > >>
    > >> This formula is a little more robust in that it accounts for empty cells:
    > >>
    > >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    > >>
    > >> Biff
    > >>
    > >> "Pe66les" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > The dates in F1 and H1 are a 2 month span.
    > >> > F1 =TODAY()-365 H1 =TODAY()-305.
    > >> >
    > >> > H5 is 6/17/04
    > >> > J5 is 1/11/05
    > >> > L5 is 10/18/04
    > >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    > >> > not
    > >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    > >> > it
    > >> > counts H5. I need it to count only the dates which fall in between F1
    > >> > and
    > >> > H1. I don't know how to combine the equation to make it fit Both
    > >> > criteria
    > >> > at
    > >> > the same time. How DO you learn all this stuff?
    > >> >
    > >> >
    > >> > "Biff" wrote:
    > >> >
    > >> >> OK, maybe if you give some examples of what to count and when...
    > >> >>
    > >> >> For example....
    > >> >>
    > >> >> F1 = 1/1/2005
    > >> >> H1 = 1/2/2005
    > >> >>
    > >> >> H5 = 1/1/2005
    > >> >> J5 = 1/10/2005
    > >> >> L5 = blank (empty cell)
    > >> >>
    > >> >> What result would you expect from that example? Based on my
    > >> >> understanding
    > >> >> of
    > >> >> what you want I would think the result should be 1. Also, you didn't
    > >> >> really
    > >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    > >> >> said
    > >> >> "within" and a literal reading of that would exclude both of the dates
    > >> >> in
    > >> >> my
    > >> >> example.
    > >> >>
    > >> >> Biff
    > >> >>
    > >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> news:[email protected]...
    > >> >> > It is a date cell. It says Type : date
    > >> >> >
    > >> >> > "Biff" wrote:
    > >> >> >
    > >> >> >> Are you sure that the dates are true Excel dates?
    > >> >> >>
    > >> >> >> True Excel dates are really numbers with a special format.
    > >> >> >>
    > >> >> >> Check the formats for your date cells. If you select a date cell
    > >> >> >> then
    > >> >> >> right
    > >> >> >> click and choose Format Cells what format does it show as being
    > >> >> >> used?
    > >> >> >>
    > >> >> >> Biff
    > >> >> >>
    > >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> news:[email protected]...
    > >> >> >> >I tried all 3 suggestions, but they didn't work.
    > >> >> >> >
    > >> >> >> > "Biff" wrote:
    > >> >> >> >
    > >> >> >> >> Hi!
    > >> >> >> >>
    > >> >> >> >> See this:
    > >> >> >> >>
    > >> >> >> >> http://tinyurl.com/aml9c
    > >> >> >> >>
    > >> >> >> >> Biff
    > >> >> >> >>
    > >> >> >> >> "Pe66les" <[email protected]> wrote in message
    > >> >> >> >> news:[email protected]...
    > >> >> >> >> >I am tracking dates of service and I need to be able to see if
    > >> >> >> >> >dates
    > >> >> >> >> >fall
    > >> >> >> >> > within a certain time frame.
    > >> >> >> >> > column F Column H
    > >> >> >> >> > row 1 (date 1) (date 2)
    > >> >> >> >> >
    > >> >> >> >> >
    > >> >> >> >> > column H column J column L
    > >> >> >> >> > (Client 1) date date date
    > >> >> >> >> >
    > >> >> >> >> > I want to see if any of the clients dates fall between date 1
    > >> >> >> >> > and
    > >> >> >> >> > date
    > >> >> >> >> > 2.
    > >> >> >> >> > If any fall between these dates then count as 1 or true. If
    > >> >> >> >> > the
    > >> >> >> >> > dates
    > >> >> >> >> > are
    > >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    > >> >> >> >> > at
    > >> >> >> >> > all.
    > >> >> >> >> > The
    > >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > >> >> >> >> > everything
    > >> >> >> >> > before
    > >> >> >> >> > date 1 as well. Please help me.
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >> >>
    > >> >>
    > >> >>
    > >> >>
    > >>
    > >>
    > >>

    >
    >
    >


  124. #124
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?


    [display name][email protected]


    > > Can you send me a copy of the file? If so, let me know how to contact you.
    > >
    > > Biff
    > >
    > > "Pe66les" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > Biff, it still counts dates prior to F1.
    > > >
    > > > "Biff" wrote:
    > > >
    > > >> Hi!
    > > >>
    > > >> >The only cell which would count is L5. H5 is too long ago, and J5 is
    > > >> >not
    > > >> >long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1 it
    > > >> >counts H5.
    > > >>
    > > >> OK, that's where you're not understanding how the formula works. The
    > > >> dates
    > > >> have to meet both of those conditions to be counted. The date has to be
    > > >> >=F1
    > > >> AND <=H1.
    > > >>
    > > >> F1 = 8/27/2004
    > > >> H1 = 11/26/2004
    > > >>
    > > >> H5 = 6/17/2004 is NOT >F1 but IS <H1
    > > >>
    > > >> So this is how it gets evaluated:
    > > >>
    > > >> FALSE * TRUE = 0 (not counted)
    > > >>
    > > >> And the formula does the same thing for the other dates so that you have
    > > >> an
    > > >> array that looks like this:
    > > >>
    > > >> H5 = 6/17/2004 = FALSE * TRUE = 0
    > > >> J5 = 1/11/2005 = TRUE * FALSE = 0
    > > >> L5 = 10/18/2004 = TRUE * TRUE = 1
    > > >>
    > > >> So, the only date counted is in L5.
    > > >>
    > > >> This formula is a little more robust in that it accounts for empty cells:
    > > >>
    > > >> =IF(COUNT(H5,J5,L5)>0,IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0),0)
    > > >>
    > > >> Biff
    > > >>
    > > >> "Pe66les" <[email protected]> wrote in message
    > > >> news:[email protected]...
    > > >> > The dates in F1 and H1 are a 2 month span.
    > > >> > F1 =TODAY()-365 H1 =TODAY()-305.
    > > >> >
    > > >> > H5 is 6/17/04
    > > >> > J5 is 1/11/05
    > > >> > L5 is 10/18/04
    > > >> > The only cell which would count is L5. H5 is too long ago, and J5 is
    > > >> > not
    > > >> > long enough. so... if I say >=$F$1 it counts J5, and if I say <=$H$1
    > > >> > it
    > > >> > counts H5. I need it to count only the dates which fall in between F1
    > > >> > and
    > > >> > H1. I don't know how to combine the equation to make it fit Both
    > > >> > criteria
    > > >> > at
    > > >> > the same time. How DO you learn all this stuff?
    > > >> >
    > > >> >
    > > >> > "Biff" wrote:
    > > >> >
    > > >> >> OK, maybe if you give some examples of what to count and when...
    > > >> >>
    > > >> >> For example....
    > > >> >>
    > > >> >> F1 = 1/1/2005
    > > >> >> H1 = 1/2/2005
    > > >> >>
    > > >> >> H5 = 1/1/2005
    > > >> >> J5 = 1/10/2005
    > > >> >> L5 = blank (empty cell)
    > > >> >>
    > > >> >> What result would you expect from that example? Based on my
    > > >> >> understanding
    > > >> >> of
    > > >> >> what you want I would think the result should be 1. Also, you didn't
    > > >> >> really
    > > >> >> say whether you actually meant >= and <= the dates in F1 and H1. You
    > > >> >> said
    > > >> >> "within" and a literal reading of that would exclude both of the dates
    > > >> >> in
    > > >> >> my
    > > >> >> example.
    > > >> >>
    > > >> >> Biff
    > > >> >>
    > > >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> news:[email protected]...
    > > >> >> > It is a date cell. It says Type : date
    > > >> >> >
    > > >> >> > "Biff" wrote:
    > > >> >> >
    > > >> >> >> Are you sure that the dates are true Excel dates?
    > > >> >> >>
    > > >> >> >> True Excel dates are really numbers with a special format.
    > > >> >> >>
    > > >> >> >> Check the formats for your date cells. If you select a date cell
    > > >> >> >> then
    > > >> >> >> right
    > > >> >> >> click and choose Format Cells what format does it show as being
    > > >> >> >> used?
    > > >> >> >>
    > > >> >> >> Biff
    > > >> >> >>
    > > >> >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> >> news:[email protected]...
    > > >> >> >> >I tried all 3 suggestions, but they didn't work.
    > > >> >> >> >
    > > >> >> >> > "Biff" wrote:
    > > >> >> >> >
    > > >> >> >> >> Hi!
    > > >> >> >> >>
    > > >> >> >> >> See this:
    > > >> >> >> >>
    > > >> >> >> >> http://tinyurl.com/aml9c
    > > >> >> >> >>
    > > >> >> >> >> Biff
    > > >> >> >> >>
    > > >> >> >> >> "Pe66les" <[email protected]> wrote in message
    > > >> >> >> >> news:[email protected]...
    > > >> >> >> >> >I am tracking dates of service and I need to be able to see if
    > > >> >> >> >> >dates
    > > >> >> >> >> >fall
    > > >> >> >> >> > within a certain time frame.
    > > >> >> >> >> > column F Column H
    > > >> >> >> >> > row 1 (date 1) (date 2)
    > > >> >> >> >> >
    > > >> >> >> >> >
    > > >> >> >> >> > column H column J column L
    > > >> >> >> >> > (Client 1) date date date
    > > >> >> >> >> >
    > > >> >> >> >> > I want to see if any of the clients dates fall between date 1
    > > >> >> >> >> > and
    > > >> >> >> >> > date
    > > >> >> >> >> > 2.
    > > >> >> >> >> > If any fall between these dates then count as 1 or true. If
    > > >> >> >> >> > the
    > > >> >> >> >> > dates
    > > >> >> >> >> > are
    > > >> >> >> >> > before date 1 or after date 2, then I don't want to count them
    > > >> >> >> >> > at
    > > >> >> >> >> > all.
    > > >> >> >> >> > The
    > > >> >> >> >> > problem is if I use > date 1 and < date 2 then it counts
    > > >> >> >> >> > everything
    > > >> >> >> >> > before
    > > >> >> >> >> > date 1 as well. Please help me.
    > > >> >> >> >>
    > > >> >> >> >>
    > > >> >> >> >>
    > > >> >> >>
    > > >> >> >>
    > > >> >> >>
    > > >> >>
    > > >> >>
    > > >> >>
    > > >>
    > > >>
    > > >>

    > >
    > >
    > >


  125. #125
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    <[email protected]> wrote:

    >I am tracking dates of service and I need to be able to see if dates fall
    >within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    >(Client 1) date date date
    >
    >I want to see if any of the clients dates fall between date 1 and date 2.
    >If any fall between these dates then count as 1 or true. If the dates are
    >before date 1 or after date 2, then I don't want to count them at all. The
    >problem is if I use > date 1 and < date 2 then it counts everything before
    >date 1 as well. Please help me.



    With the range of dates that you are checking named "rng" (you can substitute a
    cell reference for this):

    =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))

    date1 and date2 may be cell references also.


    --ron

  126. #126
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    With the range of dates that you are checking named "rng" ----How do I do this?

    "Ron Rosenfeld" wrote:

    > On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    > >I am tracking dates of service and I need to be able to see if dates fall
    > >within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > >(Client 1) date date date
    > >
    > >I want to see if any of the clients dates fall between date 1 and date 2.
    > >If any fall between these dates then count as 1 or true. If the dates are
    > >before date 1 or after date 2, then I don't want to count them at all. The
    > >problem is if I use > date 1 and < date 2 then it counts everything before
    > >date 1 as well. Please help me.

    >
    >
    > With the range of dates that you are checking named "rng" (you can substitute a
    > cell reference for this):
    >
    > =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))
    >
    > date1 and date2 may be cell references also.
    >
    >
    > --ron
    >


  127. #127
    Pe66les
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    I tried your suggestion but it is still counting 1 when it should be 0,
    This is what I typed:
    =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))
    What am I doing wrong?


    "Ron Rosenfeld" wrote:

    > On Fri, 26 Aug 2005 19:05:04 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    > >I am tracking dates of service and I need to be able to see if dates fall
    > >within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > >(Client 1) date date date
    > >
    > >I want to see if any of the clients dates fall between date 1 and date 2.
    > >If any fall between these dates then count as 1 or true. If the dates are
    > >before date 1 or after date 2, then I don't want to count them at all. The
    > >problem is if I use > date 1 and < date 2 then it counts everything before
    > >date 1 as well. Please help me.

    >
    >
    > With the range of dates that you are checking named "rng" (you can substitute a
    > cell reference for this):
    >
    > =MIN(1,COUNTIF(rng,">=" & date1) - COUNTIF(rng,">" & date2))
    >
    > date1 and date2 may be cell references also.
    >
    >
    > --ron
    >


  128. #128
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Sat, 27 Aug 2005 01:33:01 -0700, "Pe66les"
    <[email protected]> wrote:

    >I tried your suggestion but it is still counting 1 when it should be 0,
    >This is what I typed:
    >=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))



    >What am I doing wrong?
    >


    Uh, you are NOT using the equation I posted. You have the comparison operator
    incorrect in your second COUNTIF function.

    Assuming F1 contains your earlier date, and H1 contains your later date.

    Change yours to:

    =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))


    --ron

  129. #129
    Pe66les
    Guest

    RE: How do I calculate if a date is in a certain time frame?

    WOOOHOOOO!!!!! I did it!!!! I used:
    =3-COUNTIF(H5:L5,">="&$H$1)-COUNTIF(H5:L5,"<="&$F$1)
    It worked!!!!! Thank You so much for helping me figure out what I needed
    to do!!!

    "Pe66les" wrote:

    > I am tracking dates of service and I need to be able to see if dates fall
    > within a certain time frame.
    > column F Column H
    > row 1 (date 1) (date 2)
    >
    >
    > column H column J column L
    > (Client 1) date date date
    >
    > I want to see if any of the clients dates fall between date 1 and date 2.
    > If any fall between these dates then count as 1 or true. If the dates are
    > before date 1 or after date 2, then I don't want to count them at all. The
    > problem is if I use > date 1 and < date 2 then it counts everything before
    > date 1 as well. Please help me.


  130. #130
    Pe66les
    Guest

    RE: How do I calculate if a date is in a certain time frame?

    OK, You get A Double WOOOOOHOOOO!!!!! I corrected my mistake and your
    equation is much better than mine. Thank you!!!! Thank you!!! Thank you!!!

    "Pe66les" wrote:

    > WOOOHOOOO!!!!! I did it!!!! I used:
    > =3-COUNTIF(H5:L5,">="&$H$1)-COUNTIF(H5:L5,"<="&$F$1)
    > It worked!!!!! Thank You so much for helping me figure out what I needed
    > to do!!!
    >
    > "Pe66les" wrote:
    >
    > > I am tracking dates of service and I need to be able to see if dates fall
    > > within a certain time frame.
    > > column F Column H
    > > row 1 (date 1) (date 2)
    > >
    > >
    > > column H column J column L
    > > (Client 1) date date date
    > >
    > > I want to see if any of the clients dates fall between date 1 and date 2.
    > > If any fall between these dates then count as 1 or true. If the dates are
    > > before date 1 or after date 2, then I don't want to count them at all. The
    > > problem is if I use > date 1 and < date 2 then it counts everything before
    > > date 1 as well. Please help me.


  131. #131
    Biff
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    >=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))

    Hmmm...

    If that works then so should:

    =IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0)

    I was accounting for the non-contiguous range and the possibilty of other
    numeric data within the range, but even if you leave that out:

    =IF(SUMPRODUCT(--(H5:L5>=F1),--(H5:L5<=H1)),1,0)

    That should also work.

    I don't get it!

    Biff

    "Ron Rosenfeld" <[email protected]> wrote in message
    news:[email protected]...
    > On Sat, 27 Aug 2005 01:33:01 -0700, "Pe66les"
    > <[email protected]> wrote:
    >
    >>I tried your suggestion but it is still counting 1 when it should be 0,
    >>This is what I typed:
    >>=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,"<=" &$H$1))

    >
    >
    >>What am I doing wrong?
    >>

    >
    > Uh, you are NOT using the equation I posted. You have the comparison
    > operator
    > incorrect in your second COUNTIF function.
    >
    > Assuming F1 contains your earlier date, and H1 contains your later date.
    >
    > Change yours to:
    >
    > =MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))
    >
    >
    > --ron




  132. #132
    Ron Rosenfeld
    Guest

    Re: How do I calculate if a date is in a certain time frame?

    On Sat, 27 Aug 2005 14:48:41 -0400, "Biff" <[email protected]> wrote:

    >>=MIN(1,COUNTIF(H5:L5,">=" &$F$1) - COUNTIF(H5:L5,">" &$H$1))

    >
    >Hmmm...
    >
    >If that works then so should:
    >
    >=IF(SUMPRODUCT(--(MOD(COLUMN(H5:L5),2)=0),--(H5:L5>=F1),--(H5:L5<=H1)),1,0)
    >
    >I was accounting for the non-contiguous range and the possibilty of other
    >numeric data within the range, but even if you leave that out:
    >
    >=IF(SUMPRODUCT(--(H5:L5>=F1),--(H5:L5<=H1)),1,0)
    >
    >That should also work.
    >
    >I don't get it!


    When Pe66les posted the variation of *my* formula that he actually tried, it
    was incorrect. Perhaps the same thing was going on with the translation of
    yours.


    --ron

+ 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