Is it possible to have the table array in a vlookup formula be a variable driven by another cell in the workbook?
VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
I have the following formula where the table array is a named range "IJSA_PL_Lookup_Array". This is a range of cells (B5:CK1000) on another worksheet. The current formula works just fine.
=VLOOKUP(CONCATENATE('Comparative P&L'!$A6," Total"),IJSA_PL_Lookup_Array,H$1,FALSE)
There are several worksheets in the workbook all similar in structure to the worksheet containing this array of data, but all containing different data.
IJSA_PL_Lookup_Array (Cells B5:CK1000 on sheet 1)
Golf_PL_Lookup_Array (Cells B5:CK1000 on sheet 2)
Tennis_PL_Lookup_Array (Cells B5:CK1000 on sheet 2)
M&S_PL_Lookup_Array (Cells B5:CK1000 on sheet 4)
I need to allow the user of the workbook to change the table array that the formula is pointing to simply by changing the value in cell A1. I essentially need the vlookup formula to read the contents of cell A1 and change the table array from IJSA_PL_Lookup_Array to any one of the other named ranges based on the value in cell A1. I have tried various combinations of concatenate and other functions, but the vlookup does not seem to want to allow the table array to be a variable. Is it possible? The output page contains several thousand vlookup formulas identical to this one which is why I would like to be able to simply change the table array in all of them using a variable instead of actually replacing them each time.Tom
VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
I have the following formula where the table array is a named range "IJSA_PL_Lookup_Array". This is a range of cells (B5:CK1000) on another worksheet. The current formula works just fine.
=VLOOKUP(CONCATENATE('Comparative P&L'!$A6," Total"),IJSA_PL_Lookup_Array,H$1,FALSE)
There are several worksheets in the workbook all similar in structure to the worksheet containing this array of data, but all containing different data.
IJSA_PL_Lookup_Array (Cells B5:CK1000 on sheet 1)
Golf_PL_Lookup_Array (Cells B5:CK1000 on sheet 2)
Tennis_PL_Lookup_Array (Cells B5:CK1000 on sheet 2)
M&S_PL_Lookup_Array (Cells B5:CK1000 on sheet 4)
I need to allow the user of the workbook to change the table array that the formula is pointing to simply by changing the value in cell A1. I essentially need the vlookup formula to read the contents of cell A1 and change the table array from IJSA_PL_Lookup_Array to any one of the other named ranges based on the value in cell A1. I have tried various combinations of concatenate and other functions, but the vlookup does not seem to want to allow the table array to be a variable. Is it possible? The output page contains several thousand vlookup formulas identical to this one which is why I would like to be able to simply change the table array in all of them using a variable instead of actually replacing them each time.Tom