映射值如果匹配条件 - Excel [英] Mapping value if it matches criteria - Excel

查看:159
本文介绍了映射值如果匹配条件 - Excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个我想填写的列(购物车)。我想要填充此单元格的数据具有标准(杂货列表),如果满足,则应通过映射工具等同于其他条件。信息可能是一个例子,将更好的解释,



购物车 - Sheet1

 水果价格
苹果0
香蕉0
橘子0

杂货列表 - Sheet2 每天更改

  *杂货列表* *价格* 
鸡蛋3.00
奶奶史密斯$ 50
面包1.00
普通话.65
培根2.50
克莱门汀。 60
红色美味.70

这里是我困惑的地方。 / strong>



映射表。即,不管苹果的类型如何,我的购物车只注册苹果 - 第3页

  *食物* *类型* 
苹果Macintosh
苹果奶奶史密斯
苹果红色美味
橙色克莱门汀
橙色汉语
橙色佛罗里达州

我希望我的购物车更新每个组中最昂贵的水果。在我的杂货店第一站,这是我的冰箱看起来像,



购物车 - Sheet1

 水果价格
苹果.70
香蕉0
橙色.65

所以在Excel中,我需要一个组的 MAX (假设<$ c $符合特定条件的单元格的c> INDEX MATCH )(假设 IF )。我将电子表格(杂货列表)导入到某个选项卡中,我将从中提取该信息。我正在拍摄的是映射部分。我觉得我在这里缺少一些基本的东西,如果有人能够引导我走向正确的方向,我会感激的。



让我知道如果需要更多的信息来使这个更清楚。

解决方案

使用这个数组公式,我把我的所有相同的表:


$ b $ ($($ E $ 2:$ E $ 8,IF($ H $ 2:$ H $ 7 = A2,$ I $ 2:$ I $ 7) ,0)),$ F $ 2:$ F $ 8))

作为一个数组公式,退出编辑模式时,用ctrl-shift-enter确认,而不是Enter。如果正确完成,Excel将围绕公式放置 {}





我会注意,每个文字必须是 EXACT 匹配,否则这将无法正常运行。


I have a column(Shopping Cart) that I am looking to populate. The data that I am looking to populate this cell with has criteria(Grocery List) that, if met, should equal another criteria via a mapping tool. The information is Maybe an example will better explain,

Shopping Cart - Sheet1

Fruit   Price  
Apples    0  
Bananas   0  
Oranges   0

Grocery List - Sheet2 which changes daily

*Grocery List*  *Price*
Eggs             3.00  
Granny Smith     .50
Bread            1.00
Mandarin         .65 
Bacon            2.50
Clementine       .60
Red Delicious    .70

Here is where I am getting confused.

Mapping Table. ie, so regardless of the type of Apple, my shopping cart only registers Apple - Sheet 3

*Food*    *Type*        
Apple     Macintosh  
Apple     Granny Smith  
Apple     Red Delicious  
Orange    Clementine  
Orange    Mandarin  
Orange    Florida

I want my shopping cart to be updated with the most expensive fruit in each group. After my first stop at the grocery store, this is what my refrigerator would look like,

Shopping Cart - Sheet1

Fruit   Price  
Apple    .70  
Banana    0  
Orange   .65

So in Excel terms, I need the MAX of a group (assuming INDEX MATCH) of cells that meet a certain criteria (assuming IF). I import a spreadsheet (Grocery List) into a certain tab which I would pull that information from. What I am getting tripped up is with the mapping part. I feel like I am missing something basic here and would appreciate if someone could lead me in the right direction.

Let me know if any more information is needed to make this clearer.

解决方案

Use this array formula, I put mine on all the same sheet:

=MAX(IF(ISNUMBER(MATCH($E$2:$E$8,IF($H$2:$H$7=A2,$I$2:$I$7),0)),$F$2:$F$8))

Being an array formula it needs to be confirmed with ctrl-shift-enter instead of Enter when exiting edit mode. If done correctly then Excel will put {} around the formula:

I will caution though, every text must be an EXACT match or this will not work.

这篇关于映射值如果匹配条件 - Excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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