Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default how to compare a date range another range

I have w/sheet holiday dates of current year.How to compare these dates with
current month,whether any date in holiday range exists in current month.What
formula gives me right results?
Col A -----------ColB-------------------ColC
date-------------Description----------- day
01/26/2009--Republic day ---------monday
04/20/2009 --Founders day---------monday
05/01/2009----Labour day------------friday
08/15/2009 --IndependenceDay--saturday
I also want to compare that day with with employees' weekly off day.If weekly
off day is matching with holiday week day ,employee is not elible for
holiday.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200904/1

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default how to compare a date range another range

A:A contains the holidays

B1 is the query date

=COUNTIF(A:A,B1)

--
If this post helps click Yes
---------------
Jacob Skaria


"tkraju via OfficeKB.com" wrote:

I have w/sheet holiday dates of current year.How to compare these dates with
current month,whether any date in holiday range exists in current month.What
formula gives me right results?
Col A -----------ColB-------------------ColC
date-------------Description----------- day
01/26/2009--Republic day ---------monday
04/20/2009 --Founders day---------monday
05/01/2009----Labour day------------friday
08/15/2009 --IndependenceDay--saturday
I also want to compare that day with with employees' weekly off day.If weekly
off day is matching with holiday week day ,employee is not elible for
holiday.

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200904/1


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default how to compare a date range another range

it didn't yeild the desired results.
Jacob Skaria wrote:
A:A contains the holidays

B1 is the query date

=COUNTIF(A:A,B1)

I have w/sheet holiday dates of current year.How to compare these dates with
current month,whether any date in holiday range exists in current month.What

[quoted text clipped - 8 lines]
off day is matching with holiday week day ,employee is not elible for
holiday.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200904/1

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default how to compare a date range another range

Use the IF condition along with countif. If Countif is 0 then the query
date is a holiday..

A:A contains the holidays

B1 is the query date

=IF(COUNTIF(A:A,B1)0,"Holiday","")


If this post helps click Yes
---------------
Jacob Skaria


"tkraju via OfficeKB.com" wrote:

it didn't yeild the desired results.
Jacob Skaria wrote:
A:A contains the holidays

B1 is the query date

=COUNTIF(A:A,B1)

I have w/sheet holiday dates of current year.How to compare these dates with
current month,whether any date in holiday range exists in current month.What

[quoted text clipped - 8 lines]
off day is matching with holiday week day ,employee is not elible for
holiday.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200904/1


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
Compare an Array to a Date Range Mashuganah Excel Discussion (Misc queries) 9 April 2nd 10 07:35 PM
Rolling up the latest date, criteria of range to compare highest d JulieMK Excel Programming 0 April 10th 08 01:28 AM
COUNTIF to compare one range versus another range Phil Excel Programming 3 May 30th 07 10:39 PM
Compare a selected Range with a Named range and select cells that do not exist PCLIVE Excel Programming 1 October 18th 05 07:09 PM
Compare date of a transaction against a range of dates D Campbell Excel Worksheet Functions 1 August 7th 05 09:40 PM


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