Using variables in cell numbers--ACK!

D

Daryle

Here is the scenario:

I have a Combo Box control on worksheet CONFIG that lists
part numbers from Worksheet DATA. Selecting one of the
combo box choices sets the value of it's linked cell to a
numerical value (1-160). In Column PART NUMBER on Wksht
CONFIG I need to return a part number from wkst DATA,
based on the choice from the combo box. One, long,
cumbersome way to do this would be with a giant IF
statement. I do not want to go that route. My other
option and crux of my question is to return a value from
wkst DATA, Column PART NUMBERS (A) and Row #-(variable
based on the linked cell value on Worksheet CONFIG. Can
that be done, how, and am I making sense??

D
 
A

acw

Daryle

Have a look at the LOOKUP, VLOOKUP and HLOOKUP functions
depending on how your data is structured in sheet DATA.


Tony
 
L

Leo Heuser

Daryle

I'm not sure, I have understood you correctly.
Will this formula do?
Assuming Partnumbers in A2:A1000 on sheet Data
and the linked cell on sheet Config in cell D2

=INDEX(Data!A2:A1000, D2)

--
Best Regards
Leo Heuser
MVP Excel

Followup to newsgroup only, please.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top