excel表行列查找 [英] excel table row column lookup

查看:106
本文介绍了excel表行列查找的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力处理一些Excel函数。



我有一个表,其中包含行头和列标题,然后是数据。例如:
如果我有一种类型的披萨,与其大小交叉,数据是价格。

  SML XL 
奶酪6 6.5 8 10
Pepperoni 6.5 7.5 10 12
至尊8 9 12 15

如果我在Excel中有这个表,如果我知道我想要奶酪,M,怎么能查找价格?



行和colmn标题将是文本,不一定是任何类型的排序顺序。



谢谢!!

解决方案

使用索引匹配:

 code> = INDEX(A:E,MATCH(Cheese,A:A,0),MATCH(M,1:1,0))
/ pre>

要调用单元格中的数据,因此它是动态的:



在F1中说你有奶酪,在G1中你有 M

  = INDEX(A:E,MATCH(F1,A:A,0),MATCH(G1,1:1,0))



索引公式的第一部分是搜索范围。在这种情况下,将列A全为E.



第二部分表示什么行。该匹配在A列中找到Cheese的第一个实例,并返回该行。



第三部分表示列。该匹配在第1行中找到M并返回列号。



现在使用这些坐标的索引知道要返回的内容。


I'm struggling with some Excel functions.

I have a table with row header and column header and then data. For example: If I have a type of pizza, crossed with its Size, and the data is the price.

               S    M      L    XL
 Cheese        6    6.5    8    10
 Pepperoni     6.5  7.5    10   12
 Supreme       8    9      12   15

If I have this table in excel, how can I do a lookup of the price if I know I want "Cheese", "M"?

The row and colmn headers will be text and not necessarily be in any type of sorted order.

thanks!!

解决方案

Use Index match:

=INDEX(A:E,MATCH("Cheese",A:A,0),MATCH("M",1:1,0))

To call with data in cells so it is dynamic:

Say in F1 you have Cheese and in G1 you have M:

=INDEX(A:E,MATCH(F1,A:A,0),MATCH(G1,1:1,0))

The first part of the Index formula is the Search range. In this case full column A to E.

The second part denotes what row. The match finds the first instance of "Cheese" in column A and returns that row.

The third part denotes the column. That match finds "M" in Row 1 and returns the column number.

Now Index, using those coordinates, knows what to return.

这篇关于excel表行列查找的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