[英]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.