[英]Excel Lookup for multiple values
I have two sheets in Excel. 我在Excel中有两张纸。 First one is city/branch name and the second is the branch's sales.
第一个是城市/分支名称,第二个是分支机构的销售额。
sheet 1: 工作表1:
City Branch
NY GoldenStar
NY Aquta
NY Orgi
Oregon Orgi
L.A Orgi
Oregon GoldenStar
....
Sheet 2 is detailed sales for each city 表格2是每个城市的详细销售情况
Branch
City GeldenStar Aquta Orgi
NY 45 456 90
L.A 155 345 34
Oregon 9 23 17
How can I use lookup function to assign each branch sale to sheet 1 ( I want to have a result like this :) 如何使用查找功能将每个分支销售分配给工作表1(我想要这样的结果:)
sheet 1: 工作表1:
City Branch Sale
NY GoldenStar 45
NY Aquta 456
NY Orgi 90
Oregon Orgi 17
L.A Orgi 34
Oregon GoldenStar 9
Use a combination of VLOOKUP
and MATCH
for this task. 为此任务使用
VLOOKUP
和MATCH
的组合。 Consider this example: 考虑以下示例:
Use the VLOOKUP
to look into the data range (without headers) with the City name as the key. 使用
VLOOKUP
查找以城市名称为关键字的数据范围(无标题)。 You get the column number from using MATCH
with the Branch name into the header range. 您可以通过将
MATCH
与“ Branch”名称一起使用来获得标题范围。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.