excel - Formulaically Locating a Block of Cells From a Search Result -


i have table of data lists series of dates against list of members regarding attendance. want find attendance each member against subset of dates. example:

              b            c            d           e            f 1           2015/02/15   2015/02/10   2015/02/5   2015/01/26   2015/01/16 2  person1       x            y            y           y            y 3  person2       x            x            x           x            x 4  person3       y            x            x           y            x 

if have date, example, 2015/02/12 in cell b12 want able find closest date prior (which in table c1; 2015/02/10) , select values in cells c2:f2 (i.e. cell , 3 'behind' it). values in these cells, determine whether or not have attended @ least twice out of 4 occasions (in example, person1 has, person2 , person3 haven't).

i have found formula closest date =max(($b$1:$f$1<=b12)*b1:f1) don't know how use cell location , 'expand' member's data.

i require done in formula can't use scripts or macros. can, if necessary, use additional cells 'intermediate' data.

does know how can this, or if it's possible?

assuming closest date in c12, please try in j2 , copied down:

=countif(indirect(address(row(),match(c$12,a$1:f$1,0),3)&":"&address(row(),match(c$12,a$1:f$1,0)+3,3)),"y")>1 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -