Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Lookup multiple values in Excel

Lookup multiple values in Excel

Lookup multiple values in Excel

Hi everyone,

This is what I've been trying to do with an Excel Spreadsheet.

For the sake of this example, this is the model of my spreadsheet:

Column A contains categories such as "Pumps, compressors, etc..."
Column B contains costs for the different equipment.

I want to create an additional table where I can have a heading that says "Pumps" for instance, and have a formula that would look up values in Column A referencing to the text "Pumps" and go to the next column "B" and look up the corresponding value.  

This is easily done with LOOKUP and other formulas, but in my case I have column A with several "Pump" entries, so I want more than just the value of the first row that has that text.

Does that make sense? I did research on the Microsoft website and they provided SMALL, INDEX, ISERROR formulas combined with each other, but it didn't work for me, even though I copied and pasted the example they had on their website and followed it.  

This is a link to the site, which may exlan better what I want to achieve:


Any insights??


RE: Lookup multiple values in Excel

If you want "more than just the value of the first row that has that text", then what do you want to do with the multiple results?  Do you want to sum them (in which case you can use SUMIF, for example)?

RE: Lookup multiple values in Excel

Yes, that would be good.

RE: Lookup multiple values in Excel

Say I have two columns of date.  In cells A1 to A10 I have labels like "pump", "compressor", etc and in adjacent cells B1 to B10 I have costs.  There may be several entries for "pump" in column A, each with its own cost.

If I want to find out the total cost of all "pump" entries, I can put this formula in cell C1:

Alternatively, I can put the word "pump" in cell C1 and put the following formula in cell D1:
Furthermore, I can then also put the word "compressor" in cell C2 and put the following formula in cell D2:

Hopefully you'll try this and then see a pattern that is of use to you...


RE: Lookup multiple values in Excel

Is it not something you could do using pivot table?

RE: Lookup multiple values in Excel

I think both pivot table and Brian's approach (sumif) would work.

sumif has the advantage that it doesn't need to be manually recalculated if you change the data.

Eng-tips forums: The best place on the web for engineering discussions.

RE: Lookup multiple values in Excel

Yes, the SUMIF works great.  I didn't know about array formulas.  Thank you so much!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close