简体   繁体   中英

Select a value from a cell based on a range

I am trying to solve a problem. I don't even know if this question's heading is correct or if I am using the right terminology. So please feel free to correct me.

I have two sheets coming from two different systems. One provides me with a department name and one doesn't. I need to add the department name from my first sheet to my second sheet. The common value between these two lists is email addresses.

Please look at the image below.

  • In Column E5 I want to bring the value from Column K8 because the value in B5 is found in Column J at J8.
  • If the value doesn't match, in that case, we'll leave the cell empty.
  • Based on these rules, I want to fill the data in Column E

样本数据

Any help would be appriciated.

虽然VLookup()工作正常,但您也可以使用如下所示的Index()Match()函数。

=INDEX($K$5:$K$14,MATCH(B5,$J$5:$J$14,0))

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM