The objective is to search the same column ($T6:$T1000) through 39 of 43 worksheets and, whenever there’s a match, sum the #values of another column ($M6:$M1000) that’s to the left of the reference column ($T6:$T1000). The #value cell may be blank at times.
I'm having some difficulty in nesting one equation with the functions VLOOKUP, INDIRECT, INDEX, MATCH, COUNTIF and CHOOSE.
The NAME of the set of worksheets is “BldgTabs”
Once I have the equation, it needs to be copied so the lookup-value (e.g: C11) of VLOOKUP will be relative and all other cell references in the equation are absolute.
The equation has so far become;
=VLOOKUP(C11,INDIRECT("'"&INDEX(BldgTabs,MATCH(TRUE,COUNTIF(INDIRECT("'"&BldgTabs&"'!$T$6:$T$1000"),$M$6:$M$113)>0,0))&"'!$M$6:$M$1000"),2,0)
However the array referenced in VLOOKUP requires a CHOOSE function to get the lookup column into an array where it is to the left of the column having the #values that are to be added for any matched values.
Bookmarks