Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a data range called Benefits where the top row is named BenefitHeader.
(Benefits does not include the top row). The data looks something like this: Name Owner Terminated Var1 LTC 0 12/31/2007 TRUE LTC 0 TRUE SRP 1 12/31/2007 EP SRP 0 EP SRP 1 S162 SRP 0 S162 I need to be able to lookup based on Name and any one or two of the other columns within the named range (Currently, the columns used are A:IE and more could be added at any time). To do a single lookup value I would use =VLOOKUP("LTC",Benefits,MATCH("terminated",Benefit Header,0)) and that would get the first instance of LTC and pull the terminated value. However, how would I get the terminated value for SRP where owner is 1 and Var1 is S162? I'd like to do this without concatenating columns, if possible, because I want to keep it flexible when determining which columns to use. I am open to adding a UDF where I pass it the column headings for values I want to specify and the column heading for the value that I would like to get. I think it must be possible but I don't know how to do it. Any help will be appreciated!! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
showing lookup result with multiple variables | Excel Discussion (Misc queries) | |||
Lookup (multiple variables) | Excel Worksheet Functions | |||
Multiple Criteria Lookup Question | Excel Discussion (Misc queries) | |||
Add up a Dynamic Range with 2 Variables | Excel Worksheet Functions | |||
Add up a Dynamic Range with 2 Variables | Excel Worksheet Functions |