[算表] Excel 字串內包含&

作者: OUCHRUSH (Power Overwhelming!)   2019-12-05 23:55:16
軟體:Excel
版本:2013
請問我在Excel中寫了下列公式:
=DURATION("1/1/2000","1/1/200&E8",E7,E10,E9)
其中E8 = 5
我想要讓結果呈現為
=DURATION("1/1/2000","1/1/2005",E7,E10,E9)
應該如何修正原公式?
作者: enjoyyou (漫步人間)   2019-12-06 06:54:00
=DU..ON(DATE(2000,1,1),DATE("200"&E8,1,1),E7,E10,E9)
作者: soyoso (我是耀宗)   2019-12-06 06:55:00
如要"1/1/2005"的話"1/1/200"&e8https://i.imgur.com/ZuhF4DA.jpg
作者: OUCHRUSH (Power Overwhelming!)   2019-12-06 23:33:00
感謝,我原本用Concatenate寫出來了,但你的Date更直覺也謝謝soyoso的寫法

Links booklink

Contact Us: admin [ a t ] ucptt.com