Find records that meet this criteria

F

fgwiii

Hello,

I need to create a query that will search about 10 individual date fields
to see if any of the dates are: greater than 30 days prior to, or 1 day
after the
<pdate>.

The data is laid out like this:
person dt 1 dt2 dt3 dt4 dt5
dt6 pdate
rec1 7/6/09 5/6/09 4/12/09 5/5/09 9/12/09 5/15/08
6/6/09

Thank you,
 
D

Dave Peterson

Maybe you can add another column and use a couple of =countif()'s.

=countif(b2:g2,">="&h2-30) + countif(b2:g2,">"&h2+1)

I'm not sure about what happens at the 30 day prior mark.
You may want ">" or ">=".

Or even "<="&30 if greater than 30 means before 30 day prior.

(I always have trouble deciphering those date requirements!)

Then drag this formula down your data and apply autofilter to show the not equal
to 0's.
 

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