2015-12-15 76 views
1
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 

我想在沒有老化天的情況下在欄中添加陳年老化。所以我可以幫助計算它在單列而不是兩步。沒有專欄的老化公式

公式無天是

=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")))) 

回答

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"))))) 
+0

它的工作......謝謝 –

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)...仍然適用於我。不知道它怎麼會是錯的...對不起:/

+0

......它看起來不錯,但不知道爲什麼它不適合我只顯示0-30天。而不是I4它應該是H4。我已經轉移了專欄,忘記了編輯問題。 –