finding earliest date within a range by employee

S

Steve

I am trying to find the earliest date that falls within date range that

matches an employees name. . M$2 is today's date and N$2 contains a
date 3 years earlier. "names" is the range of employees and
"accident_dates" contains the dates

When I use the array formula I created below, I get a blank cell even
though I know a corresponding value exists.


{=MIN(IF(Names=A3,Accident_dates))*((Accident_dates>N$2)*(Accident_dates<M$­2))}



Thanks for any help you can provide


Steve
 
B

Biff

Try this (array entered):

=MIN(IF((Names=A3)*(Accident_dates>N$2)*(Accident_dates<N$2),Accident_dates))

Are you sure you don't want to use: >= and <= ?

Biff

I am trying to find the earliest date that falls within date range that

matches an employees name. . M$2 is today's date and N$2 contains a
date 3 years earlier. "names" is the range of employees and
"accident_dates" contains the dates

When I use the array formula I created below, I get a blank cell even
though I know a corresponding value exists.


{=MIN(IF(Names=A3,Accident_dates))*((Accident_dates>N$2)*(Accident_dates<M$­2))}



Thanks for any help you can provide


Steve
 
D

Don Guillett

=MIN(IF((names=A3)*(ad>n2)*(ad<m2),ad))

--
Don Guillett
SalesAid Software
(e-mail address removed)
I am trying to find the earliest date that falls within date range that

matches an employees name. . M$2 is today's date and N$2 contains a
date 3 years earlier. "names" is the range of employees and
"accident_dates" contains the dates

When I use the array formula I created below, I get a blank cell even
though I know a corresponding value exists.


{=MIN(IF(Names=A3,Accident_dates))*((Accident_dates>N$2)*(Accident_dates<M$­2))}



Thanks for any help you can provide


Steve
 
B

Biff

You're welcome. Thanks for the feedback!

Biff

Thanks Biff for the formula and the suggestion to <= and >=... works
well !

Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top