Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default Nested If Function

Column A has dates.
Cell H3 is a start date. Cell I3 is an end date.
I want to display Y in Column J if the date in Column A lies between the two
dates in H3-I3.
I'm using this formula, but get a Y even when the date in Column A is
outside the date range.

=IF(AND(A7=H3,A7<=I3),"Y","N")
H3 = 09-01-06
I3 = 09-04-06
Still displays Y when date is 9-5-06 or above.

Need help!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,203
Default Nested If Function

I plugged your data and formula into a worksheet using the very same cells
and it works just fine for me. Double-check the format of the 3 cells (A7,
H3, I3) and make sure they are all formatted as Date. Might be that one or
more is formatted as text and isn't being handled properly.

Only thing - note that you're comparing dates in H3 and I3 to a date down in
A7, 4 rows down. If you meant to compare to date on same row, then change A7
in your formula to A3??

"David" wrote:

Column A has dates.
Cell H3 is a start date. Cell I3 is an end date.
I want to display Y in Column J if the date in Column A lies between the two
dates in H3-I3.
I'm using this formula, but get a Y even when the date in Column A is
outside the date range.

=IF(AND(A7=H3,A7<=I3),"Y","N")
H3 = 09-01-06
I3 = 09-04-06
Still displays Y when date is 9-5-06 or above.

Need help!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default Nested If Function

Someone turned the AUTO CALCULATE OFF....unbelievable!
Thanks so much!

"JLatham" wrote:

I plugged your data and formula into a worksheet using the very same cells
and it works just fine for me. Double-check the format of the 3 cells (A7,
H3, I3) and make sure they are all formatted as Date. Might be that one or
more is formatted as text and isn't being handled properly.

Only thing - note that you're comparing dates in H3 and I3 to a date down in
A7, 4 rows down. If you meant to compare to date on same row, then change A7
in your formula to A3??

"David" wrote:

Column A has dates.
Cell H3 is a start date. Cell I3 is an end date.
I want to display Y in Column J if the date in Column A lies between the two
dates in H3-I3.
I'm using this formula, but get a Y even when the date in Column A is
outside the date range.

=IF(AND(A7=H3,A7<=I3),"Y","N")
H3 = 09-01-06
I3 = 09-04-06
Still displays Y when date is 9-5-06 or above.

Need help!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,203
Default Nested If Function

When you find the culprit, smack him right on the knuckles!

Glad you found the source of the problem.

"David" wrote:

Someone turned the AUTO CALCULATE OFF....unbelievable!
Thanks so much!

"JLatham" wrote:

I plugged your data and formula into a worksheet using the very same cells
and it works just fine for me. Double-check the format of the 3 cells (A7,
H3, I3) and make sure they are all formatted as Date. Might be that one or
more is formatted as text and isn't being handled properly.

Only thing - note that you're comparing dates in H3 and I3 to a date down in
A7, 4 rows down. If you meant to compare to date on same row, then change A7
in your formula to A3??

"David" wrote:

Column A has dates.
Cell H3 is a start date. Cell I3 is an end date.
I want to display Y in Column J if the date in Column A lies between the two
dates in H3-I3.
I'm using this formula, but get a Y even when the date in Column A is
outside the date range.

=IF(AND(A7=H3,A7<=I3),"Y","N")
H3 = 09-01-06
I3 = 09-04-06
Still displays Y when date is 9-5-06 or above.

Need help!

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
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Nested "If" Function Ms. P. Excel Worksheet Functions 8 August 19th 05 07:31 PM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
Countif Function -Nested Angi Excel Discussion (Misc queries) 7 May 4th 05 07:04 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM


All times are GMT +1. The time now is 09:54 AM.

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

About Us

"It's about Microsoft Excel"