我在开放式办公室连续6个字段,第1个是单词,第2个,第3个和第4个是前导零的数字,第5个和第6个是常规数字。如何将它们加在一起,并在它们之间用逗号连接,以便保持前导零点?
答案 0 :(得分:9)
根据您对使用自定义数字格式排名前导0的数字的评论,您需要将TEXT()
个函数合并到公式中以保留(即添加)您的领先0。
=CONCATENATE(A1,",",TEXT(B1,"0#####"),",",TEXT(C1,"0#####"),",",TEXT(D1,"0#####"),",",E1,",",F1)
确保包含与该字段中数字的最大长度一样多的#。
答案 1 :(得分:0)
=CONCATENATE(A1,",",B1,",",C1,",",D1,",",E1,",",F1)
确保零填充数字位于“文本”列中(转到格式化单元格,使其类型为Text
)
答案 2 :(得分:0)
请尝试:
=A1&",0"&B1&",0"&C1&",0"&D1&","&E1&","&F1