Good afternoon, I've inherited a workbook that has complex (to me) formulae that look up values based on Brands, Quarters & Countries. At the moment we have a block of formulae per Brand but this seems to really slow things down when the workbook recalculates. Here is an example of the formula in one of the cells:-
"'" & F$11 & " - City'!" This is the sheet, for example, Quarter3 - City.
VLOOKUP($C$6,RangeDataBRAND1City,2,FALSE) This is what I'd like to be more flexible; it identifies the row references of the Table-array.
The 'MATCH' finds the Column number for the appropriate country.
What I'd like to be able to do is just have one block of formulae and use the value of a cell to substitute for the hard-coded "BRAND1", BRAND2" etc.
So that
Becomes something like,
Is this possible?
Many thanks,
D€$
Code:
=IFERROR(VLOOKUP($A12, INDIRECT("'" & F$11 & " - City'!" & VLOOKUP($C$6,RangeDataBRAND1City,2,FALSE)),MATCH($C$4,INDIRECT("'" & F$11 & " - City'!" & "A1:Z1"),0),FALSE),"0")
"'" & F$11 & " - City'!" This is the sheet, for example, Quarter3 - City.
VLOOKUP($C$6,RangeDataBRAND1City,2,FALSE) This is what I'd like to be more flexible; it identifies the row references of the Table-array.
The 'MATCH' finds the Column number for the appropriate country.
What I'd like to be able to do is just have one block of formulae and use the value of a cell to substitute for the hard-coded "BRAND1", BRAND2" etc.
So that
Code:
RangeDataBRAND1City
Becomes something like,
Code:
RangeData & "C5" & City
or
RangeData & CityQBrand & City
If CityQBrand were the name assigned to "C5".
Is this possible?
Many thanks,
D€$