可能对不少excel大拿来说excel批量插入图片是小Case,不值一提,但我还是分享下,使和我一样excel不是很熟但又用的到的童鞋了解这个公式,提高工作效率。
问题描述
根据商品款号批量将图片导入excel对应位置,如下表

解决方案
方案1
根据款号找到对应图片,截图--复制--粘贴--调整大小。
Are you kiding ?No.
需插入图片少的情况下,完全可以这样操作。
方案2
利用excel函数批量插入并统一设定大小,公式如下:
="<table><img src=""D:\照片\"&A2&".jpg""width=""176""height=""220"">"
步骤1:
保证图片的名称与表格中需要图片的单元格内容一致;

步骤2:
将公式复制到图片对用的单元格中,修改公式中的单元格【A2】为本次excel数据中图片依据单元格【C4】,将公式中的【D:\照片】修改为图片实际所存文件夹【Y:】,调整图片大小【width】和【height】为合适的大小;

步骤3:
将鼠标放到单元格右下角,使鼠标变成【+】字,同时双击鼠标,使B列单元格填充公式;


步骤4
把B列填充的公式复制,回到桌面新建TXT文件并打开,同时将复制的公式粘贴到新建的TXT文件中;


步骤5
TXT文件全选-复制,回到excel中,选中B4右键-选择性粘贴-Ubicode文本,所需图片按相同大小插入到了A列中;



步骤6
如果粘贴后发现图片大小不合适,不要点其他单元格,在全部图片选中的状态下调整图片至合适大小;

综述
到这就成功把excel中型号对应的图片批量插入到对应的位置,不得不感叹excel公式的强大。
网友评论