excel - Vlookup to search non-unique values -



excel - Vlookup to search non-unique values -

i have 2 excel sheets below values

sheet1

empid appname appid [only appid unique]

sheet2

empid appname requestnum [only requestnum unique]

empid repeated since there multiple apps associated 1 users appname repeated since there multiple instances of single app associated 1 users

now, want requestnum sheet2 sheet1, returns me 1st value in case of duplicates. concatnating empid & appname not work since not create unique combination. how accomplish that? possible combination of formulae or need macro?

any help much appreciated :)

pasting sample sheets below, thx quick response:

sheet1:

empid appname appid a123 app1 uniqueid001 a123 app2 uniqueid002 b444 app66 uniqueid003 b898 app1 uniqueid004 h123 app33 uniqueid005 a123 app1 uniqueid006 b444 app33 uniqueid007 l001 app2 uniqueid008 h123 app1 uniqueid009

sheet2:

empid appname requestnum a123 app1 uniquereq001 a123 app2 uniquereq002 b444 app66 uniquereq003 b898 app1 uniquereq004 h123 app33 uniquereq005 a123 app1 uniquereq006 b444 app33 uniquereq007 l001 app2 uniquereq008 h123 app1 uniquereq009 a123 app1 uniquereq010 a123 app2 uniquereq011 b444 app66 uniquereq012 b898 app1 uniquereq013 h123 app33 uniquereq014 a123 app1 uniquereq015 b444 app33 uniquereq016 l001 app2 uniquereq017 h123 app1 uniquereq018

if sheet1's appid unique , sheet2's requestnum unique i'm not sure how determine empid & appname send sheet2's requestnum here 1 possible solution.

       

the formula in d2 =iferror(index($h$2:$h$9,small(index(row($1:$8)+(($f$2:$f$9<>$a2)+($g$2:$g$9<>$b2))*1e+99,,),countifs($a$2:$a2,$a2,$b$2:$b2,$b2))),""). fill downwards necessary.

excel excel-vba excel-formula

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -