PC Review


Reply
Thread Tools Rate Thread

Conditional Formula w/Date=Where did I go wrong?

 
 
=?Utf-8?B?Q2JyZXpl?=
Guest
Posts: n/a
 
      10th Jul 2007
This seemed simple. I need to determine if a date is in the fiscal year, and
if so, show data in a seperate column. (i.e. if a date in column a is
between x and y, show the amount in column b in column c, or if no, show
nothing)

I thought this would work, but no go.

=IF(AND(C16>=7/1/2007,C16<=6/31/2008),E16,"")

Where did I go wrong?

Thanks
 
Reply With Quote
 
 
 
 
=?Utf-8?B?VGVldGhsZXNzIG1hbWE=?=
Guest
Posts: n/a
 
      10th Jul 2007
=IF(AND(C16>=--"7/1/2007",C16<=--"6/31/2008"),E16,"")

"Cbreze" wrote:

> This seemed simple. I need to determine if a date is in the fiscal year, and
> if so, show data in a seperate column. (i.e. if a date in column a is
> between x and y, show the amount in column b in column c, or if no, show
> nothing)
>
> I thought this would work, but no go.
>
> =IF(AND(C16>=7/1/2007,C16<=6/31/2008),E16,"")
>
> Where did I go wrong?
>
> Thanks

 
Reply With Quote
 
=?Utf-8?B?Q2JyZXpl?=
Guest
Posts: n/a
 
      10th Jul 2007
Thanks for the fast response Mama, but that returned a #VALUE!

My cell values are as follows: c16 is 1/27/2008, E16 is 2,025.00; there are
no formulas in those cells.

"Teethless mama" wrote:

> =IF(AND(C16>=--"7/1/2007",C16<=--"6/31/2008"),E16,"")
>
> "Cbreze" wrote:
>
> > This seemed simple. I need to determine if a date is in the fiscal year, and
> > if so, show data in a seperate column. (i.e. if a date in column a is
> > between x and y, show the amount in column b in column c, or if no, show
> > nothing)
> >
> > I thought this would work, but no go.
> >
> > =IF(AND(C16>=7/1/2007,C16<=6/31/2008),E16,"")
> >
> > Where did I go wrong?
> >
> > Thanks

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      10th Jul 2007
Always best to stick to non-ambiguous dates

=IF(AND(C16>=--"2007-07-01",C16<=--"2008-06-31"),E16,"")

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Cbreze" <(E-Mail Removed)> wrote in message
news:A2F8994D-2D36-4449-9FA4-(E-Mail Removed)...
> Thanks for the fast response Mama, but that returned a #VALUE!
>
> My cell values are as follows: c16 is 1/27/2008, E16 is 2,025.00; there
> are
> no formulas in those cells.
>
> "Teethless mama" wrote:
>
>> =IF(AND(C16>=--"7/1/2007",C16<=--"6/31/2008"),E16,"")
>>
>> "Cbreze" wrote:
>>
>> > This seemed simple. I need to determine if a date is in the fiscal
>> > year, and
>> > if so, show data in a seperate column. (i.e. if a date in column a is
>> > between x and y, show the amount in column b in column c, or if no,
>> > show
>> > nothing)
>> >
>> > I thought this would work, but no go.
>> >
>> > =IF(AND(C16>=7/1/2007,C16<=6/31/2008),E16,"")
>> >
>> > Where did I go wrong?
>> >
>> > Thanks



 
Reply With Quote
 
=?Utf-8?B?Q2JyZXpl?=
Guest
Posts: n/a
 
      10th Jul 2007
Thanks Bob, but unfortunately, still no go.

"Bob Phillips" wrote:

> Always best to stick to non-ambiguous dates
>
> =IF(AND(C16>=--"2007-07-01",C16<=--"2008-06-31"),E16,"")
>
> --
> ---
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my addy)
>
>
>
> "Cbreze" <(E-Mail Removed)> wrote in message
> news:A2F8994D-2D36-4449-9FA4-(E-Mail Removed)...
> > Thanks for the fast response Mama, but that returned a #VALUE!
> >
> > My cell values are as follows: c16 is 1/27/2008, E16 is 2,025.00; there
> > are
> > no formulas in those cells.
> >
> > "Teethless mama" wrote:
> >
> >> =IF(AND(C16>=--"7/1/2007",C16<=--"6/31/2008"),E16,"")
> >>
> >> "Cbreze" wrote:
> >>
> >> > This seemed simple. I need to determine if a date is in the fiscal
> >> > year, and
> >> > if so, show data in a seperate column. (i.e. if a date in column a is
> >> > between x and y, show the amount in column b in column c, or if no,
> >> > show
> >> > nothing)
> >> >
> >> > I thought this would work, but no go.
> >> >
> >> > =IF(AND(C16>=7/1/2007,C16<=6/31/2008),E16,"")
> >> >
> >> > Where did I go wrong?
> >> >
> >> > Thanks

>
>
>

 
Reply With Quote
 
=?Utf-8?B?Ymo=?=
Guest
Posts: n/a
 
      10th Jul 2007
try
=IF(AND(C16>=datevalue(2007-07-01),C16<=datevalue(2008-06-31)),E16,"")


"Cbreze" wrote:

