Computer >> 컴퓨터 >  >> 소프트웨어 >> Office

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

데이터를 끌어들이기 위해 Excel에서 행 색상을 대체할 수 있습니다. 테이블을 만들지 않고도. 이 기사에서는 Excel에서 행 색상을 대체하는 방법을 설명합니다. 테이블이 없습니다.

여기에서 연습 워크북을 다운로드할 수 있습니다.

표가 없는 Excel에서 행 색상을 대체하는 5가지 방법

여기에서는 5에 대해 설명하겠습니다. 표가 없는 Excel에서 행 색상을 대체하는 방법 . 또한 이해를 돕기 위해 4 열. 제품입니다. , 판매 , 이익,상태 .

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

1. 채우기 색상 옵션을 사용하여 Excel에서 행 색상 대체

채우기 색상 을 사용할 수 있습니다. 표가 없는 Excel의 행 색상 대체 기능 . 이것은 절대적으로 수동 프로세스입니다. 따라서 데이터가 너무 많으면 시간이 많이 걸립니다. 단계는 다음과 같습니다.

단계:

  • 먼저 색칠할 행을 선택해야 합니다. 여기에서 행 6, 8, 10, 12,를 선택했습니다. 및 14 .

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

  • 그 후에 으로 이동해야 합니다. 탭.
  • 이제 채우기 색상에서 기능>> 색상 중 하나를 선택해야 합니다. 여기서는 녹색, 강조 6, 더 밝게 60%를 선택했습니다. . 이 경우 조명을 선택하세요. 색깔. 어두운 색은 입력된 데이터를 숨길 수 있기 때문입니다. 그런 다음 글꼴 색상을 변경해야 할 수도 있습니다. .

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

마지막으로 대체 행 색상이 있는 결과를 볼 수 있습니다. .

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

자세히 알아보기: Excel에서 병합된 셀의 대체 행에 색상을 지정하는 방법

2. 셀 스타일 기능 사용

셀 스타일 을 사용할 수 있습니다. 표가 없는 Excel의 행 색상 대체 기능 . 이것은 절대적으로 수동 프로세스입니다. 따라서 데이터가 너무 많으면 시간이 많이 걸릴 수 있습니다. 단계는 다음과 같습니다.

단계:

  • 먼저 색칠할 행을 선택해야 합니다. 여기에서 행 6, 8, 10, 12,를 선택했습니다. 및 14 .
  • 둘째, 에서 탭>> 셀 스타일 로 이동해야 합니다. 기능.
  • 셋째, 선호하는 색상이나 스타일을 선택하십시오. 여기에서 계산을 선택했습니다. .

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

마지막으로 대체 행 색상으로 다음과 같은 결과를 볼 수 있습니다. .

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

자세히 알아보기: Excel의 셀 값을 기반으로 대체 행의 색상을 지정하는 방법

유사한 수치

  • Excel VBA로 다른 통합 문서를 열고 데이터를 복사하는 방법
  • [수정됨!] 개체 통합 문서의 메서드 열기 실패(4개 솔루션)
  • 배열을 셀 값으로 채우기 위한 Excel VBA(적합한 예 4개)
  • VBA를 사용하여 통합 문서를 열고 매크로를 실행하는 방법(예제 4개)

3. 수식으로 조건부 서식 적용

조건부 서식을 적용할 수 있습니다. 공식으로. 여기서는 를 사용하겠습니다. ROW 함수가 있는 다양한 수식 . 또한 MOD 그리고 ISEVEN 기능.

1. MOD 및 ROW 함수를 사용하여 Excel에서 행 색상 대체

MOD부터 시작하겠습니다. 및 ROW 표가 없는 Excel에서 행 색상을 대체하는 기능 단계는 다음과 같습니다.

단계:

  • 먼저, 행 색상을 대체하기 위해 조건부 서식을 적용할 데이터를 선택해야 합니다. 여기에서 B5:E14 데이터 범위를 선택했습니다. .

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

  • 이제 에서 탭>> 조건부 서식으로 이동해야 합니다. 명령.
  • 그런 다음 새 규칙을 선택해야 합니다. 수식을 적용하는 옵션입니다.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

이때 새 서식 규칙이라는 대화 상자가 나타납니다. 나타납니다.

  • 이제 대화 상자에서>> 수식을 사용하여 서식을 지정할 셀 결정을 선택해야 합니다.
  • 그런 다음 이 수식이 참인 값의 서식에 다음 수식을 작성해야 합니다. 상자.
=MOD(ROW(),2)
  • 그런 다음 형식으로 이동합니다. 메뉴.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

수식 분석

  • 여기 ROW 함수는 의 수를 계산합니다. .
  • MOD 함수는 나머지를 반환합니다. 분할 후.
  • 그래서, MOD(ROW(),2)–> 1 또는 0 이 됩니다. 제수가 2이기 때문입니다. .
  • 마지막으로 출력 0입니다. 그러면 채우기가 없습니다. 색상.

현재 셀 서식이라는 대화 상자가 나타납니다.

  • 이제 채우기 에서 옵션>> 색상 중 하나를 선택해야 합니다. 여기에서는 녹색, 강조 6, 더 밝게 40%를 선택했습니다. . 이 경우 조명을 선택하세요. 색깔. 어두운 색은 입력된 데이터를 숨길 수 있기 때문입니다. 그런 다음 글꼴 색상을 변경해야 할 수도 있습니다. .
  • 그런 다음 확인을 눌러야 합니다. 형성을 적용합니다.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

  • 그런 다음 확인을 눌러야 합니다. 새 서식 규칙 대화 상자. 여기 미리보기에서 즉시 샘플을 볼 수 있습니다. 상자.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

마지막으로 대체 행 색상으로 결과를 얻을 수 있습니다. .

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

자세히 알아보기: Excel의 그룹에 따른 대체 행 색상(6가지 방법)

2. ISEVEN 및 ROW 함수 사용

이제 ISEVEN 의 사용법을 보여드리겠습니다. 및 표가 없는 Excel에서 행 색상을 대체하는 기능 단계는 이전 방법과 유사합니다.

  •  먼저 method-3.1을 따라야 합니다. 새 서식 규칙 열기 창.
  • 둘째, 해당 대화 상자에서>> 수식을 사용하여 서식을 지정할 셀 결정을 선택해야 합니다.
  • Thirdly, you need to write down the following formula in the Format values where this formula is true: 상자.
=ISEVEN(ROW())
  • Finally, go to the Format 메뉴.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

수식 분석

  • Here, the ISEVEN function will return True if the value is an even number.
  • The ROW function will count the number of Rows .
  • So, if the Row number is odd then the ISEVEN function will return FALSE . As a result there will be no fill color.

At this time, a dialog box named Format Cells 나타납니다.

  • Now, from the Fill option>> you have to choose any of the colors. Here, I have chosen Gold, Accent 4, Lighter 60% . Also, you can see the formation below in the Sample 상자. In this case, try to choose any light color. Because the dark color may hide the inputted data. Then, you may need to change the Font Color .
  • Then, you must press OK to apply the formation.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

  • After that, you have to press OK on the New Formatting Rule 대화 상자. Here, you can see the sample instantly in the Preview 상자.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

Lastly, you will see the result with alternate Row colors .

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

자세히 알아보기: How to Shade Every Other Row in Excel (3 Ways)

4. Using Formula with Sort &Filter Command

You can use a formula with the Sort &Filter command to alternate Row colors in Excel without Table . Furthermore, I will use the MOD , IF , and ROW functions in the formula. 단계는 다음과 같습니다.

단계:

  • Firstly, you have to select a cell, where you want to keep the output. I have selected the F5 세포.
  • Secondly, use the corresponding formula in the F5 세포.
=MOD(IF(ROW()=2,0,IF(E5=E4,F4, F4+1)), 2)

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

수식 분석

  • Here, IF(E5=E4,F4, F4+1)–> This is a logical test where if the value of E5 cell is equal to E4 cell then it will return the value of F4 cell otherwise it will give 1 increment with F4 cell value.
    • Output:1
  • Then, the ROW() function will count the number of Rows .
    • Output:5
  • IF(5=2,0,1)–> This logical test says that if 5 is equal to 2 then it will return 0 otherwise it will return 1 .
    • Output:1
  • The MOD function will return the remainder after division.
  • Finally, MOD(1,2)–> becomes.
    • Output:1

  • After that, you have to press ENTER to get the result.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

  • Subsequently, you have to drag the Fill Handle icon to AutoFill the corresponding data in the rest of the cells F6:F14 .

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

At this time, you will see the following result.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

  • Now, select the data range. Here, I have selected B4:F14 .
  • Then, from the Home ribbon>> go to the Editing 탭.
  • Then, from the Sort &Filter feature>> you have to choose the Filter option. Here, you can apply the Keyboard technique CTRL+SHIFT+L.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

At this time, you will see the following situation.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

  • Now, you should click on the Drop-Down Arrow on the F 칼럼.
  • Then, select 1  and uncheck 0.
  • 마지막으로 확인을 누릅니다. .

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

Subsequently, you will see the following filtered output.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

  • After that, you need to select the filtered data.
  • Then, you have to go to the Home 탭.
  • Now, from the Fill Color feature>> you have to choose any of the colors. Here, I have chosen Green, Accent 6, Lighter 60% . In this case, try to choose any light color. Because the dark color may hide the inputted data. Then, you may need to change the Font Color .

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

  • Now, to remove the Filter feature, from the Home ribbon>> go to the Editing 탭.
  • Then, from the Sort &Filter feature>> you have to choose again the Filter 옵션.
  • Otherwise,  you can press CTRL+SHIFT+L to remove the Filter feature.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

Lastly, you will see the result with the same Row colors for the same Status.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

5. Use of VBA Code to Alternate Row Colors in Excel Without Table

You can employ a VBA code to alternate Row colors in Excel without Table . 단계는 다음과 같습니다.

단계:

  • 먼저 개발자를 선택해야 합니다. 탭>>을 선택한 다음 Visual Basic을 선택합니다.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

  • 이제 삽입에서 tab>> select Module .

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

  • Write down the following Code in the Module.
Sub ChangeRowColors()
Dim range As range
Dim chr As Long
Dim NoColor As Long
Dim Colored As Long
'I will Define Color as Input
  NoColor = vbWhite
  Colored = RGB(0, 255, 255)
'Select a range as variable
  Set range = Selection
'You should select more than 1 Row
  If range.Rows.Count = 1 Then Exit Sub
'Loop for Color Changing
  For chr = 1 To range.Rows.Count
    If chr Mod 2 = 0 Then
      range.Rows(chr).Interior.Color = Colored 'Even Row
    Else
      range.Rows(chr).Interior.Color = NoColor 'Odd Row
    End If
  Next chr
End Sub

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

Code Breakdown

  • Here, I have created a Sub Procedure named ChangeRowColors .
  • Next, declare some variables range as Range to call the range; chr as Long; NoColor as Long; Colored as Long .
  • Here, RGB (0, 255, 255) is a light color called Aqua .
  • Then, the Selection property will select the range from the sheet.
  • After that, I used a For Each Loop to put Color in each alternate selected Row using a VBA IF Statement with a logical test .

  • Now, Save the code then go back to Excel File.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

  • After that, select the range B5:E14 .
  • Then, from the Developer tab>> select Macros.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

  • At this time, select Macro (ChangeRowColors) and click on Run .

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

Finally, you will see the result with alternate Row colors .

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

Read More:How to Make VBA Code Run Faster (15 Suitable Ways)

💬 Things to Remember

  • When you have lots of data then you should use method 3 (Conditional Formatting) or method 5 (VBA Code) . This will save your time to alternate Row colors .
  • In the case of a tiny dataset, you can easily use method 1 (Fill Color) or method 2 (Cell Styles).
  • Furthermore, when you want to color similar data or something sorted then you should use method 4 (Sort &Filter) .

연습 섹션

Now, you can practice the explained method by yourself.

표 없이 Excel에서 행 색상을 변경하는 방법(5가지 방법)

결론

I hope you found this article helpful. Here, I have explained 5 methods to Alternate Row Colors in Excel Without Table. You can visit our website Exceldemy to learn more Excel-related content. Please, drop comments, suggestions, or queries if you have any in the comment section below.

관련 기사

  • How to Use Select Case Statement in Excel VBA (2 Examples)
  • Learn Excel VBA Programming &Macros (Free Tutorial – Step by Step)
  • Reverse Rows in Excel (4 Easy Ways)
  • 6 Best Excel VBA Programming Books (For Beginners &Advanced Users)
  • How to Use VBA OnKey Event in Excel (with Suitable Examples)
  • Excel VBA:Workbook Level Events and Their Uses
  • How to Open Workbook from Path Using Excel VBA (4 Examples)
  • Browse for File Path Using Excel VBA (3 Examples)