Excel 用另一張工作表做資料驗證列表

把專案放在例如名為 Lists 的工作表,然後在“資料 > 資料驗證”中將允許條件設為序列,來源填寫 =Lists!A2:A20,或指向這些單元格的命名區域。不要把表頭算進源區域。若對話方塊拒絕工作表名,先定義命名區域,再使用 =RegionList。

本文目錄

快速解答

把專案放在例如名為 Lists 的工作表,然後在“資料 > 資料驗證”中將允許條件設為序列,來源填寫 =Lists!A2:A20,或指向這些單元格的命名區域。不要把表頭算進源區域。若對話方塊拒絕工作表名,先定義命名區域,再使用 =RegionList。

=Lists!A2:A20

檢查重點

工作表名若含空格或標點,要用單引號,例如 ='Item lists'!A2:A20。Google Sheets 的下拉範圍同樣接受其他標籤頁。定義名稱 RegionList 指向 =Lists!$A$2:$A$20 後,源中填寫 =RegionList,不要加引號,也不要在名稱前加工作表名。

邊界與相容性

可用 =COUNTIF(Lists!A2:A20,B2) 或 =COUNTIF(RegionList,B2) 檢查成員。2026 年 11 月 12 日測試中,East 為 1,South 為 0。若看起來相同卻得到 0,多半是空格或拼寫,而不是跨表引用失敗。依賴其他單元格而變化的列表是另一步,應先讓固定的跨表列表工作。

完整英文範例、公式與作者備註

Tested in: The COUNTIF membership checks below were evaluated in Google Sheets on 12 November 2026. Excel 365 menu names are the current desktop labels; I did not click through Data Validation or Name Manager in Excel this session.

Creating a list on the same sheet is in How to Add a Drop-Down List in Excel. If the arrow is missing or the list is blank, see drop-down list not working. This page is only about pointing the source at another sheet.

Point the Source box at the other sheet

On the Lists sheet, keep a single header in row 1 and the items in A2 down. On the sheet where people type, select the input cells and open Data > Data Validation:

  1. Set Allow to List.
  2. In Source, enter:
=Lists!A2:A20
  1. Leave In-cell dropdown checked, and click OK.

In Google Sheets the same reference works in the Criteria (dropdown from a range) box, including a range on another tab. If the sheet name has a space or punctuation, wrap it in single quotes: ='Item lists'!A2:A20.

Do not include the header. =Lists!A1:A20 puts “Region” (or a blank, if A1 is empty) at the top of the drop-down.

Use a named range when the dialog refuses a sheet reference

Some older Excel builds will not accept =Lists!A2:A20 in the Source box. A named range works around that and is easier to reuse on several input sheets:

  1. Select Lists!A2:A20 (items only).
  2. Open Formulas > Define Name (or Name Manager > New).
  3. Name it RegionList. The refers-to box should read =Lists!$A$2:$A$20.
  4. On the input sheet, set the validation source to =RegionList — no quotes, and no sheet name in front of the name.

If you later insert rows inside that range, the name expands with them. If you type new items below A20, either widen the name or convert the list to a table and point the name at the table column (=Lists[[#All],[Region]] is usually the wrong form here because it can pull the header; a structured reference that starts at the data column, or a range one row below the header, is safer).

Check that the list actually contains the value

After the drop-down is in place, confirm membership from the input sheet:

=COUNTIF(Lists!A2:A20,B2)

or, with the named range:

=COUNTIF(RegionList,B2)

A result of 1 means B2 is in the list; 0 means it is not. In the test workbook, =COUNTIF({"East";"West";"North"},"East") returned 1 and the same check for "South" returned 0. If you see 0 for a value that “looks” like a list item, the usual causes are a trailing space, a different spelling, or pointing COUNTIF at the wrong column — not a failure of the cross-sheet reference itself.

What this is not

A drop-down whose items change when someone picks a category in another cell is a dependent drop-down. That setup still often stores each category list on another sheet, but the Source box uses INDIRECT (or a FILTER) to pick which list. Get the simple =Lists!A2:A20 form working first, then add the dependent layer.

A list in another workbook is a different problem again. Excel can be picky about validation sources that point at a closed file; keep the list in the same workbook when you can.

Once Source accepts the other sheet and COUNTIF returns 1 for a known item, the cross-sheet list is doing its job. Any remaining “will not appear” symptoms belong on the troubleshooting page.

Oscar

專注電子表格公式與排錯;具體測試環境和待驗證事項見各篇文章。

Tested in Google Sheets (via Sheets API) on 12 November 2026: COUNTIF of East against {East;West;North} returned 1, and South returned 0, as a membership check you can point at a list on another sheet. Excel 365 menu names are the current desktop labels; I did not click through Data Validation or Name Manager in Excel this session..

本主題下一篇:資料清理與錄入 Excel 用自定義公式做資料驗證