Excel에서 사용자 지정 수식으로 데이터 유효성 검사 하기

입력 셀을 선택한 뒤 데이터 > 데이터 유효성 검사에서 제한 대상을 사용자 지정으로 하고, 값을 허용할 때 TRUE가 되는 수식을 입력하세요. 수식은 선택 범위의 첫 셀 기준으로 쓰며, 범위가 B2부터면 =AND(B2>=1,B2<=10)입니다. 사용자 지정은 드롭다운을 그리지 않으므로 목록이 필요하면 목록을 쓰세요.

목차

빠른 답변

입력 셀을 선택한 뒤 데이터 > 데이터 유효성 검사에서 제한 대상을 사용자 지정으로 하고, 값을 허용할 때 TRUE가 되는 수식을 입력하세요. 수식은 선택 범위의 첫 셀 기준으로 쓰며, 범위가 B2부터면 =AND(B2>=1,B2<=10)입니다. 사용자 지정은 드롭다운을 그리지 않으므로 목록이 필요하면 목록을 쓰세요.

=AND(B2>=1,B2<=10)

확인 사항

2026년 11월 12일 테스트에서 AND는 5가 TRUE, 0과 11은 FALSE였습니다. ISNUMBER(5)는 TRUE, 텍스트 n/a는 FALSE입니다. COUNTIF는 East가 1, South가 0입니다. 중복 방지는 =COUNTIF($B$2:$B$20,B2)=1입니다. 먼저 도우미 열에서 같은 수식을 시험하세요.

주의점 및 호환성

수식은 =로 시작해야 하고 결과는 TRUE 또는 FALSE여야 합니다. 빈 칸을 허용할 때만 빈 값 무시를 켜세요. 사용자 지정에서 화살표가 없는 것은 정상입니다. 붙여 넣은 값도 검사됩니다. 셀마다 규칙은 하나이므로 드롭다운과 추가 조건이 모두 필요하면 같은 수식에 합치거나 도우미 열에서 따로 확인하세요.

영어 상세 예제, 수식 및 작성자 메모

Tested in: The TRUE/FALSE and COUNTIF 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 in Excel this session.

A plain list is covered in How to Add a Drop-Down List in Excel. This page is about the Custom option.

Write the formula for the first input cell

If you selected B2:B20, the formula is evaluated as if it were entered in B2, then filled down. Relative references should point at B2, not at B1 or at a locked $B$2 unless every row must test the same cell.

A number between 1 and 10

=AND(B2>=1,B2<=10)

In the test workbook on 12 November 2026, =AND(5>=1,5<=10) was TRUE, and the same test for 0 and for 11 was FALSE.

A real number, not text

=ISNUMBER(B2)

=ISNUMBER(5) was TRUE. =ISNUMBER("n/a") was FALSE. Numbers stored as text fail this test and should be converted first; see convert text to numbers.

A value that already appears in a list (without using the List type):

=COUNTIF(Lists!A2:A20,B2)=1

COUNTIF of "East" against {East;West;North} returned 1, and "South" returned 0. A 0 is rejected. This is useful when you do not want a drop-down but still want the cell limited to known items. For an actual drop-down pointing at another sheet, use a List rule as in list from another sheet.

No duplicates in the input column

=COUNTIF($B$2:$B$20,B2)=1

The range is locked; the cell being tested is not. The first time a value appears, the count is 1 and the entry is allowed. A second paste of the same value becomes 2 and is rejected.

In Google Sheets the custom formula goes in the Custom formula is criterion of Data validation, with the same references.

Test it on the sheet before you open the dialog

Put the formula in an empty column on row 2, fill down, and confirm you see TRUE where an entry should be allowed and FALSE where it should be blocked. If the helper column is already wrong, the validation rule will be wrong too.

The formula must start with =. A result that is not TRUE or FALSE — a #VALUE!, a number, or a blank — is treated as a failed check, which feels like a rule that rejects everything.

Turn Ignore blank off if an empty cell should be rejected. Leave it on if the input is optional. Pasted values are also checked, which is the usual way a rule “suddenly” fires after a copy from another sheet.

If the arrow is missing, you are probably on a Custom rule, not a List rule. That is expected. If a List rule is the one that is misbehaving, use drop-down list not working instead of changing it to Custom.

Oscar

스프레드시트 수식과 오류 해결을 소개합니다. 검증 환경과 미확인 사항은 각 글을 참고하세요.

Tested in Google Sheets (via Sheets API) on 12 November 2026: AND(5>=1,5<=10) is TRUE, AND for 0 and for 11 are FALSE; ISNUMBER(5) is TRUE and ISNUMBER of the text n/a is FALSE; COUNTIF of East against {East;West;North} is 1 and South is 0. Excel 365 menu names are the current desktop labels; I did not click through Data Validation in Excel this session..

다음 글: 데이터 정리 및 입력 Excel 드롭다운이 나타나지 않거나 비어 있거나 항목이 빠짐