How to return multiple values between two dates in excel? -


we have spreadsheet of our employees, , need generate list of employees who's 3 month probation period expire in coming week.

in other words, need list automatically display employees records who's 3 month probation period expire in next 7 days. needs array because there multiple records each week, , change every day.

column id number, value need return.

our data looks this:

a       b           c id      name        hire date 1234    joe blow    february 21, 2014 2345    man chu     february 26, 2014 3456    jim hill    february 26, 2014 4567    brad chill  february 28, 2014 5678    mike grow   march 5, 2014 6789    hibs bee    march 5, 2014 1230    sarah mean  march 7, 2014 

i've tried index&match `{=index($a:$a,small(if(and($c:$c">="&(today()-90),$c:$c"<="&(today()-80)),row($c:$c)),row(1:1)),1)} other formulas, it's not working, , can't figure out why.

any appreciated, much. driving me crazy!

your comments , formulas indicate want find employees hire date between 80 , 90 days ago, inclusive. 90 days not 3 months if issue, can change function.

the following array entered formula return list of employee id's hiredate meets specifications compared date in h1. enter formula in cell , fill down far might required. formula return blanks when there no more meeting specifications. formula assumes id column column a, , first entry in a2 (header in a1) show in example.

hiredate , id named ranges referring, in case a2:a8 , c2:c8

=iferror(index($a:$a,small(((hiredate+80)<=$h$1)*((hiredate+90)>=$h$1)*row(id),sum(n(((hiredate+80)<=$h$1)*((hiredate+90)>=$h$1)=0))+rows($1:1))),"") 

this formula must array-entered:


to array-enter formula, after entering formula cell or formula bar, hold down ctrl-shift while hitting enter. if did correctly, excel place braces {...} around formula.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -