简体   繁体   中英

Replace specific strings with specific images in Google Sheets

Essentially I am trying to build a google sheet that will convert specific strings into specific images for a Magic the Gathering google sheet.

For example, if I have the text {3}{G} I'd like to replace the {3} with3法力 and the {G} with 格玛纳 .

I tried to use the substitute function, referencing cells where I had the images stored, but it didn't work. Any help anyone could provide would be much appreciated!

with some compromises, you can do:

=ARRAYFORMULA(IFERROR(VLOOKUP(""&REGEXEXTRACT(""&A2:A, 
 REPT("(.)", LEN(A2:A))), {F1:F&"", G1:G}, 2, 0)))

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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