Indirect/match formula - array

A

al

{=INDEX(PAYECalc!F$1:F$300,MATCH(1,(PAYECalc!$A$1:$A$300=$A24)*
(PAYECalc!$C$1:$C$300=$C24),0))}

Would like to replace the above array formula with the formula below
using "indirect" where cell F1 contains the sheet name "PAYECalc" -
but get an error message

{=INDEX(INDIRECT(F$1&"!F$1:F$300",MATCH(1,(INDIRECT(F$1&"!$A$1:$A$300=
$A24")*
(INDIRECT(F$1&"!$C$1:$C$300=$C24"),0)))}

Could someone correct my alternative formula pls

thxs
 
S

smartin

al said:
{=INDEX(PAYECalc!F$1:F$300,MATCH(1,(PAYECalc!$A$1:$A$300=$A24)*
(PAYECalc!$C$1:$C$300=$C24),0))}

Would like to replace the above array formula with the formula below
using "indirect" where cell F1 contains the sheet name "PAYECalc" -
but get an error message

{=INDEX(INDIRECT(F$1&"!F$1:F$300",MATCH(1,(INDIRECT(F$1&"!$A$1:$A$300=
$A24")*
(INDIRECT(F$1&"!$C$1:$C$300=$C24"),0)))}

Could someone correct my alternative formula pls

thxs

Looks like misplaced quotes and parens. Try this:

=INDEX(INDIRECT(F$1&"!F$1:F$300"),
MATCH(1,(INDIRECT(F$1&"!$A$1:$A$300")=$A24)*
(INDIRECT(F$1&"!$C$1:$C$300")=$C24),0))
 

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