Using INDEX & MATCH in same formula

L

Lolamama

I am trying to reference information from an Excel database in a new
worksheet. In the new worksheet (called 'Paint Schedule'), when I fill in
the name of the material from a dropdown menu (in column B), I would like it
to automatically fill in the material unit price (from column G in worksheet
named 'Material Unit $ By Substrate') in column C of 'Paint Schedule,' as
well as the labor unit price (from column E in worksheet named 'Labor Unit $
By Substrate') in column D of 'Paint Schedule.' The material name should
correspond throughout. I **think** I need to use an INDEX & MATCH formula to
accomplish this (based on other postings I've read), but I'm not sure how the
two functions interrelate or how exactly to write the formula. Any help
would be greatly appreciated. Thanks!
 
D

dan dungan

You'd probably get a better response in the group,
microsoft.public.excel.worksheetfunctions
 
T

Tom Hutchins

It sounds like Vlookup may be what you need. If, for example, the material
name is in column A on the other sheets (Material Unit & Labor Unit),
formulas like these on the Paint Schedule sheet should work:

To get the material unit price:
=IF(ISERROR(VLOOKUP(B2,'Material Unit $ By
Substrate'!A:G,7,FALSE)),0,VLOOKUP(B2,'Material Unit $ By
Substrate'!A:G,7,FALSE))

To get the labor unit price:
=IF(ISERROR(VLOOKUP(B2,'Labor Unit $ By
Substrate'!A:E,5,FALSE)),0,VLOOKUP(B2,'Labor Unit $ By
Substrate'!A:E,5,FALSE))

In these examples, B2 on the Paint Schedule sheet has the material name to
use (the dropdown selection).
Hope this helps,

Hutch
 
L

Lolamama

Genius, absolute genius! I NEVER would have figured that out on my own.
Whatever they're paying you, it's not enough:)
 

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