#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 36
Default between

In cell m3 is 1/1/2010 in cell n3 is 4/1/2010. (the actual year will
change every year)

I want to say that if the date in cell z3 is between the date in M3 and the
date in N3, return 1

I don't find a function for "between". HELP please.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 376
Default between

Hi

=IF(AND(Z3=M3,Z3<=N£),1,"")
--
Regards
Roger Govier

Gator Girl wrote:
In cell m3 is 1/1/2010 in cell n3 is 4/1/2010. (the actual year will
change every year)

I want to say that if the date in cell z3 is between the date in M3 and the
date in N3, return 1

I don't find a function for "between". HELP please.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 376
Default between

that should have read
=IF(AND(Z3=M3,Z3<=N3),1,"")

--
Regards
Roger Govier

Roger Govier wrote:
Hi

=IF(AND(Z3=M3,Z3<=N£),1,"")
--
Regards
Roger Govier

Gator Girl wrote:
In cell m3 is 1/1/2010 in cell n3 is 4/1/2010. (the actual year
will change every year)

I want to say that if the date in cell z3 is between the date in M3
and the date in N3, return 1

I don't find a function for "between". HELP please.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default between

if you want "between" to INCLUDE the end points:
=IF(AND(Z3=M3,Z3<=N3),1,0)
if you want "between" to EXCLUDE the end points:
=IF(AND(Z3M3,Z3<N3),1,0)

--
Gary''s Student - gsnu201001


"Gator Girl" wrote:

In cell m3 is 1/1/2010 in cell n3 is 4/1/2010. (the actual year will
change every year)

I want to say that if the date in cell z3 is between the date in M3 and the
date in N3, return 1

I don't find a function for "between". HELP please.

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



All times are GMT +1. The time now is 12:56 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"