thanks but i need to refference the sheet from
i need to reference the sheet name in the cell a1, but thanks for your replyA bit unclear to me, but I guess, so:
Cell Formulas Range Formula D1:D6 D1 =LOOKUP(2,1/(sheet2!$B$1:$B$6=$B1)/(sheet2!$C$1:$C$6=$C1),(sheet2!$D$1:$D$6)) E1:E6 E1 =LOOKUP(2,1/(sheet2!$B$1:$B$6=$B1)/(sheet2!$C$1:$C$6=$C1),(sheet2!$E$1:$E$6)) F1:F6 F1 =LOOKUP(2,1/(sheet2!$B$1:$B$6=$B1)/(sheet2!$C$1:$C$6=$C1),(sheet2!$F$1:$F$6)) G1:G6 G1 =LOOKUP(2,1/(sheet2!$B$1:$B$6=$B1)/(sheet2!$C$1:$C$6=$C1),(sheet2!$G$1:$G$6))
your last one works as well thanks cant mark both as solved sorry, he got there first but thank you so mucher sorry, missed one of the sheet refrences
Excel Formula:=INDEX(INDIRECT("'"&$A1&"'!"&"$d$1:$d$6"),MATCH(1,($C1=INDIRECT("'"&$A1&"'!"&"$B$1:$B$6"))*($D1=INDIRECT("'"&$A1&"'!"&"$C$1:$C$6")),0))
lets say i have more colums like 12?The {1,2,3,4} forces the formula to return all 4 columns from D:G
thanks you so muchIf you have 12 columns you can useExcel Formula:=INDEX(INDIRECT("'"&A2&"'!D2:O20"),MATCH(C2&"|"&D2,INDIRECT("'"&A2&"'!B2:B20")&"|"&INDIRECT("'"&A2&"'!C2:C20"),0),SEQUENCE(,12))