简体   繁体   English

Excel-用于在电子表格中查找值以及在另一列中的状态的公式

[英]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,则必须使用INDEXMATCH如下所示:

=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.

相关问题 如果满足条件格式条件,则从一个电子表格中的列生成值的Excel公式将显示在另一个电子表格中 - Excel formula to make value from a column in one spreadsheet appear in another spreadsheet if conditional formatting condition is met excel公式:根据另一列的值在一个列中查找唯一性 - excel formula : Find uniques in one column depending on value of another column Excel 公式:在列中搜索另一个值(LIKE) - Excel formula: search in column by another value (LIKE) 用于在包含另一列中的某个值的列中查找下一个值的公式 - Formula to Find Next Value in a Column that Contains a Certain Value in another Column Excel 公式根据另一列中的值填充一列 - Excel formula to fill a column based on value in another column Excel公式根据另一列值复制一列 - Excel formula to copy a column based on another column value 如何在多行/多列Excel电子表格表格中查找值的位置 - How to Find the location of a value in a multi row / column Excel spreadsheet table 如何在Excel中基于其他列的活动状态查找列中的最大值 - How to find the top value in a column based on another columns active status in Excel Excel公式在列中找到val并添加到另一个单元格 - Excel formula to find val in column and add to another cell 如何创建公式:如果等于另一个值,则从列中查找值 - How to create the formula: find value from column if equals another value
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM