메인 컨텐츠로 가기

여러 시트 또는 통합 문서에서 값을 빠르게 검색하는 방법은 무엇입니까?

Excel의 여러 시트 또는 통합 문서에서 특정 값을 검색하기 위해 이미지를 만든 적이 있습니까? 이 자습서에서는 여러 시트에서 검색하거나 여러 통합 문서에서 검색하는 문제를 해결하는 몇 가지 다른 방법을 소개합니다.

찾기 및 바꾸기 기능을 사용하여 통합 문서의 여러 시트에서 값 검색

VBA를 사용하여 폴더의 모든 통합 문서에서 값 검색

Excel 용 Kutools를 사용하여 여러 개의 열린 통합 문서에서 값을 빠르게 검색 좋은 생각 3


엑셀로 찾기 및 바꾸기 기능을 사용하면 여러 시트에서 특정 값을 찾을 수 있습니다.

1. 값을 찾으려는 여러 시트 탭을 선택합니다. Ctrl 키 키를 누르고 워크 시트를 클릭하면 시트 탭 모음 하나씩. 스크린 샷보기 :

여러 시트의 문서 검색 값 1

2. 그런 다음 Ctrl + F 를 사용하려면 찾기 및 바꾸기 창에서 검색 할 값을 입력하십시오. 무엇을 찾기 아래에 텍스트 상자 Find 탭을 클릭 한 다음 모두 찾기 버튼을 눌러 모든 결과를 나열합니다. 스크린 샷보기 :

여러 시트의 문서 검색 값 2


시트 및 통합 문서에서 값 찾기 및 바꾸기

Excel 용 Kutools의 고급 찾기 및 바꾸기 함수를 사용하면 여러 시트와 열린 통합 문서에서 값을 찾고 바꿀 수 있습니다.  무료 다운로드
교체 찾기
 
Excel 용 Kutools : 300 개 이상의 편리한 Excel 추가 기능으로 30 일 동안 제한없이 무료로 사용해 볼 수 있습니다.

폴더에서 닫힌 모든 통합 문서의 값을 검색하려면 VBA를 적용하여 문제를 해결할 수 있습니다.

1. 새 통합 문서를 활성화하고 셀을 선택한 다음 Alt + F11 여는 열쇠 기본 애플리케이션 용 Microsoft Visual 창.

2. 클릭 끼워 넣다 > 모듈 VBA 아래에 새 모듈 창에 붙여 넣습니다.

VBA : 폴더의 모든 통합 문서에서 값을 검색합니다.

Sub SearchFolders()
'UpdatebyKutoolsforExcel20200913
    Dim xFso As Object
    Dim xFld As Object
    Dim xStrSearch As String
    Dim xStrPath As String
    Dim xStrFile As String
    Dim xOut As Worksheet
    Dim xWb As Workbook
    Dim xWk As Worksheet
    Dim xRow As Long
    Dim xFound As Range
    Dim xStrAddress As String
    Dim xFileDialog As FileDialog
    Dim xUpdate As Boolean
    Dim xCount As Long
    Dim xAWB As Workbook
    Dim xAWBStrPath As String
    Dim xBol As Boolean
    Set xAWB = ActiveWorkbook
    xAWBStrPath = xAWB.Path & "\" & xAWB.Name
    On Error GoTo ErrHandler
    Set xFileDialog = Application.FileDialog(msoFileDialogFolderPicker)
    xFileDialog.AllowMultiSelect = False
    xFileDialog.Title = "Select a forlder"
    If xFileDialog.Show = -1 Then
        xStrPath = xFileDialog.SelectedItems(1)
    End If
    If xStrPath = "" Then Exit Sub
    xStrSearch = "KTE"
    xUpdate = Application.ScreenUpdating
    Application.ScreenUpdating = False
    Set xOut = Worksheets.Add
    xRow = 1
    With xOut
        .Cells(xRow, 1) = "Workbook"
        .Cells(xRow, 2) = "Worksheet"
        .Cells(xRow, 3) = "Cell"
        .Cells(xRow, 4) = "Text in Cell"
        Set xFso = CreateObject("Scripting.FileSystemObject")
        Set xFld = xFso.GetFolder(xStrPath)
        xStrFile = Dir(xStrPath & "\*.xls*")
        Do While xStrFile <> ""
            xBol = False
            If (xStrPath & "\" & xStrFile) = xAWBStrPath Then
                xBol = True
                Set xWb = xAWB
            Else
                Set xWb = Workbooks.Open(Filename:=xStrPath & "\" & xStrFile, UpdateLinks:=0, ReadOnly:=True, AddToMRU:=False)
            End If
            For Each xWk In xWb.Worksheets
                If xBol And (xWk.Name = .Name) Then
                Else
                Set xFound = xWk.UsedRange.Find(xStrSearch)
                If Not xFound Is Nothing Then
                    xStrAddress = xFound.Address
                End If
                Do
                    If xFound Is Nothing Then
                        Exit Do
                    Else
                        xCount = xCount + 1
                        xRow = xRow + 1
                        .Cells(xRow, 1) = xWb.Name
                        .Cells(xRow, 2) = xWk.Name
                        .Cells(xRow, 3) = xFound.Address
                        .Cells(xRow, 4) = xFound.Value
                    End If
                    Set xFound = xWk.Cells.FindNext(After:=xFound)
                Loop While xStrAddress <> xFound.Address
                End If
            Next
            If Not xBol Then
            xWb.Close (False)
            End If
            xStrFile = Dir
        Loop
        .Columns("A:D").EntireColumn.AutoFit
    End With
    MsgBox xCount & " cells have been found", , "Kutools for Excel"
ExitHandler:
    Set xOut = Nothing
    Set xWk = Nothing
    Set xWb = Nothing
    Set xFld = Nothing
    Set xFso = Nothing
    Application.ScreenUpdating = xUpdate
    Exit Sub
ErrHandler:
    MsgBox Err.Description, vbExclamation
    Resume ExitHandler
End Sub

3. 그런 다음 F5 열쇠 또는 달리기 버튼을 눌러이 VBA를 실행하고 폴더 선택 값을 검색 할 폴더를 선택하라는 대화 상자가 나타납니다. 스크린 샷보기 :

여러 시트의 문서 검색 값 3

4. 그런 다음 OK 그리고 발견 된 셀의 수를 알려주는 또 다른 대화 상자가 나타납니다. 스크린 샷보기 :

여러 시트의 문서 검색 값 4

5. 클릭 OK가까운 그리고 발견 된 모든 셀은 해당 정보와 함께 현재 워크 시트에 나열됩니다.

여러 시트의 문서 검색 값 5

팁 : 위의 VBA에서 값을 검색합니다. "KTE", 변경할 수 있습니다. "KTE" 이것부터 xStrSearch = "KTE" 필요에 따라 다른 값으로.


열려있는 여러 통합 문서에서 값을 검색하려는 경우 다음을 사용할 수 있습니다. Excel 용 Kutools 's 고급 찾기 및 바꾸기 유용.

Excel 용 Kutools, 이상과 300 편리한 기능으로 작업이 더 쉬워집니다. 

무료 설치 Excel 용 Kutools는 다음과 같이하십시오.

1. 열린 통합 문서 중 하나에서 쿠툴 > 카테고리를 클릭 한 다음 찾기 및 바꾸기 단추 문서 찾기 버튼 가기 위해 찾기 및 바꾸기 창유리. 스크린 샷보기 :

여러 시트의 문서 검색 값 6

2. 그런 다음 Find 탭을 클릭하고 검색 할 값을 무엇을 찾기 텍스트 상자를 선택한 다음 모든 통합 문서 인사말 이내 드롭 다운 목록을 클릭하고 모두 찾기 발견 된 모든 셀을 나열합니다. 스크린 샷보기 :
doc kutools 찾기 바꾸기 2

팁 :

Excel 용 Kutools의 고급 찾기 및 바꾸기 유틸리티를 사용하면 여러 통합 문서, 모든 통합 문서, 활성 통합 문서, 활성 시트 또는 선택에서 선택한 시트의 값을 검색하고 바꿀 수 있습니다.
doc kutools 찾기 바꾸기 3


관련 기사 :

최고의 사무 생산성 도구

🤖 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 (18)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
program stops here:

Set xWb = Workbooks.Open(Filename:=xStrPath & "\" & xStrFile, UpdateLinks:=0, ReadOnly:=True, AddToMRU:=False)
This comment was minimized by the moderator on the site
Hi, Mike, I have update the VBA in the article, please try again. If there is any problem, please let me know, thank you.
This comment was minimized by the moderator on the site
HI in my case worksheet with more than 1 Lakhs record, scripts failed.
This comment was minimized by the moderator on the site
Hi, Dhireesh, VBA code has its own limitation. You could try Kutools for Excel's Fiind and Replace, but it may run slowly, please be patience, and had better save the workbooks before.
This comment was minimized by the moderator on the site
How do i create hyperlink under column C for all cell values in the same code?
This comment was minimized by the moderator on the site
como generar códigos qr
This comment was minimized by the moderator on the site
Awesome this works perfect,
Could you help me, I would like to create an hyperlink to each cell where the value was found.

Thanks in advance
This comment was minimized by the moderator on the site
me too I would like! :)
This comment was minimized by the moderator on the site
Perfect for what I need except for the fact that it creates a new sheet every search. How would I modify the code to use a single sheet for each search instead of creating a new one? Thanks, James
This comment was minimized by the moderator on the site
Your code works great, I look for a code that finds two texts in excel files, do you know how is it possible?
This comment was minimized by the moderator on the site
Sorry, I have no idea on this problem, you can go to our forum https://www.extendoffice.com/forum.html to carry on the problem, maybe someone know the answer.
This comment was minimized by the moderator on the site
How can I add another column and bring the value that is always 3 columns to the right on the value found?
This comment was minimized by the moderator on the site
Did you ever figure this out? I need that as well.
This comment was minimized by the moderator on the site
Sorry I cannot help you, you can go to out forum https://www.extendoffice.com/forum.html to carry on the question, maybe someone can help you.
This comment was minimized by the moderator on the site
Thanks. It helped me a lot =)
This comment was minimized by the moderator on the site
This is what i want it to return "Site Instruction" which is allocated to all Text in Cell
Workbook Worksheet Cell Text in Cell Site Instruction
Shift report Emicc 01-10-17.xlsx Sheet1 $D$20 CMS install 1773
Shift report Emicc 01-10-17.xlsx Sheet1 $D$21 CMS install 1763
Shift report Emicc 01-10-17.xlsx Sheet1 $D$24 CMS install 1551
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