LANG SELRCT

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

Sunday, July 10, 2016

split関数のfalseオプション

Google Apps Scriptではありませんが、スプレッドシートのsplitについて今日知ったことです。

区切り文字が2文字以上の場合、falseをつけないと1文字ごとに分割される。

=split("文字列", "区切り文字", false)


公式のヘルプページに書いてありました。
  • デフォルトでは、区切り文字の各文字が個々に検証されます。たとえば、区切り文字に "the" を指定した場合、テキストは "t""h""e" の文字で分割されます。各文字での分割を FALSE に指定すると、この動作をオフにできます。

参考サイト
https://support.google.com/docs/answer/3094136?hl=ja


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...