简体   繁体   English

在另一个单元格的同一单元格中添加更多一个公式

[英]Add More One Formula In same cell from another cell

Add More One Formula In same cell from another cell 在另一个单元格的同一单元格中添加更多一个公式

Like That 像那样

=IF(H7="**cafee latee L**";**22**;0)<br />

the other formula that i want to add the same with different name and price 另一个我希望用不同的名称和价格添加相同的公式

=IF(H7="**cafee latee R**";**19**;0)<br />

that mean if you find in H7 Word " " put Price if find " " put price ...etc 这意味着,如果你在H7中找到了单词“ " put Price if find " “放价格”, " put Price if find "把价格......等等

尝试使用嵌套的IF子句:
=IF(H7="cafee latee R",22,IF(H7="cafee latee L",19,0))

Although the answer by @identifymecnu will work but "Nesting IF" become really difficult to handle after ~10 items. 虽然@identifymecnu的答案可行,但“嵌套IF”在~10项之后变得非常难以处理。

You can create a table (TEST) with two column headers (ITEM, VAL) & populate every row with a new item & its value. 您可以使用两个列标题(ITEM,VAL)创建一个表(TEST),并使用新项及其值填充每一行。

表

Then use following formula : 然后使用以下公式:

=INDEX(TEST[VAL],MATCH(H7,TEST[ITEM],0))

在此输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从另一个单元格中的一个数字减去一个单元格中的数字范围的公式 - Formula for subtracting number range in one cell from a number in another cell 根据相同的单元格值插入另一个工作表中的公式 - Insert a formula from another sheet based on same cell values 将功能从一个单元格链接到另一张工作表中的同一单元格 - Link the function from one cell to the same cell in another sheet 有可能使用公式从Excel中的一个单元格的内容减去另一个单元格的内容吗? - Is it possible to subtract the content of one cell from another in excel using formula? 用于检查一列中某个单元格的值是否在另一列中某个单元格的范围内并在同一行上添加一个值的公式 - Formula to check if the value of a cell in a column is in the range of a cell in another column and add a value on the same line 使用openpyxl将公式从一个单元格复制到另一个单元格 - Copy formula from one cell to another using openpyxl 一个包含字母“ T”的单元格和同一行中包含“ * TT *”的另一个单元格的公式 - Formula for one cell containing letter “T” and another cell in the same row containing “*T-T*” 从工作表中的一个单元格计算公式并将结果粘贴到另一个不同工作表的另一个不同单元格中 - Calculate a formula from one cell in a sheet and paste the result in another different cell from another different sheet 在同一单元格中添加超链接和公式 - Add hyperlink and formula within the same cell VBA插入公式以将单元格的值添加到另一个 - VBA insert a formula to add value of cell to another
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM