[算表] 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