LANG SELRCT

Apps Script Reference  (Create: Create new Spreadsheet | Create new Apps Script

Sunday, June 3, 2018

スプレッドシートのセルに画像を挿入する


Googleドライブ内の画像をシートのセル内に表示したくて調べて実現した方法

Googleドライブ内の画像をスプレッドシートのセルに表示したい


=image("https://drive.google.com/thumbnail?sz=w1000&id=IMAGE_FILE_ID",1)

読み込むときは画像ファイルの公開設定を「リンクを知っている全員」にしておかないと読み込まれないらしい



Webに公開されている.pngや.jpegなどの画像ファイルをセルに表示したい


=image("画像URL",1)



画像のサイズ設定モード


=image("URL",1) セルのサイズに合わせる
=image("URL",2) セルのサイズに画像を伸ばす
=image("URL",3) オリジナルのサイズ
=image("URL",4, 120, 60) 高さと幅を指定する


参考 

画像や動画を挿入、削除する > 数式を使用してスプレッドシートに画像を追加する
https://support.google.com/docs/answer/97447?co=GENIE.Platform%3DDesktop&hl=ja

IMAGE
https://support.google.com/docs/answer/3093333

Google Docs Help Forum
https://productforums.google.com/forum/#!topic/docs/gC6zAVKGgWc

Latest post

Extracting data from Google Sheets with regular expressions

Introduction Regular expressions are a powerful tool that can be used to extract data from text.  In Google Sheets, regular expressions ca...