[英]Excel - Formula to find value on spreadsheet plus its status in another column
I have a list of 60,000+ Meters with status'. 我有一个状态为60,000+米的列表。 I'd like to paste a list of meters from another source and plug in a value to tell me what the status is for that meter automatically instead of searching each one.
我想粘贴另一个来源的电表列表,并插入一个值,以告诉我该电表的状态是自动的,而不是搜索每个电表。
For example: 例如:
If I was asked "What is the status for 4972617, 4869966, and 4822118" and had the list in excel form, I'd like to dump them in a column of their own and apply a formula to tell me it found the meter and it's notation is exchanged! 如果我被问到“ 4972617,4869966和4822118的状态如何”并且列表以excel格式显示,我想将它们倒入自己的栏中,并应用一个公式告诉我它找到了仪表,交换了符号! Something I would place in G3 in my example below...
在下面的示例中,我会在G3中放置一些内容...
LIST: 清单:
COLUMN A COLUMN B COLUMN F COLUMN G
Status Meter Search
Exchanged 4972617 4972617 =????
Exchanged 4869966 4869966
Open 4822118 4822118
Exchanged 5020631
Exchanged 4954834
Open 1337554
Open 5148459
If you can switch column A and B, you can use VLOOKUP
like this in cell G2: 如果可以切换列A和列B,则可以在单元格G2中像这样使用
VLOOKUP
:
=VLOOKUP(F2, A:B, 2, FALSE)
And then copy/paste the formula down. 然后将公式复制/粘贴下来。
If you cannot switch columns A and B, you will have to use INDEX
and MATCH
like this: 如果无法切换列A和列B,则必须使用
INDEX
和MATCH
如下所示:
=INDEX(A:A, MATCH(F2, B:B, 0))
VLOOKUP
will do your bidding. VLOOKUP
将进行您的出价。
Say your meters are in column A and the statuses are in column B. 假设您的仪表在A列中,而状态在B列中。
Type in the meters you want to search for in column F, as you have them. 根据需要在F列中输入要搜索的仪表。
In G1, put in this: 在G1中,输入以下内容:
=VLOOKUP(C1, A:B, 2, FALSE)
And fill down as far as you need. 并根据需要填写。 This will put the corresponding status next to the meter ID.
这会将相应的状态放在仪表ID旁边。
But, if you're doing a lot of queries like this, I'd learn how to use Microsoft Access. 但是,如果您要进行许多此类查询,我将学习如何使用Microsoft Access。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.