Google spreadsheet: Difference between revisions

Jump to navigation Jump to search
Line 58: Line 58:


=== 步驟2. 使用函式,分析使用者的作答結果 ===
=== 步驟2. 使用函式,分析使用者的作答結果 ===
E2 儲存格,輸入的使用函式說明
D2 儲存格,輸入的使用函式說明
<pre>
<pre>
=IF( REGEXMATCH(答案欄位位置, "選項名稱") = TRUE, 1, 0)
  =IF( REGEXMATCH(B2, "香草") = TRUE, 1, 0)
  =IF( REGEXMATCH(B2, "香草") = TRUE, 1, 0)


  或改成使用香草所在的儲存格的絕對參照位址 $E$2 方便之後的維護
  或改成使用「香草」選項名稱,所在的儲存格的絕對參照位址 $D$1 方便之後的維護
  =IF( REGEXMATCH(B2, $E$2) = TRUE, 1, 0)
  =IF( REGEXMATCH(B2, $D$1) = TRUE, 1, 0)
</pre>
</pre>


Line 76: Line 78:
** 當結果是 TRUE ,則會回傳 1,如果不是 TRUE 則會回傳 0。
** 當結果是 TRUE ,則會回傳 1,如果不是 TRUE 則會回傳 0。


E2, F2, G2 儲存格,輸入的使用函式
D2, E2, F2 儲存格,輸入的使用函式
<table border="1" style="">
<table border="1" style="">
<tr style="background-color: #555555; color: #ffffff;">
<tr style="background-color: #555555; color: #ffffff;">
  <th></th>
   <th>A</th>
   <th>A</th>
   <th>B</th>  
   <th>B</th>  
Line 85: Line 88:
   <th>E</th>
   <th>E</th>
   <th>F</th>
   <th>F</th>
  <th>G</th>
</tr>
</tr>
<tr>
<tr>

Navigation menu