메인 컨텐츠로 가기

Google 시트에서 셀 색상을 기준으로 행을 필터링하는 방법은 무엇입니까?

일반적으로 필터 기능을 사용하면 Excel에서 특정 색상으로 행을 빠르게 필터링 할 수 있지만 Google 시트에서는 필터 기능이이 작업을 지원하지 않습니다. 이 기사에서는 Google 시트에서 색상별로 행을 필터링하는 방법에 대해 설명합니다.

Google 시트의 색상을 기준으로 행 필터링


Google 시트의 색상을 기준으로 행 필터링

색상을 기준으로 데이터를 필터링하려면 다음 단계를 적용하십시오.

1. 딸깍 하는 소리 도구 > 스크립트 편집기, 스크린 샷 참조 :

2. 열린 프로젝트 창에서 아래 스크립트 코드를 복사하여 붙여 넣어 코드 모듈의 원래 코드를 대체하십시오. 스크린 샷을 참조하십시오.

function getHex(input) {
  return SpreadsheetApp.getActiveSpreadsheet().getRange(input).getBackgrounds();
}

3. 그런 다음 코드 창을 저장하면 프로젝트 이름을 지정하라는 메시지 상자가 나타납니다. 스크린 샷을 참조하십시오.

4. 스크립트 코드를 저장 한 후 시트로 돌아가 다음 공식을 입력합니다. = getHex ( "A2 : A16") 데이터 범위 옆의 빈 셀에 넣은 다음 엔터 버튼 키, 각 행의 색상 인덱스가 도우미 열에 표시되었습니다. 스크린 샷 참조 :

5. 그런 다음이 도우미 열을 기준으로 행을 필터링하면됩니다. 도우미 열 머리글을 클릭 한 다음 Data > 필터, 스크린 샷 참조 :

6. 그런 다음 도우미 열의 드롭 다운 버튼을 클릭하고 확장 된 창에서 목록 상자에서 필터링 할 색상 인덱스를 선택하고 확인합니다. 스크린 샷을 참조하십시오.

7. 클릭 OK 버튼을 클릭하면 특정 셀 색상으로 채워진 행이 다음 스크린 샷과 같이 필터링되었습니다.

최고의 사무 생산성 도구

🤖 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
See also how-to-pass-a-range-into-a-custom-function-in-google-spreadsheets
https://webapps.stackexchange.com/questions/10629/how-to-pass-a-range-into-a-custom-function-in-google-spreadsheets

This then gives for example

=getHex(CELL("address",A1))
=getHex(CELL("address",A1)&":"&CELL("address",A2))

etc
This comment was minimized by the moderator on the site
What if only certain cells in a row were colored? How can I use this method to notate which ROWS contain a particular color?
This comment was minimized by the moderator on the site
It worked for me, but not for alle colors. I don't know why.
But anyway: Thank a lot!
This comment was minimized by the moderator on the site
ty it works
This comment was minimized by the moderator on the site
Thanks a lot! It helped.
This comment was minimized by the moderator on the site
Superb! very useful! Thanks a million! Cheers!
This comment was minimized by the moderator on the site
Thank you. Awesome
This comment was minimized by the moderator on the site
there's a question that it kept showing "Range not found",how can i fix it
This comment was minimized by the moderator on the site
Awesome job, it works exactly like the explanation.Thank you
This comment was minimized by the moderator on the site
Great workaround! I tried repeatedly to highlight duplicates in an Excel spreadsheet then sort by cell color but since the file was so large (373K + rows) the sort would "hang", and never complete. I decided to try Google Sheets and although I could only format about 100K rows at a time (had to do a format 4x) your workaround worked perfectly. Plus, scrolling down the page with Google Sheets was infinitely faster than with Excel. Thanks for the great hack!
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