社ä¼äººã«ãªã£ãã®ã§ãããã«å®¶è¨ç°¿ã¿ãããªã®ãã¤ãããã¨ãªã£ãï¼å¸³ç°¿ã«ã¤ããä¸ã§ã®è¦æ±ã¯ä»¥ä¸ã®éãï¼
- PCã§ã·ã¥ãã¨ã¤ãããã
- æ¯åºç®¡çã®ã¿ãè¡ã
- åå ¥ã¯åºæ¬ä¸å®ãªã®ã§ï¼ä¸å®éé¡ä»¥ä¸ä½¿ããªãç®å®ã«ããã
- ä¸éãå¤å°å³æ ¼ã«å®ãã¦éç¨ããï¼æ®ãã¯è²¯èã«åããããã
- æãã¨ã«æ¯åºãè¨é²ãã
- ã«ã¼ããSuicaï¼ç¾éãªã©ã®æ¯ææ¹æ³ãã¨ã«ç·è¨ãåæã«æ±ã¾ã
ããã°ã©ã ãæ¸ãã®ã¯çãæªãã¨æã£ãã®ã§ï¼Googleã¹ãã¬ããã·ã¼ãã§ç®¡çãããã¨ã«ããï¼
ãããªæãï¼ã¾ã ä½ãå ¥ãã¦ããªããã©ï¼æ¯æå®é¡ã§æ¯æãæ ãä½ã£ãï¼éä¿¡æããµã¼ãã®ç¶æè²»ç¨ãªã©ãæ¸ãï¼
ã§ï¼ãããã®æ¯æãã¿ã¤ããã¨ã«ç·é¡ãæ±ããï¼
Googleã¹ãã¬ããã·ã¼ãã«ã¯QUERY
é¢æ°ã¨ããã®ããã£ã¦ï¼ããã使ããã¨ã§ç·è¨ãæ±ãããã¨ãã§ããï¼ä»¥ä¸ã¯ä»å使ã£ãQUERY
é¢æ°ï¼
=QUERY({OFFSET(F:G,3,0);OFFSET(J:K,3,0)}, "select Col2, sum(Col1) where Col2 != '' group by Col2 label sum(Col1) ''", -1)
第ä¸å¼æ°ã«OFFSET
é¢æ°ã§
- Få(ä¾¡æ ¼)ã¨Gå(æ¯æãã¿ã¤ã)ã®4è¡ç®ä»¥é
- Jå(ä¾¡æ ¼)ã¨Kå(æ¯æãã¿ã¤ã)ã®4è¡ç®ä»¥é
ããã¼ã¿ã½ã¼ã¹ã¨ãã¦æå®ããï¼çæ¹ã ããªã{}
ã§å²ãå¿
è¦ã¯ãªãï¼è¤æ°å
¥ããå ´åã¯{}
ã§å²ã£ã¦;
ã§åºåãï¼
第äºå¼æ°ã§ã¯ã¨ãªãæå®ããï¼select Col2
ã¯ã¾ãCol2(Gå,Kå)ãåæããï¼ã«ã³ãã§åºåã£ã¦ï¼sum(Col1) where Col2 != '' group by Col2
ã§åæ¯æãã¿ã¤ããã¨ã«å¤ãç·è¨ããï¼èªåçã«sumã¨ããã©ãã«ãã¤ãã®ã§ï¼label sum(Col1) ''
ã¨ããã¨ã©ãã«ãæ¶ããã¨ãã§ããï¼
第ä¸ã¯ãã¼ã¿ã½ã¼ã¹ã®ãã¡ï¼ä½è¡ç®ã¾ã§ãã©ãã«ã¨ãã¦æ±ãã®ããæå®ãããã¤(å¤å)ï¼ããã©ã«ãã¯0ã§ï¼-1ãå ¥ããã¨éã«äºæ¸¬ãã¦å ¥ãã¦ãããï¼ä»åã¯è©¦ãã«-1ã«ãã¦ããã©ï¼optionalãªã®ã§å ¥ããªãã¦ãè¯ãï¼
ãã®é¢æ°ãM4
ã®ã»ã«ã«çªã£è¾¼ãã§ããã¨åæã«ä»¥ä¸M4:N7
ã®ããã«å±éãããï¼
QUERY
é¢æ°ã¯ä¾¿å©ãªã®ã§ï¼è¦ãã¦ããã¨åï¼
ç¾ç¶ã§ãå²ã¨ä¾¿å©ãªã®ã ãã©ï¼æ¥ä»/åç®/éé¡ã®å ¥åãè¥å¹²ä¸ä¾¿ãªã®ã¨ï¼æ¯æãã³ãã¬ã¼ãã¨å®ææ¯æã®é¨åãã³ãã¼ããªãã¨ãããªãã®ã¯é¢åãªã®ã§ï¼Google Apps Scriptãªã©ã使ã£ã¦Googleãã©ã¼ã ããå ¥åã§ããããã«ï¼æåã«éãã¨åæã«ãã³ãã¬ã¼ãããã³ãã¼ããã¦ãããã«ãããï¼