#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default dates

I would like to create columns to display an "X" if a date falls within a
range of a check-in and check-out date. This is the fomula I have tried, and
failed.

=(if($c$1=A2),if($c$1b2),"X","")
A B C
D E
Check In Date Check Out Date 1/26/2007 1/27/2007 1/28/2007
1/28/2007 2/2/2007 X
1/28/2007 2/2/2007 X
1/28/2007 1/31/2007 X
1/28/2007 2/2/2007 X

I want a null value if it doesn't fit the criteria. Can you please tell me
what I am doing wrong?

Thank you in advance for your help

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,574
Default dates

=IF(AND(C1=A2,C1B2),"X",""))

Dave
--
Brevity is the soul of wit.


"Susie" wrote:

I would like to create columns to display an "X" if a date falls within a
range of a check-in and check-out date. This is the fomula I have tried, and
failed.

=(if($c$1=A2),if($c$1b2),"X","")
A B C
D E
Check In Date Check Out Date 1/26/2007 1/27/2007 1/28/2007
1/28/2007 2/2/2007 X
1/28/2007 2/2/2007 X
1/28/2007 1/31/2007 X
1/28/2007 2/2/2007 X

I want a null value if it doesn't fit the criteria. Can you please tell me
what I am doing wrong?

Thank you in advance for your 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
Identifying unique dates in a row of cells containing dates... cdavidson Excel Discussion (Misc queries) 9 October 13th 06 08:43 PM
Identifying unique dates in a range of cells containing dates... cdavidson Excel Discussion (Misc queries) 4 October 13th 06 03:30 PM
Dates showing are not what I type Mick New Users to Excel 5 July 6th 06 04:19 AM
formula to add dates. S S Excel Worksheet Functions 8 April 5th 06 07:53 PM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM


All times are GMT +1. The time now is 08:38 AM.

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"