Lookup multiple values in Excel
Lookup multiple values in Excel
(OP)
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:
http ://office. microsoft. com/en-us/ assistance /HA0122603 81033.aspx
Any insights??
Thanks!
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:
http
Any insights??
Thanks!





RE: Lookup multiple values in Excel
RE: Lookup multiple values in Excel
RE: Lookup multiple values in Excel
http://www.cpearson.com/excel/lookups.htm
RE: Lookup multiple values in Excel
If I want to find out the total cost of all "pump" entries, I can put this formula in cell C1:
=SUMIF(A1:A10,"pump",B1:B10)
Alternatively, I can put the word "pump" in cell C1 and put the following formula in cell D1:
=SUMIF(A1:A10,C1,B1:B10)
Furthermore, I can then also put the word "compressor" in cell C2 and put the following formula in cell D2:
=SUMIF(A1:A10,C2,B1:B10)
Hopefully you'll try this and then see a pattern that is of use to you...
Brian
RE: Lookup multiple values in Excel
RE: Lookup multiple values in Excel
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