match - Get and Increase cell address in Excel formula -


i got following problem.

i have 2 excel sheets in same workbook. both contain lists, usernames, email addresses , colum called "profile".

now need find username of list 1 in list 2, , write contents of cell of row username found of column "profile" of list 2 list 1. , should use formulas macro not wanted here...

i thought going this:

  • get colum-address of usernamecell on list 2 matches username in colum formula in in list 1.

  • get value of "profile" colum of row username found in list 2.

the formula should display value of list 2 in list 1.

i have searched around, , didn't find useful.

i thought doing (in pseudo-formula):

indirect(address(match(a$2;'list2'!a:a);match(a$2;'list2'!a:a)+2)) 

so getting value, of address thing found +2 colums, username in , "profile" in c.

the problem here also, address gives me eg. "$a$7" not 'list2'!. can't have "pointer" other sheet in formular...

but formula not valid anyways, wondering if me out this.

thanks in advance, , hope questiion ok here, robind

you can vlookup.

     sheet 1          b               c 1    jon   jon@test.com    =vlookup(a2,sheet2!$a$2:$c$3,3) //result = "accountant" 2    betty betty@test.com       sheet 2          b               c 1    jon   jon@test.com    accountant 2    betty betty@test.com  marketing vp 

the formula:

=vlookup(a2,sheet2!$a$2:$c$3,3) 
  • a2 username want lookup in sheet2
  • sheet2!$a$2:$c$3 range reference of list in sheet2
  • 3 column want pull data in sheet2

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -