简体   繁体   English

Excel:如何根据值更改单元格内容

[英]Excel: How do I change the Cell Content based on the Values

I have the following criteria for my excel.我的excel有以下标准。 90%, 70% & 30% hike in salaries are being categorized for all the available cadres. 90%、70% 和 30% 的加薪正在对所有可用干部进行分类。 Eg.例如。 Manager, Assistant Manager, Senior Engineer, Jr. Engineer.经理,助理经理,高级工程师,初级工程师。 The cadre should be promoted if the salaries are hiked by >=70% (ie for 70% and 90% hikers) Eg 1. Mr. X - Senior Engineer should be promoted to Asst.如果加薪幅度>=70%(即70% 和90% 的加薪者),则该干部应晋升。 例如1. X 先生-高级工程师应晋升为助理。 Mgr for 90% hike in salary 2. Mr. Y - Assistant Manager should be retained as Asst.经理加薪 90% 2. Y 先生 - 助理经理应保留为助理。 Mgr for 30% hike in salary.经理加薪 30%。

How do I write a formula for this?我如何为此编写公式?

Hope I am clear with my question.希望我清楚我的问题。

Thanks in advance.提前致谢。

Not sure I understand exactly your question.不确定我完全理解你的问题。

But there is the if statement:但是有 if 语句:

ex: =IF(A2 >=70,"Promoted","Not promoted")例如:=IF(A2 >=70,"提升","不提升")

May be OP wants to get the position to which cadre is promoted rather than identify promotion status.可能是OP想要得到干部晋升的职位而不是确定晋升状态。

In that case following setup would help.在这种情况下,以下设置会有所帮助。

If you have Current Positions in column A Hike % in column B如果您在 A 列中拥有当前头寸,则在 B 列中增加 %

Setup a list of positions in column 'F' according to hierarchy in increasing order.根据层次结构按递增顺序在“F”列中设置职位列表。 Eg.例如。 F2 = Jr. Engg, F3 = Sr. Engg and so on. F2 = Jr. Engg,F3 = Sr. Engg,依此类推。 Use exact same names as in existing position使用与现有位置完全相同的名称

Label column C as 'New Position' and in cell C2 enter formula将列 C 标记为“新位置”并在单元格 C2 中输入公式

=IF(B2>=70%,INDEX($F$2:$F$5,MATCH(A2,$F$2:$F$5,0)+1,1),A2)

暂无
暂无

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

相关问题 如何基于Excel中另一列的单元格值更改列中的值? - How to change values in a column based on cell values in another column in excel? 如何根据旁边单元格中的值在excel中为单元格着色? - How can I colour a cell in excel based on the values in the cell next to it? 根据内容更改Excel单元格文本 - Change excel cell text based on content VBA Excel根据一个单元格的内容更改另一个单元格的内容 - VBA Excel Change Content of another Cell based on content of one cell 如何根据单元格值在表格中创建行并根据 Excel 中的单元格值填充列 - How do I create rows in a table based off a cell value and fill a column also based off the cell values in Excel 如何基于同一行中的多个单元格更改Excel 2013中单元格的格式 - How do I change the format of a cell in excel 2013 based on multiple cells within the same row 如何在Excel 2013 VBA中根据单元格值更改URL值 - How do I change a url value based on a cell value in excel 2013 VBA Excel:如何根据一个单元格中的值在一个单元格中使用一个或另一个单独的公式? - Excel: How do I use one or another separate formulas in one cell, based on values in another? 如何根据Excel中的单元格值有条件地设置形状的边框颜色? - How do I conditional format border colour of shape based on cell values in Excel? 在Excel中使用VBA,如何循环列并根据单元格值创建新工作表? - Using VBA in Excel, how do I loop through a column and create new sheets based on cell values?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM