Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Conditional Formula w/Date=Where did I go wrong?

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Conditional Formula w/Date=Where did I go wrong?

=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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Conditional Formula w/Date=Where did I go wrong?

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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Conditional Formula w/Date=Where did I go wrong?

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" wrote in message
...
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



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Conditional Formula w/Date=Where did I go wrong?

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" wrote in message
...
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






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default Conditional Formula w/Date=Where did I go wrong?

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" wrote in message
...
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




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Conditional Formula w/Date=Where did I go wrong?

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" wrote in message
...
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" wrote in message
...
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






  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Conditional Formula w/Date=Where did I go wrong?

Check and make sure your date is really a true Excel date:

=ISNUMBER(C16)

That should return TRUE.

--
Biff
Microsoft Excel MVP


"Cbreze" wrote in message
...
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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional date array formula caj Excel Discussion (Misc queries) 1 September 23rd 06 06:42 AM
conditional date formula bemused Excel Worksheet Functions 2 January 13th 06 03:00 AM
Conditional formula date Ron Rosenfeld Excel Worksheet Functions 1 October 25th 05 03:12 PM
Conditional formula date tghcogo Excel Worksheet Functions 0 October 25th 05 02:52 PM
Formula "=num.de.semana(Date,2or1)" is WRONG for 2005 MrExcel77 Excel Worksheet Functions 1 January 5th 05 07:13 PM


All times are GMT +1. The time now is 01:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"