Thomp said:
=VLOOKUP(CELL("Contents"), . , . [, . ])
...
I seem to have the formula wrong somehow. See below what I wrote. I
have a macro from John walkenbach's book that I think I can use to
make it recalculate if I can just get the formula right.
=VLOOKUP(CELL,('SAN Account List'!A2:S75,2,FALSE)
Yup, that's wrong. CELL is a function, and CELL("Contents") is a
function call that returns the value of the cell that was active at
last recalc.
What I am ultimately trying to do is that I have two sheets one with
all of the data and another one which is kind of like my dashboard. I
want to be able to populate the cells on the dashboard based on a
vlookup that retrieves data from the data sheet in which the data in
the active cell matches the data on the data sheet
I suspect what you want to do is use the first column of your table of
data as a LIST data validation source for one cell in your dashboard
worksheet. That is, in the dashboard worksheet, name a cell ID, format
it as unlocked, apply data validation to it (a list source with the
list being a reference to the leftmost column of your data table),
then make the formulas in your dashboard workbook similar to
=VLOOKUP(ID,ReferenceToYourDataHere,column_index,0)
Data validation would add a drop-down list to the cell named ID, so
users could click on the down arrow button on the right side of the
cell and scroll through the drop-down list to select the records from
the data table. Changing the ID cell *DOES* trigger recalculation, so
Excel would update all VLOOKUP calls referring to ID when ID changes.