[英]Excel Wizards: How to create a formula for multiplying parts of a number by one cell, and another part by another
[英]take part of number in cell and move the remaining to another cell + excel formula
我需要将一个数字除以两个数字的总和..在我的示例中(计算服务终止收益),例如,如果总年数= 4年,则需要将单元格的13年划分为5年,单元格的划分为8年。它应该分为4和0,依此类推..
A B C D E
start date | End date | number of years | first 5 years | Remaining years
5/5/2010 6/3/2016 5 5 0
4/3/2000 7/7/2013 13 5 8
3/6/1998 13/5/2016 17 5 12
1/1/2013 2/3/2016 3 3 0
我们如何计算D&E列..任何帮助将不胜感激..预先感谢
将D中的公式设置为(例如D2):
=IF(C2 > 5 , 5 , C2)
并在E列中:
=IF(C2 > 5 , C2 - 5 , 0)
然后,向下拖动公式以覆盖整个范围(例如,从D2 / E2到D5 / E5)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.