> Thanks Bob, but unfortunately, still no go.
>
> "Bob Phillips" wrote:
>
> > Always best to stick to non-ambiguous dates
> >
> > =IF(AND(C16>=--"2007-07-01",C16<=--"2008-06-31"),E16,"")
> >
> > --
> > ---
> > HTH
> >
> > Bob
> >
> > (there's no email, no snail mail, but somewhere should be gmail in my addy)
> >
> >
> >
> > "Cbreze" <(E-Mail Removed)> wrote in message
> > news:A2F8994D-2D36-4449-9FA4-(E-Mail Removed)...
> > > Thanks for the fast response Mama, but that returned a #VALUE!
> > >
> > > My cell values are as follows: c16 is 1/27/2008, E16 is 2,025.00; there
> > > are
> > > no formulas in those cells.
> > >
> > > "Teethless mama" wrote:
> > >
> > >> =IF(AND(C16>=--"7/1/2007",C16<=--"6/31/2008"),E16,"")
> > >>
> > >> "Cbreze" wrote:
> > >>
> > >> > This seemed simple. I need to determine if a date is in the fiscal
> > >> > year, and
> > >> > if so, show data in a seperate column. (i.e. if a date in column a is
> > >> > between x and y, show the amount in column b in column c, or if no,
> > >> > show
> > >> > nothing)
> > >> >
> > >> > I thought this would work, but no go.
> > >> >
> > >> > =IF(AND(C16>=7/1/2007,C16<=6/31/2008),E16,"")
> > >> >
> > >> > Where did I go wrong?
> > >> >
> > >> > Thanks

> >
> >
> >

 
Reply With Quote
 
Peo Sjoblom
Guest
Posts: n/a
 
      10th Jul 2007
It's because you have a non existent date as your second criteria, Change it
to --"2008-06-30"

AFAIK there will never be a 06/31/08


--
Regards,

Peo Sjoblom



"Cbreze" <(E-Mail Removed)> wrote in message
news:39036B20-53F5-4D96-9937-(E-Mail Removed)...
> Thanks Bob, but unfortunately, still no go.
>
> "Bob Phillips" wrote:
>
>> Always best to stick to non-ambiguous dates
>>
>> =IF(AND(C16>=--"2007-07-01",C16<=--"2008-06-31"),E16,"")
>>
>> --
>> ---
>> HTH
>>
>> Bob
>>
>> (there's no email, no snail mail, but somewhere should be gmail in my
>> addy)
>>
>>
>>
>> "Cbreze" <(E-Mail Removed)> wrote in message
>> news:A2F8994D-2D36-4449-9FA4-(E-Mail Removed)...
>> > Thanks for the fast response Mama, but that returned a #VALUE!
>> >
>> > My cell values are as follows: c16 is 1/27/2008, E16 is 2,025.00;
>> > there
>> > are
>> > no formulas in those cells.
>> >
>> > "Teethless mama" wrote:
>> >
>> >> =IF(AND(C16>=--"7/1/2007",C16<=--"6/31/2008"),E16,"")
>> >>
>> >> "Cbreze" wrote:
>> >>
>> >> > This seemed simple. I need to determine if a date is in the fiscal
>> >> > year, and
>> >> > if so, show data in a seperate column. (i.e. if a date in column a
>> >> > is
>> >> > between x and y, show the amount in column b in column c, or if no,
>> >> > show
>> >> > nothing)
>> >> >
>> >> > I thought this would work, but no go.
>> >> >
>> >> > =IF(AND(C16>=7/1/2007,C16<=6/31/2008),E16,"")
>> >> >
>> >> > Where did I go wrong?
>> >> >
>> >> > Thanks

>>
>>
>>



 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      10th Jul 2007
Check and make sure your date is really a true Excel date:

=ISNUMBER(C16)

That should return TRUE.

--
Biff
Microsoft Excel MVP


"Cbreze" <(E-Mail Removed)> wrote in message
news:39036B20-53F5-4D96-9937-(E-Mail Removed)...
> Thanks Bob, but unfortunately, still no go.
>
> "Bob Phillips" wrote:
>
>> Always best to stick to non-ambiguous dates
>>
>> =IF(AND(C16>=--"2007-07-01",C16<=--"2008-06-31"),E16,"")
>>
>> --
>> ---
>> HTH
>>
>> Bob
>>
>> (there's no email, no snail mail, but somewhere should be gmail in my
>> addy)
>>
>>
>>
>> "Cbreze" <(E-Mail Removed)> wrote in message
>> news:A2F8994D-2D36-4449-9FA4-(E-Mail Removed)...
>> > Thanks for the fast response Mama, but that returned a #VALUE!
>> >
>> > My cell values are as follows: c16 is 1/27/2008, E16 is 2,025.00;
>> > there
>> > are
>> > no formulas in those cells.
>> >
>> > "Teethless mama" wrote:
>> >
>> >> =IF(AND(C16>=--"7/1/2007",C16<=--"6/31/2008"),E16,"")
>> >>
>> >> "Cbreze" wrote:
>> >>
>> >> > This seemed simple. I need to determine if a date is in the fiscal
>> >> > year, and
>> >> > if so, show data in a seperate column. (i.e. if a date in column a
>> >> > is
>> >> > between x and y, show the amount in column b in column c, or if no,
>> >> > show
>> >> > nothing)
>> >> >
>> >> > I thought this would work, but no go.
>> >> >
>> >> > =IF(AND(C16>=7/1/2007,C16<=6/31/2008),E16,"")
>> >> >
>> >> > Where did I go wrong?
>> >> >
>> >> > Thanks

>>
>>
>>



 
Reply With Quote
 
=?Utf-8?B?Q2JyZXpl?=
Guest
Posts: n/a
 
      10th Jul 2007
Like I said; it looks simple, but... Still #VALUE! I checked the formatting
on the subject cells. Nothing that shouldn't be there. C16 is formatted as
a date and E16 is just a monetary value.

Thanks for trying BJ.

"bj" wrote:

> try
> =IF(AND(C16>=datevalue(2007-07-01),C16<=datevalue(2008-06-31)),E16,"")
>
>
> "Cbreze" wrote:
>
> > Thanks Bob, but unfortunately, still no go.
> >
> > "Bob Phillips" wrote:
> >
> > > Always best to stick to non-ambiguous dates
> > >
> > > =IF(AND(C16>=--"2007-07-01",C16<=--"2008-06-31"),E16,"")
> > >
> > > --
> > > ---
> > > HTH
> > >
> > > Bob
> > >
> > > (there's no email, no snail mail, but somewhere should be gmail in my addy)
> > >
> > >
> > >
> > > "Cbreze" <(E-Mail Removed)> wrote in message
> > > news:A2F8994D-2D36-4449-9FA4-(E-Mail Removed)...
> > > > Thanks for the fast response Mama, but that returned a #VALUE!
> > > >
> > > > My cell values are as follows: c16 is 1/27/2008, E16 is 2,025.00; there
> > > > are
> > > > no formulas in those cells.
> > > >
> > > > "Teethless mama" wrote:
> > > >
> > > >> =IF(AND(C16>=--"7/1/2007",C16<=--"6/31/2008"),E16,"")
> > > >>
> > > >> "Cbreze" wrote:
> > > >>
> > > >> > This seemed simple. I need to determine if a date is in the fiscal
> > > >> > year, and
> > > >> > if so, show data in a seperate column. (i.e. if a date in column a is
> > > >> > between x and y, show the amount in column b in column c, or if no,
> > > >> > show
> > > >> > nothing)
> > > >> >
> > > >> > I thought this would work, but no go.
> > > >> >
> > > >> > =IF(AND(C16>=7/1/2007,C16<=6/31/2008),E16,"")
> > > >> >
> > > >> > Where did I go wrong?
> > > >> >
> > > >> > Thanks
> > >
> > >
> > >

 
Reply With Quote
 
=?Utf-8?B?Q2JyZXpl?=
Guest
Posts: n/a
 
      10th Jul 2007
Nice tool, and yes, it returned TRUE.

"T. Valko" wrote:

> Check and make sure your date is really a true Excel date:
>
> =ISNUMBER(C16)
>
> That should return TRUE.
>
> --
> Biff
> Microsoft Excel MVP
>
>
> "Cbreze" <(E-Mail Removed)> wrote in message
> news:39036B20-53F5-4D96-9937-(E-Mail Removed)...
> > Thanks Bob, but unfortunately, still no go.
> >
> > "Bob Phillips" wrote:
> >
> >> Always best to stick to non-ambiguous dates
> >>
> >> =IF(AND(C16>=--"2007-07-01",C16<=--"2008-06-31"),E16,"")
> >>
> >> --
> >> ---
> >> HTH
> >>
> >> Bob
> >>
> >> (there's no email, no snail mail, but somewhere should be gmail in my
> >> addy)
> >>
> >>
> >>
> >> "Cbreze" <(E-Mail Removed)> wrote in message
> >> news:A2F8994D-2D36-4449-9FA4-(E-Mail Removed)...
> >> > Thanks for the fast response Mama, but that returned a #VALUE!
> >> >
> >> > My cell values are as follows: c16 is 1/27/2008, E16 is 2,025.00;
> >> > there
> >> > are
> >> > no formulas in those cells.
> >> >
> >> > "Teethless mama" wrote:
> >> >
> >> >> =IF(AND(C16>=--"7/1/2007",C16<=--"6/31/2008"),E16,"")
> >> >>
> >> >> "Cbreze" wrote:
> >> >>
> >> >> > This seemed simple. I need to determine if a date is in the fiscal
> >> >> > year, and
> >> >> > if so, show data in a seperate column. (i.e. if a date in column a
> >> >> > is
> >> >> > between x and y, show the amount in column b in column c, or if no,
> >> >> > show
> >> >> > nothing)
> >> >> >
> >> >> > I thought this would work, but no go.
> >> >> >
> >> >> > =IF(AND(C16>=7/1/2007,C16<=6/31/2008),E16,"")
> >> >> >
> >> >> > Where did I go wrong?
> >> >> >
> >> >> > Thanks
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting Adding Wrong Formula J Streger Microsoft Excel Programming 9 18th Feb 2009 06:21 PM
Conditional Date formula Pluribus Microsoft Excel Misc 3 3rd Sep 2008 04:47 AM
conditional formula with date Loc Microsoft Excel Misc 6 24th Jul 2008 03:00 PM
Simplest date formula: What am I doing wrong? seed Microsoft Excel Misc 1 3rd Apr 2008 05:38 PM
Conditional formula date tghcogo Microsoft Excel Worksheet Functions 5 25th Oct 2005 03:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:56 PM.