you were really really close

=INDEX(INDIRECT("'"&A6&"'!c4:c6"),MATCH(D6,INDIRECT("'"&A6&"'!$C$4:$C$6"),0))

you had the match type (0) inside the 2nd indirect() function