简体   繁体   English

如何将 Excel 中的文本提取到文本编辑中,在 Excel 中查找文本并替换为文本编辑? 自动化

[英]How do I extract Text from Excel into Text Edit, find text in Excel and replace into Text Edit? Automation

I have a Text file on my Desktop AltText.txt, that contains filenames extracted from InDesign.我的桌面 AltText.txt 上有一个文本文件,其中包含从 InDesign 中提取的文件名。

I have an Excel file that contains the Alt text descriptions, I typically manuel copy paste from Excel to the Text file.我有一个包含 Alt 文本描述的 Excel 文件,我通常手动将 Excel 复制粘贴到文本文件。

I trying to figure out if there is more efficient away to get Find filenames in the Excel and extract them to the Text file?我试图弄清楚是否有更有效的方法来获取 Excel 中的文件名并将它们提取到文本文件中?

Example of Text File:文本文件示例:

Forward Collision Alert-4C.ai
Graphic Number : 1

Lane Keep Assist-4C.ai
Graphic Number : 2

Lane Change Alert-4C.ai
Graphic Number : 3

Example of Excel File: Excel 文件示例:

Column A                          Column B   
Forward Collision Alert-4C.ai     Icon of Forward Collision Alert

Thank you, Sergio谢谢你,塞尔吉奥

Paste the text in a new excel file.将文本粘贴到新的 excel 文件中。 > put this formula in sheet2,A1. > 将此公式放入 sheet2,A1 中。

=INDIRECT("Sheet1!A"&1+(ROW()-1)*3,TRUE)

and drag downwards并向下拖动

Hope it helps.希望能帮助到你。 (: (:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM