問題:
解決:
=FILTER(sheet1!A:M,REGEXMATCH(sheet1!E:E, "Runtime|python2.|python3.[0-7]$"))
=FILTER(sheet1!A:M,条件1,条件2)
# counta関数では、エラー時(シートが存在しない等)にエラー文字もカウントして、1を返してしまう =COUNTA(INDIRECT("sheet." & $A$2 &"!A2:A")) # countif関数では、対象が数値なら">0"、文字なら"*"を指定する。数値に"*"を指定すると、0を返す。 =COUNTIF(INDIRECT("sheet." & $A$2 &"!A2:A"),"*")
function get_sheet(sheet_name){ var active_sheet = SpreadsheetApp.getActive(); var sheet = SpreadsheetApp.getActive().getSheetByName(sheet_name) if(!sheet){ Logger.log("[ERROR] [%s] %s is not found", arguments.callee.name, sheet_name) return } active_sheet.setActiveSheet(sheet, true); return active_sheet }
=iferror(sum(sheet!A:A),0)
echo "2019-01-02T03:04:05+00:00 2019-01-02T03:04:05Z 2019-01-02T03:04:05.123Z" | perl -ane 's/(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2}:\d{2})(\.*\d*)(Z|\+\d{2}:\d{2})/\1 \2/g;print;' 2019-01-02 03:04:05 2019-01-02 03:04:05 2019-01-02 03:04:05
select, where, order by, group by等でデータを選択できる。
=QUERY('sheet1'!A:H,"where C < date '2020-05-01'",1)
=QUERY('sheet1'!A:H,"where C < date '"&text(today(), "YYYY-MM-DD")&"'",1)
=QUERY('sheet1'!A:C,"select A,B,C where C='"&C2&"'",1)
=SUBTOTAL(9, A2:A101)
=REGEXMATCH($A1,"foo|bar")
=REGEXMATCH(sheet!A:A,"foo|bar")
=OR($A2="foo", $A2="bar")
=sumif(sheet1!H2:H,"<>yes",sheet1!E:E)
スマホで情報を読み取らせたい時に便利
「YYYY-MM-DDThh:mi:ssZ」のような形式が文字列として扱われてしまう。
=DATEVALUE(MID($A2,1,10)) + TIMEVALUE(MID($A2,12,8))
PK | Name | Category | Price |
=B2&C2 | A | book | 350 |
=B3&C3 | B | book | 500 |
=B4&C4 | A | music | 100 |
=B5&C5 | B | music | 150 |
Name | Category | Price |
A | book | =vlookup(A2&B2,'item'!$A$1:$D$5,4,false) |
A | music | =vlookup(A3&B3,'item'!$A$1:$D$5,4,false) |
VLOOKUP(検索キー, 範囲, 番号, [並べ替え済み])
http://spreadsheets.google.com/pub?key=[KEY ID]&single=true&gid=0&output=csv