[英]excel combining vlookup and some complicated calculations
請考慮以下
date interest rate 2 dates days between 1/5/11 10% 5/5/11 1/6/11 11% 8/7/11 64 1/7/11 18%
顯示的日期格式為DD / MM / YY
我想計算所示兩個日期之間的中位數利率。
So between 5th of may to 8th of july 26 days in may 30 days in june 8 days in july in this example the median interest rate would be 26/64*0,1 + 30/64*0,11 + 8/64*0,18 =0,1146875
是否可以在不使用VBA的情況下將這些計算組合到excel中的單個單元格中?
我認為在不使用VBA的情況下將單個單元格放入計算中是不可能的……我認為(也要檢查)划分單元格/列會更好。 檢查后,您可以隱藏...按照方案:
在以下單元格中輸入:
G2 -> =IF($D$3-A2+1>0;$D$3-A2-SUM(G3:$G$6)+1;0)
H2 -> =IF($D$2-A2+1>0;$D$2-A2-H3+1;0)
I2 -> =G2-H2
J2 -> =I2/$E$3*B2 ' A little correction...
和自動完成...
在單元格J7中,您輸入:
=SUM(J2:J5)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.