메인 컨텐츠로 가기

Excel에서 가장 가깝거나 가장 가까운 값 (숫자 또는 텍스트 문자열)을 찾는 방법은 무엇입니까?

열에 숫자 목록이 있고 이제 숫자 목록에서 주어진 값에 가장 가깝거나 가장 가까운 값을 찾아야한다고 가정합니다. 어떻게 처리합니까? 실제로 다음 단계에 따라 Excel에서 가장 가까운 값 또는 가장 가까운 값을 찾을 수 있습니다.

배열 수식으로 가장 가까운 또는 가장 가까운 숫자 찾기

예를 들어, A 열에 숫자 목록이 있고 이제 A 열에서 가장 가까운 값 또는 가장 가까운 값인 18을 찾을 수 있습니다. 다음과 같이 할 수 있습니다.

빈 셀을 선택하고 아래 수식을 입력하고 Ctrl + Shift + Enter 열쇠.

=INDEX(B3:B22,MATCH(MIN(ABS(B3:B22-E2)),ABS(B3:B22-E2),0))

참고 : 이 배열 공식에서 {=INDEX(B3:B22,MATCH(MIN(ABS(B3:B22-E2)),ABS(B3:B22-E2),0))},

  • B3 : B22 특정 값을 찾으려는 범위입니다.
  • E2 비교할 검색 값입니다.
노트 리본 수식이 너무 복잡해서 기억 나지 않습니까? 나중에 한 번만 클릭하여 재사용 할 수 있도록 수식을 자동 텍스트 항목으로 저장하십시오!
자세히보기 ...     test

Excel 용 Kutools를 사용하여 주어진 값의 편차 범위에서 가장 가까운 모든 숫자를 쉽게 선택하십시오.

때로는 범위의 주어진 값에 대한 모든 옷장 값을 찾아서 선택하고 싶을 수 있습니다. 실제로 편차 값을 정의한 다음 Excel 용 Kutools를 적용 할 수 있습니다. 특수 세포 선택 값을 제공하는 범위 내에서 가장 가까운 값을 모두 찾아서 선택하는 유틸리티입니다.

Excel 용 Kutools-300 개 이상의 Excel 용 편리한 도구가 포함되어 있습니다. 60 일 전체 기능 무료 평가판, 신용 카드 필요 없음! 이제 그것을 잡아

예를 들어,이 예에서는 편차 값을 2로 정의하고 주어진 값은 18입니다. 따라서 우리는 다음 사이의 값을 찾아 선택해야합니다. 16 (= 18-2) and 20 (= 18 + 2). 다음 단계를 확인하십시오.

1. 주어진 값에 가장 가까운 값을 검색 할 범위를 선택한 다음 쿠툴 > 선택 > 특정 셀 선택.

2. 열기 특정 셀 선택 대화 상자에서,
(1) 확인 세포 에서 옵션 선택 유형 섹션;
(2) 특정 유형 섹션에서 첫 번째 드롭 다운 목록을 클릭하고 크거나 같음 그것에서 입력 16 다음 상자에 입력 한 다음 작거나 같음 두 번째 드롭 다운 목록에서 20 다음 상자에. 왼쪽 스크린 샷보기 :

3. 클릭 Ok 버튼을 눌러이 유틸리티를 적용하십시오. 그런 다음 대화 상자가 나타나고 선택한 셀 수를 보여줍니다. 그리고 주어진 값의 편차 범위 내에서 가장 가까운 모든 값이 아래 스크린 샷과 같이 선택되는 것을 볼 수 있습니다.


편리한 도구로 가장 가깝거나 가장 가까운 텍스트 문자열 찾기

Excel 용 Kutools가 설치되어있는 경우 퍼지 찾기 기능을 적용하여 Excel에서 주어진 범위에서 가장 가까운 텍스트 문자열을 쉽게 찾을 수 있습니다. 다음과 같이하십시오 :

Excel 용 Kutools-300 개 이상의 Excel 용 편리한 도구가 포함되어 있습니다. 60 일 전체 기능 무료 평가판, 신용 카드 필요 없음! 이제 그것을 잡아

1. 딸깍 하는 소리 쿠툴 > Find > 퍼지 조회 통합 문서에서 퍼지 조회 창을 활성화하려면

2. 퍼지 조회 창에서 다음과 같이 구성하십시오.
(1) 확인 지정 옵션을 선택하고 가장 가까운 텍스트 문자열을 찾을 범위를 선택하십시오.
(2) 확인 지정된 텍스트로 찾기 선택권;
(3) 다음으로 이동 본문 상자에 가장 가까운 텍스트 문자열을 찾을 지정된 텍스트를 입력하십시오.
(4) 최대 다른 문자 수 상자에 숫자를 입력하십시오. 제 경우에는 1을 입력합니다.
(5) 안으로 셀 문자열 길이는 상자에 숫자를 입력하십시오. 제 경우에는 5을 입력합니다.

3. 클릭 Find 버튼을 클릭합니다.

이제 검색 결과를 확장하면 가장 가까운 모든 텍스트 문자열이 대량으로 나열되는 것을 볼 수 있습니다. 스크린 샷보기 :


데모 : 주어진 값의 편차 범위에서 가장 가까운 값을 모두 선택합니다.

Excel 용 Kutools: 300개 이상의 편리한 도구를 손쉽게 사용할 수 있습니다! 지금 바로 기능 제한 없이 30일 무료 평가판을 시작해 보세요. 지금 다운로드!

최고의 사무 생산성 도구

🤖 Kutools AI 보좌관: 다음을 기반으로 데이터 분석을 혁신합니다. 지능형 실행   |  코드 생성  |  사용자 정의 수식 만들기  |  데이터 분석 및 차트 생성  |  Kutools 기능 호출...
인기 기능: 중복 항목 찾기, 강조 표시 또는 식별   |  빈 행 삭제   |  데이터 손실 없이 열이나 셀 결합   |   수식없이 반올림 ...
슈퍼 조회: 다중 기준 VLookup    다중 값 VLookup  |   여러 시트에 걸친 VLookup   |   퍼지 조회 ....
고급 드롭다운 목록: 드롭다운 목록을 빠르게 생성   |  종속 드롭다운 목록   |  다중 선택 드롭 다운 목록 ....
열 관리자: 특정 개수의 열 추가  |  열 이동  |  Toggle 숨겨진 열의 가시성 상태  |  범위 및 열 비교 ...
특색 지어진 특징: 그리드 포커스   |  디자인보기   |   큰 수식 바    통합 문서 및 시트 관리자   |  리소스 라이브러리 (자동 텍스트)   |  날짜 선택기   |  워크 시트 결합   |  셀 암호화/해독    목록으로 이메일 보내기   |  슈퍼 필터   |   특수 필터 (굵게/기울임꼴/취소선 필터링...) ...
상위 15개 도구 세트12 본문 도구 (텍스트 추가, 문자 제거,...)   |   50+ 거래차트 유형 (Gantt 차트,...)   |   40+ 실용 방식 (생일을 기준으로 나이 계산,...)   |   19 삽입 도구 (QR 코드 삽입, 경로에서 그림 삽입,...)   |   12 매출 상승 도구 (숫자를 단어로, 환율,...)   |   7 병합 및 분할 도구 (고급 결합 행, 셀 분할,...)   |   ... 그리고 더

Excel용 Kutools로 Excel 기술을 강화하고 이전과는 전혀 다른 효율성을 경험해 보세요. Excel용 Kutools는 생산성을 높이고 시간을 절약하기 위해 300개 이상의 고급 기능을 제공합니다.  가장 필요한 기능을 얻으려면 여기를 클릭하십시오...

상품 설명


Office Tab은 Office에 탭 인터페이스를 제공하여 작업을 훨씬 쉽게 만듭니다.

  • Word, Excel, PowerPoint에서 탭 편집 및 읽기 사용, Publisher, Access, Visio 및 Project.
  • 새 창이 아닌 동일한 창의 새 탭에서 여러 문서를 열고 만듭니다.
  • 생산성을 50% 높이고 매일 수백 번의 마우스 클릭을 줄입니다!
Comments (42)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
How do we do this if our data is filtered?
This comment was minimized by the moderator on the site
copy the filtered data to a new sheet
This comment was minimized by the moderator on the site
Using the formula how would you return the value next to 17 if there was another column next to number like names. So if 17 is the closest in rang the name next to 17 (John) would be returned?


Example: 18 is nearest to 17 so the return value would be John


Numbers Names
38 Tammy
17 John
20 Amy
This comment was minimized by the moderator on the site
You can use the Approximate match of VLOOKUP function to solve this problem.
=VLOOKUP(E2,A1:B15,2,TRUE)
This comment was minimized by the moderator on the site
I used this formula =INDEX(B3:B22,MATCH(MIN(ABS(B3:B22-E2)),ABS(B3:B22-E2),0)) and it works great. However i have found that where the source number is exactly between two numbers in the range, the lower range number is selected to be the closest.

eg: Searching for the closest number to 9 in the range: 6, 8, 10, 12. It will chose 8 instead of 10. Rounding convention is to round up if exactly half way between. Is there a workaround? Thanks.
This comment was minimized by the moderator on the site
ITS NOT WORKING its #N/A somehow
This comment was minimized by the moderator on the site
Hi DAKOT,
=INDEX(A1:A20,MATCH(MIN(ABS(A1:A20-D1)),ABS(A1:A20-D1),0)) is an array formula, after entering it, please remember to press the Ctrl + Shift + Enter keys together.
This comment was minimized by the moderator on the site
Hi,
im using that formula in finding closest date, it is working.but i want to add condition: closest date that is less than 30 days of the current date (today).it is possible?
Anyone can help please?thank you
This comment was minimized by the moderator on the site
Hi farolito,
How about changing the value you will compare with to =TODAY() in Cell D1?
This comment was minimized by the moderator on the site
Hi, I can get it to work, amazing, BUT not when I input '1' as my 'match_type', instead of the '0' that you used. I want to return values less than or equal to, not just closest to +/-. If I enter 1 instead of 0, it doesn't work. Thoughts on why this might be?
This comment was minimized by the moderator on the site
Great formula -thank you-just a quick question. Anyone know how to highlight the cell that is closest in the match so in long lists it is easy to find??
This comment was minimized by the moderator on the site
If you have the row number from the formula above then you could set a conditional formatting rule on the search array to highlight a cell if it lies on that row.
This comment was minimized by the moderator on the site
It does not work for me! Excel says that there is an error :(
This comment was minimized by the moderator on the site
My bad This will look for all nearest date to today in column d =LARGE(D:D,COUNTIF(d:D,">="&TODAY())) http://WWW.excelireland.com
This comment was minimized by the moderator on the site
Hi, I tried the above formula. however, it is giving me a #N/A. 1. Copy pasted the range from A2 to A43. 2. Formula given was : =INDEX(A2:A43,MATCH(MIN(ABS(A2:A43-H1)),ABS(A2:A43-H1),0)) 3. Press control +Shift +enter Can anybody help me as to what wrong I am doing. :(
This comment was minimized by the moderator on the site
Replace the " , " separator for " ; "
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations