【发布时间】:2017-08-28 11:45:11
【问题描述】:
我有数千行,格式如下:
Image ID Image Title Image Caption
4867 Bedroom Bedroom
4866|4865 Office|Kitchen Office|Kitchen
我需要从这些列中获取相关的字符串,并以这种格式将它们组合成第四列:
Image ID Image Title Image Caption Attachments
4867 Bedroom Bedroom {"image_attachments":[{"id":"4867","fields":{"title":"Bedroom","caption":"Bedroom"}}]}
4866|4865 Office|Kitchen Office|Kitchen {"image_attachments":[{"id":"4866","fields":{"title":"Office","caption":"Office"}}]},{"image_attachments":[{"id":"4865","fields":{"title":"Kitchen","caption":"Kitchen"}}]}
有人可以建议完成此任务的最佳方法吗?非常感谢。
【问题讨论】:
-
使用 LEFT 和 RIGHT 函数结合 INSTR 函数来分割字符串。
标签: excel excel-formula