Aug 21 2019 05:12 PM
I have two sheets for 2 assets: 13100 and 13200. I have monthly numbers (i.e. Jan, Feb etc) for several accounts. I am trying to create a formula to get the numbers for a particular month for a particular asset. I am trying to use the indirect function. I have created "Data" in the Name manager. But my formula isn't working: =VLOOKUP($A5,INDIRECT(""&$B5&"!Data"),MATCH(C$2,INDIRECT(""&$B5&"!Data",0),0))
There seems to be an issue in the formula after the Match i.e. the second indirect. It is not connecting the month to the asset. The excel file is attached. Would appreciate if someone can assist.
Aug 21 2019 10:29 PM
please check following formula
=VLOOKUP($A5,INDIRECT( $B5&"!Data"), MATCH(C$2, INDEX( INDIRECT( $B5&"!Data"),1,),0 ), 0)
The index formula extracts only first row from Data for MATCH formula.
Let me know how it works !!
Aug 22 2019 12:00 AM
This formula in C5 should work for you:
=VLOOKUP($A5,
INDIRECT($B5&"!Data"),
MATCH(C$2,INDIRECT($B5&"!$A$4:$H$4"),0),0)