L
Lucas Bravo
I have a table such as the following:
STORE ASSISTANT MANAGER
Store A John Bob
Store B John Bob
Store C Mary Terry
Let's assume that this range is called Data.
I want to use one single formula to lookup and return different values in
the table. This means that the same formula should be able to accomplish the
following:
a) Lookup any store's Assistant
b) Lookup any store's Manager
c) Lookup any Assistant's Manager
The only thing that I want to be able to change is the column headings that
I am using as lookup value and as return value.
One approach could be to define several Range Names, like: DataByStore (Cols
A thru C) and DataByAssistant (Cols B thru C). However, I want to avoid this
because I have over 20 columns that I would be looking by (this example has
been over-simplified)
Any ideas of how to make this work with only one formula and one range name?
Thanks!
Lucas
STORE ASSISTANT MANAGER
Store A John Bob
Store B John Bob
Store C Mary Terry
Let's assume that this range is called Data.
I want to use one single formula to lookup and return different values in
the table. This means that the same formula should be able to accomplish the
following:
a) Lookup any store's Assistant
b) Lookup any store's Manager
c) Lookup any Assistant's Manager
The only thing that I want to be able to change is the column headings that
I am using as lookup value and as return value.
One approach could be to define several Range Names, like: DataByStore (Cols
A thru C) and DataByAssistant (Cols B thru C). However, I want to avoid this
because I have over 20 columns that I would be looking by (this example has
been over-simplified)
Any ideas of how to make this work with only one formula and one range name?
Thanks!
Lucas