Doc. Date Aging (days) Aging class
10/06/2010 1820 121+ Days
09/30/2015 0 0 - 30 Days
09/11/2015 19 0 - 30 Days
09/11/2015 19 0 - 30 Days
09/11/2015 19 0 - 30 Days
09/11/2015 19 0 - 30 Days
我想在没有老化日的情况下在Column中添加老化的grop。因此,我可以帮助您在单列而不是两步中计算它。
没有天的公式是
=IF(ISBLANK(H4),"",'Ex. rate'!$G$2-I4)
老化组的公式是
=IF(J4<=30,"0 - 30 Days",IF(J4<=60,"31 - 60 Days",IF(J4<=90,"61 - 90 Days",IF(J4<=120,"91 - 120 Days","121+ Days"))))
答案 0 :(得分:2)
警告它很长:
=IF(ISBLANK(H4),"",IF('Ex. rate'!$G$2-I4<=30,"0 - 30 Days",IF('Ex. rate'!$G$2-I4<=60,"31 - 60 Days",IF('Ex. rate'!$G$2-I4<=90,"61 - 90 Days",IF('Ex. rate'!$G$2-I4<=120,"91 - 120 Days","121+ Days")))))
答案 1 :(得分:0)
或者:(没有嵌套if但是需要总是相同的范围)
=IF(I4="","",CHOOSE(MIN(MAX(TRUNC(('Ex. rate'!$G$2-I4-1)/30)+1,1),5),"0 - 30 Days","31 - 60 Days","61 - 90 Days","91 - 120 Days","121+ Days"))
(将H4更改为I4)......对我来说仍然很有效。不知道怎么会出错......对不起:/