Frage

I have a workbook with a few worksheets that hold recipes for various menu section in my restaurant. I have one page that I use as an 'Ingredients' data page and one that I use for making new recipes by pulling data from the 'Ingredients' sheet.

Problem is when ever I add an ingredient to the 'Ingredients' page and re-sort alphabetically (as I know this works best for vlookup) the vlookup formula replaces the table array reference in the formula with #REF e.g

=VLOOKUP(A10,Ingredients!A2:H320,5,TRUE)

gets changed to

=VLOOKUP(A11,#REF!A2:H320,5,TRUE)

is there away for making 'Ingredients' static and none change-able? Does "$" work for table names as well as cell references?

ANy help would be great and I will answer any questions that help.

Matt

War es hilfreich?

Lösung

=VLOOKUP(A10,INDIRECT("Ingredients!A2:H320"),5,TRUE)
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top