.. I was looking at the workbook in question
as to if it is ready to use and I realized that
I had not provided for some means to cause
the month drop down in A1 of the school log
to populate the sheet with only the data for that month.
First off, is that even possible?
Here's one way, using non-array formulas ..
(a rather extensive revamp is required ..)
A sample implementation is available at:
http://cjoint.com/?cji7RsnnDT
Multi-Criteria Extract n Tagging_based_on_keyword_search.xls
In sheet: school log,
Put in A5:F5 (all formulas normal ENTER)
In A5:
=IF(ISERROR(SMALL($F:$F,ROW(A1))),"",
INDEX(OFFSET(INDIRECT("'"&$A$3&"'!A:A"),,2),MATCH(SMALL($F:$F,ROW(A1)),$F:$F
,0)-3))
In B5:
=IF(ISERROR(SMALL($F:$F,ROW(B1))),"",
INDEX(OFFSET(INDIRECT("'"&$A$3&"'!A:A"),,3),MATCH(SMALL($F:$F,ROW(B1)),$F:$F
,0)-3))
In C5:
=IF(ISERROR(SMALL($F:$F,ROW(C1))),"",
INDEX(OFFSET(INDIRECT("'"&$A$3&"'!A:A"),,5),MATCH(SMALL($F:$F,ROW(C1)),$F:$F
,0)-3))
In D5:
=IF(SUMPRODUCT(--ISNUMBER(SEARCH(INDEX(OFFSET(INDIRECT("'"&$A$3&"'!A:A"),,1)
,MATCH(SMALL($F:$F,ROW(A1)),$F:$F,0)-3),{"vitals";"G
tube";"Cath";"Insulin/meds";"meds"})))>0,"D",IF(ISERROR(SMALL($F:$F,ROW(A1))
),"","O"))
In E5:
=IF(ISERROR(SMALL($F:$F,ROW(E1))),"",
INDEX(OFFSET(INDIRECT("'"&$A$3&"'!A:A"),,7),MATCH(SMALL($F:$F,ROW(E1)),$F:$F
,0)-3))
In F5:
=IF(AND(INDIRECT("'"&$A$3&"'!A"&ROW(A2))=$A$3,MONTH(INDIRECT("'"&$A$3&"'!E"&
ROW(A2)))=MATCH($A$1,{"January";"February";"March";"April";"May";"June";"Jul
y";"August";"September";"October";"November";"December"},0)),ROW(A1),"")
(Col F is a criteria col)
Select A5:F5, fill down as far as required
(Fill down by the smallest extent large enough
to cover the max expected number of rows for any month)
The above will return the desired results, i.e. only the lines for the
particular month indicated in A1's droplist, and from the student's sheet
(name indicated in A3's droplist). Test it out ..