PC Review


Reply
Thread Tools Rate Thread

Date lies between

 
 
Kash
Guest
Posts: n/a
 
      4th Jun 2010
I have 2 date column in sheet "DB" and I need to find if the date entered in
sheet1 lies between these dates..

That is for Example - if I enter dates 12-May to 15-May it should say "True"
or what ever else "false"

Its should check the entire column and give the result.


From To
12-May 15-May
25-May 26-May
28-May 01-Jun
05-Jun 08-Jun
 
Reply With Quote
 
 
 
 
Jackpot
Guest
Posts: n/a
 
      4th Jun 2010
'If there is only 1 query date then try the below with query date in cell E1

=SUMPRODUCT((DB!A1:A5<=E1)*(DB!B1:B5>=E2))<>0

If it is a date range; then try the below with E1 and E2 as start/end dates..
=SUMPRODUCT((DB!A1:A5<=E1)*(DB!B1:B5>=E2))<>0


"Kash" wrote:

> I have 2 date column in sheet "DB" and I need to find if the date entered in
> sheet1 lies between these dates..
>
> That is for Example - if I enter dates 12-May to 15-May it should say "True"
> or what ever else "false"
>
> Its should check the entire column and give the result.
>
>
> From To
> 12-May 15-May
> 25-May 26-May
> 28-May 01-Jun
> 05-Jun 08-Jun

 
Reply With Quote
 
Jackpot
Guest
Posts: n/a
 
      4th Jun 2010
You havent mentioned any thing about the names in your initial post...and so
its not clear to me..

"Kash" wrote:

> This works.. but the thing is column changes with the value in F5 on Sheet1
>
> if value is XYZ the it will be column a,b
> if value is MNO the it will be column c,d
> and so on..
>
> have allotted 2 columns per name..
>
> can we do this using formula or I need a macro?

 
Reply With Quote
 
Kash
Guest
Posts: n/a
 
      4th Jun 2010
I agree I had not mentioned.. but any solution now?
 
Reply With Quote
 
Jackpot
Guest
Posts: n/a
 
      4th Jun 2010
Still it is unclear..Elaborate how your data is arranged so that someone here
could help.

"Kash" wrote:

> I agree I had not mentioned.. but any solution now?

 
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
Check, if a given time lies between two times regardless of date Mathias Weyel Microsoft C# .NET 1 18th Apr 2008 01:15 PM
Sp2 Lies! Thermaltke Windows XP 4 5th Nov 2004 07:14 PM
Return a value if a date lies between two dates Dave D Microsoft Excel Worksheet Functions 3 11th Aug 2004 07:13 PM
Windows Lies =?Utf-8?B?VGFuZXRo?= Windows XP General 23 18th Apr 2004 01:06 AM
IE lies!!!! Will Windows XP General 2 4th Oct 2003 10:49 PM


Features
 

Advertising
 

Newsgroups
 


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