ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   I want to look up a cost but I need two criteria met Vlookup give. (https://www.excelbanter.com/excel-programming/342022-i-want-look-up-cost-but-i-need-two-criteria-met-vlookup-give.html)

scott

I want to look up a cost but I need two criteria met Vlookup give.
 
I have a table and want to find One cost but it must meet two values. ie
Task number plus Labor = Cost or Task number plus material = Cost. Vlookup
seams to only want to lookup one of the two values then return the cost

Gary''s Student

I want to look up a cost but I need two criteria met Vlookup give.
 
You can accomodate VLOOKUP.

Say you have three columns:

Task Material Cost

and you need to specify both task and material to get cost.

First create a new column and fill it by concatenating Task and Material.
When you do the lookup, concatenate the values and VLOOKUP the merged inputs
in the new column. This trick can be expanded to way more than 2 inputs.
--
Gary's Student


"Scott" wrote:

I have a table and want to find One cost but it must meet two values. ie
Task number plus Labor = Cost or Task number plus material = Cost. Vlookup
seams to only want to lookup one of the two values then return the cost



All times are GMT +1. The time now is 12:52 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com