I'm using an Indirect function right now to look up a value from another worksheet where the other worksheet name is pulled in from a cell on the same worksheet the formula is on. But right now I have the cell to look at hard coded into the formula. I'd rather have it be a lookup in case the rows get changed on the lookup worksheet.
I'm guessing there's a way to do this but it seems to get complicated.
Here is my current formula,
In cell F2 is the name of the worksheet I want to lookup in. G16 is the cell I want to grab the value from. The value I'm looking up is a $ value for a specific code. The code number is listed in the lookup worksheet and in the current worksheet, so I want to change the formula where G16 is to say something like, Match(A6,F2!A1:A300), where A6 is the code in this sheet I want to find in the range A1:A300 of the lookup sheet name which is in Cell F2.
Is there a way I can do this? Thanks.
I'm guessing there's a way to do this but it seems to get complicated.
Here is my current formula,
Code:
=INDIRECT("'" & $F$2 & "'!" & "G16")*$E6
In cell F2 is the name of the worksheet I want to lookup in. G16 is the cell I want to grab the value from. The value I'm looking up is a $ value for a specific code. The code number is listed in the lookup worksheet and in the current worksheet, so I want to change the formula where G16 is to say something like, Match(A6,F2!A1:A300), where A6 is the code in this sheet I want to find in the range A1:A300 of the lookup sheet name which is in Cell F2.
Is there a way I can do this? Thanks.