메인 컨텐츠로 가기

Excel에서 셀 값을 기반으로 행을 숨기는 방법은 무엇입니까?

데이터 범위가 있고 열 값을 기준으로 행을 숨기려는 경우 (예 : 열의 셀 값이 3000보다 작은 경우) 아래 스크린 샷과 같이 셀의 행을 숨 깁니다.


Excel에서 필터 기능을 사용하여 셀 값을 기준으로 행을 필터링하고 숨길 수 있습니다.

1. 필터링 할 데이터를 선택하고 Data > 필터. 스크린 샷보기 :

문서 값 2을 기준으로 행 숨기기

2. 그런 다음 아래쪽 화살표를 클릭하여 필터 드롭 다운 목록을 표시하고 숫자 필터 (또는 텍스트 필터) > 보다 큰 (하위 메뉴에서 필요한 다른 기준을 선택할 수 있습니다). 스크린 샷보기 :

문서 값 3을 기준으로 행 숨기기

3. 팝업 대화 상자에서 다음보다 큼 옆의 텍스트 상자에 기준을 입력합니다. 스크린 샷보기 :

문서 값 4을 기준으로 행 숨기기

4. 클릭 OK. 이제 3000보다 큰 데이터 만 표시되고 데이터가 3000보다 작은 행은 숨겨집니다.

문서 값 5을 기준으로 행 숨기기


또한 VBA 코드에 관심이 있다면 여기에서 셀 값에 따라 행을 숨기는 VBA 코드를 소개 할 수 있습니다.

1. 프레스 Alt + F11 활성화 할 키 응용 프로그램 용 Microsoft Visual Basic 창.

2. 그런 다음 끼워 넣다 > 모듈 새로 열려면 모듈 창에서 VBA 코드 아래에 붙여 넣습니다.

VBA : 셀 값을 기준으로 행을 숨 깁니다.

Sub HideRow()
'Updateby20150618
Dim Rng As Range
Dim WorkRng As Range
Dim xNumber As Integer
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
xNumber = Application.InputBox("Number", xTitleId, "", Type:=1)
For Each Rng In WorkRng
    Rng.EntireRow.Hidden = Rng.Value < xNumber
Next
End Sub

3. 그런 다음 F5 키를 눌러 VBA를 실행 한 다음 팝업 대화 상자에 행을 숨기려는 데이터 범위를 선택합니다 (헤더 제외). 스크린 샷보기 :

문서 값 6을 기준으로 행 숨기기

4. 클릭 OK을 클릭하고 두 번째 대화 상자에 기준 번호를 입력합니다. 스크린 샷보기 :

문서 값 7을 기준으로 행 숨기기

5. 클릭 OK. 이제 데이터가 3000보다 작은 행이 숨겨집니다.

팁 : 3000보다 큰 행을 숨기려면 Rng.EntireRow.Hidden = Rng.Value <xNumberRng.EntireRow.Hidden = Rng.Value> xNumber, 또는 데이터가 3000 인 행을 숨기려면 다음으로 변경하십시오. Rng.EntireRow.Hidden = Rng.값 = xNumber.


Excel의 기준에 따라 빠르게 셀 선택

Excel 용 Kutools 특정 셀 선택, 한 번 또는 두 가지 기준에 따라 셀을 한 번에 선택할 수 있습니다. 
문서 선택 특정 셀
 
Excel 용 Kutools : 300 개 이상의 편리한 Excel 추가 기능으로 30 일 동안 제한없이 무료로 사용해 볼 수 있습니다.

VBA도 아닌 필터 기능을 활성화하고 싶지 않다면 여기에서 편리한 도구를 소개합니다. 특정 셀 선택 of Excel 용 Kutools 셀 값을 기준으로 전체 행을 빠르게 선택한 다음 숨길 수 있습니다.

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

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

팁. 텍스트 추출 기능의 무료 평가판을 사용하려면 Excel 용 Kutools를 무료로 사용해보십시오. 먼저 위의 단계에 따라 작업을 적용하십시오.

1. 데이터 범위를 선택하고 쿠툴 > 선택 > 특정 셀 선택. 스크린 샷보기 :

문서 값 14을 기준으로 행 숨기기

2. 에서 특정 셀 선택 대화 상자, 확인 전체 행 아래에 선택 유형 섹션에서 필요한 기준을 선택하십시오. 특정 유형 목록을 클릭 한 다음 텍스트 상자에 숫자 또는 텍스트를 입력하십시오. 스크린 샷보기 :

문서 값 9을 기준으로 행 숨기기

3. 클릭 Ok > OK 대화 상자를 닫습니다. 이제 데이터가 3000보다 작은 행이 선택되고 행 헤더를 마우스 오른쪽 버튼으로 클릭하여 컨텍스트 메뉴를 표시하고 숨기기를 클릭하면됩니다. 스크린 샷보기 :
문서 값 10을 기준으로 행 숨기기

이제 데이터가 3000보다 작은 행이 숨겨집니다.

문서 값 11을 기준으로 행 숨기기

팁 :

1. 특정 값을 포함하는 행을 숨기려면 포함 텍스트 상자에 특정 값을 입력합니다.

문서 값 12을 기준으로 행 숨기기

2. 값보다 크지 만 작은 값을 포함하는 행을 숨기려면 다음을 선택할 수 있습니다. 보다 큰미만을 클릭 한 다음 두 상자에 값을 입력하고 Audiencegain과.

문서 값 13을 기준으로 행 숨기기

Excel 용 Kutools 특정 셀 선택 유틸리티를 사용하면 특정 셀의 위치를 ​​식별하고 셀 값을 기반으로 전체 행 또는 열을 선택할 수 있습니다. 이 유틸리티에 대한 자세한 내용을 보려면 여기를 클릭하십시오.

Excel 용 Kutools: Excel에 있어야 하는 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 (17)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Yes, "Entire Row" is selected.
This comment was minimized by the moderator on the site
All rows remain selected without using Kutools. As soon as I use Kutools and select header row, all other rows but the header row de-select.
This comment was minimized by the moderator on the site
Are you sure check the Entire row option in the dialog? If you check cell option, the selected cells will be unselected when you right click at one row.
https://www.extendoffice.com/images/stories/comments/sun-comment/doc-select-specific-cell-1.png
This comment was minimized by the moderator on the site
Hi - I'm using a newer Lenovo PC with Windows 10 Professional and Microsoft 365 Apps for business. Excel Version 2210 (Build 15726.20202 Click-to-Run).
This comment was minimized by the moderator on the site
I have tried the operation in the same version with you, there is no any problem. Could you try to manually select several rows (without using Kutools for Excel), then right click at one row header, see all rows are remained selecting?
This comment was minimized by the moderator on the site
I have done exactly what you've demonstrated. However, when I right-click on the row header, all other rows become de-selected and only that one row remains selected to be hidden or deleted. No matter what I do, the other rows do not stay selected when right-clicking on the header. I'm at a loss to know what to do now.
This comment was minimized by the moderator on the site
I am so sorry for that. Could you tell me what Excel version and system you use?
This comment was minimized by the moderator on the site
Hello,

That is exactly what I've been doing, however, it only hides the row on which I have clicked the row header. All other selected rows remain unhidden, and are deselected at the same time. I will try it again following your gif exactly. Thanks for your reply.
This comment was minimized by the moderator on the site
I'm using Kutools to select entire rows based on a value, and it does select all the rows with that value. However, when I right-click on the row header and click on "Hide" in the menu, only that row is hidden and the rest that were selected become de-selected. It appears I still have to hide each row one at a time. What am I doing wrong?
This comment was minimized by the moderator on the site
Hi, Rochelley, I think there may be some wrong when you right-click at the row header. After the rows which match your condition are selecetd after applying the feature, right click at one row header of them, note that other rows are kept selected, then choose hide from the context menu. Please see the gif:
https://www.extendoffice.com/images/stories/comments/sun-comment/doc-hide-selected-row.gif
This comment was minimized by the moderator on the site
Hello,

I have a drop down with multiple reponses. I am trying to hide certain rows dependant on the response, can someone please assist?

Dropdown options are "CDI", "AR", "Legal", "Multiple" and "Other".

If response is CDI then hide rows 42-100

If response is AR then hide rows 19-41 and rows 66-100

If response is Legal then hide rows 19-66 and rows 88-100

If response is multiple then don't hide anything

If response is Other then hide rows 19-88



Can someone please asssist?
This comment was minimized by the moderator on the site
Hi I need some help with my work sheet. I have to build a dynamic questionnaire and I need to have a code that allow me to hide/ Unhide automatically some rows base on a cell information. Example:

if c6 is "internally" then show me row 7 but hide 8 to 107
if c6 is "Externally" then hide all the rows from 7 to 107


if c7 is "yes" then show me row 8 but hide 9 to 107
if c7 is "No" then show me row 8 but hide 9 to 107
if c8 is "Critical" then show me row 9 but hide 10 to 107

if c8 is "Important" show me row 9 but hide 10 to 107
if c8 is "Ordinary" show me row 9 but hide 10 to 107
if c8 is "Other" then show me row 9 but hide 10 to 107

if c9 is "Critical" then show me row 10 but hide 11 to 107
if c9 is "Important" then show me row 10 but hide 11 to 107
if c9 is "Ordinary" then show me row 10 but hide 11 to 107
if c9 is "Other" then show me row 10 but hide 11 to 107

etc.

can somebody help me?
This comment was minimized by the moderator on the site
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 1 And Target.Row = 1 Then

If Target.Value = "YES" Then
Worksheets(2).Activate
Worksheets(2).Application.Columns("A:Z").Select
Worksheets(2).Application.Selection.EntireColumn.Hidden = True
Worksheets(2).Application.Columns("AA:AZ").Select
Worksheets(2).Application.Selection.EntireColumn.Hidden = False
ElseIf Target.Value = "NO" Then
Worksheets(2).Activate
Worksheets(2).Application.Columns("AA:AZ").Select
Worksheets(2).Application.Selection.EntireColumn.Hidden = True
Worksheets(2).Application.Columns("A:Z").Select
Worksheets(2).Application.Selection.EntireColumn.Hidden = False
Else
Worksheets(2).Activate
Worksheets(2).Application.Columns("A:Z").Select
Worksheets(2).Application.Selection.EntireColumn.Hidden = False
Worksheets(2).Application.Columns("AA:AZ").Select
Worksheets(2).Application.Selection.EntireColumn.Hidden = False
End If

End If
End Sub
This comment was minimized by the moderator on the site
I got same error
This comment was minimized by the moderator on the site
Sorry I do not know either.
This comment was minimized by the moderator on the site
I don't know either Sunny
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