ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formula for determining if two date columns fall within specific date range (https://www.excelbanter.com/excel-worksheet-functions/84346-formula-determining-if-two-date-columns-fall-within-specific-date-range.html)

Igottabeme

Formula for determining if two date columns fall within specific date range
 

Let's say I have thousands of employees, but I need to determine who
worked for me during a particular date range, and all I have to go on
is their start date in one column and their end date in another
column.

If:

A1 contains beginning date of employment
B1 contains ending date of employment
C1 contains specified beginning date (criteria)
D1 contains specified ending date (criteria)

is there a formula to help make this determination?


--
Igottabeme
------------------------------------------------------------------------
Igottabeme's Profile: http://www.excelforum.com/member.php...o&userid=33699
View this thread: http://www.excelforum.com/showthread...hreadid=534764


Biff

Formula for determining if two date columns fall within specific date range
 
What if the employees start date is before the specified start date and the
employees end date is within the specified date range (or vice versa)? Does
that count ?

Biff

"Igottabeme" wrote
in message ...

Let's say I have thousands of employees, but I need to determine who
worked for me during a particular date range, and all I have to go on
is their start date in one column and their end date in another
column.

If:

A1 contains beginning date of employment
B1 contains ending date of employment
C1 contains specified beginning date (criteria)
D1 contains specified ending date (criteria)

is there a formula to help make this determination?


--
Igottabeme
------------------------------------------------------------------------
Igottabeme's Profile:
http://www.excelforum.com/member.php...o&userid=33699
View this thread: http://www.excelforum.com/showthread...hreadid=534764




Fred Smith

Formula for determining if two date columns fall within specific date range
 
If this were me, I would create a helper column with the formula:

=if(or(and($c$1a1,$c$1<b1),and($d$1a1,$d$1<b1)), true,false)

The filter the True's.

I haven't tested the formula, so it may need some tweaking, but hopefully you
get the idea.

--
Regards,
Fred


"Igottabeme" wrote in
message ...

Let's say I have thousands of employees, but I need to determine who
worked for me during a particular date range, and all I have to go on
is their start date in one column and their end date in another
column.

If:

A1 contains beginning date of employment
B1 contains ending date of employment
C1 contains specified beginning date (criteria)
D1 contains specified ending date (criteria)

is there a formula to help make this determination?


--
Igottabeme
------------------------------------------------------------------------
Igottabeme's Profile:
http://www.excelforum.com/member.php...o&userid=33699
View this thread: http://www.excelforum.com/showthread...hreadid=534764





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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com