Excel - 3 Methods to Shade Every Other Row

Sdílet
Vložit
  • čas přidán 6. 07. 2024
  • Highlighting or shading every other row in Excel is a great way to make your data easier to read. I'll show three methods for applying color to alternate rows. Method 1 is my least favorite, but I see users doing this a lot. Method 2 is one of my favorite features in Excel, but for the most control, use method 3. Method 3 is Conditional Formatting and I use the MOD Function and the ROW function. The MOD function returns the remainder of one number divided by another. The ROW function tells you what row you are in.
    MOD Examples:
    =MOD(7,2) will return 1. Seven divided by 2 is 3 with 1 remaining.
    =MOD(7,3) will return 1. Seven divided by 3 is 2 with 1 remaining.
    =MOD(7,4) will return 3. Seven divided by 4 is 1 with 3 remaining.
    =MOD(4,2) will return 0. Four divided by 2 is 2 with 0 remaining.
    ROW Examples:
    =ROW(A7) will return 7
    =ROW(D6) will return 6.
    =ROW() will return 3, if you are in row 3 will return 3.
    Chapters:
    00:00 Introduction
    00:22 Method 1
    00:47 Method 2
    01:27 Method 3
    05:27 Closing
    Blog post - chrismenardtraining.com/post/...
    And make sure you subscribe to my channel!
    - EQUIPMENT USED --------------------------------
    ○ My camera - amzn.to/3vdgF5E
    ○ Microphone - amzn.to/3gphDXh
    ○ Camera tripod - amzn.to/3veN6Rg
    ○ Studio lights - amzn.to/3vaxyy5
    ○ Dual monitor mount stand - amzn.to/3vbZSjJ
    ○ Web camera - amzn.to/2Tg75Sn
    ○ Shock mount - amzn.to/3g96FGj
    ○ Boom Arm - amzn.to/3g8cNi6
    - SOFTWARE USED --------------------------------
    ○ Screen recording - Camtasia - chrismenardtraining.com/camtasia
    ○ Screenshots - Snagit - chrismenardtraining.com/snagit
    ○ CZcams keyword search - TubeBuddy - www.tubebuddy.com/chrismenard
    DISCLAIMER: Links included in this description might be affiliate links. If you purchase a product or service with the links I provide, I may receive a small commission. There is no additional charge to you! Thank you for supporting my channel, so I can continue to provide you with free content each week!

Komentáře • 45

  • @ChrisMenardTraining
    @ChrisMenardTraining  Před 2 lety

    Blog post chrismenardtraining.com/post/excel-3-methods-to-shade-every-other-row

    • @EmpiricalPragmatist
      @EmpiricalPragmatist Před 2 lety

      Hi Chris, and thanks as always for the amazing content. Question: wouldn't you expect quite a large performance hit when using the conditional formatting solution for a very large data set? I would avoid this method in these cases, but for small ones it's great!

    • @frankmoore3220
      @frankmoore3220 Před 3 měsíci

      Great tip. Thank you very much!

  • @jieliu8644
    @jieliu8644 Před rokem

    You are a great teacher. you explained much clearer than other site. Thank you!

  • @goadamson
    @goadamson Před 3 měsíci +1

    Quick search lead me here. Love the three options perspective as it helped me fully understand why the conditional formatting option has the most strengths

    • @ChrisMenardTraining
      @ChrisMenardTraining  Před 3 měsíci

      I'm glad the search picked up my video. Thanks for letting me know.

  • @pwcurtiss
    @pwcurtiss Před 4 měsíci +1

    Thank you Chris. I look at 3 other videos before your and your was the most straight forward and informative. Thank you for adding the formula and rules explanation as well.

  • @IvanRosaT
    @IvanRosaT Před 5 měsíci

    FINALLY!!! I found this video it has the right formula!!!!

  • @user-bx5hh4uh3i
    @user-bx5hh4uh3i Před měsícem

    Good explanation, thenks you. I get trought this subject without much problems.

  • @crystalowens9742
    @crystalowens9742 Před rokem +1

    Best explanation I found, thank you!

  • @mkno25
    @mkno25 Před rokem

    Thank you for this!

  • @MrFraiche
    @MrFraiche Před 3 měsíci +1

    Formula =mod(row(),2)=1. Awesome tip. Thank you!! 🙏

  • @user936
    @user936 Před 27 dny

    Method 2 for the win! Nice 🦢

  • @garretreed9709
    @garretreed9709 Před 11 měsíci +1

    This really helped!! Thank you

  • @copasetic216
    @copasetic216 Před 2 měsíci

    you are a BEAST. thank you sir.

  • @mindlessmeat4055
    @mindlessmeat4055 Před 4 měsíci +1

    Great video, but not what was wanting. I a list of dates and want alternate colors. Like thee 1-1 dates being green, two 1-2 being red, and four 1-4 being green again (the date skip was intentional). I am having a tough time finding help on this.

  • @singhchandanyt
    @singhchandanyt Před 5 měsíci

    Thankyou So Much

  • @cuteness_
    @cuteness_ Před rokem

    Thank you for this video. I just want to ask if there's a way to highlight the duplicates in alternative colors (just two colors) so that I won't do it manually after I use the countif formula?

  • @user-mq3gp5hw5v
    @user-mq3gp5hw5v Před 8 měsíci

    I have a large a mount of data in many rows with multiple columns (necessary to sort). I love method 2 because it maintains the shading format even when sorting AND filtering. However, method 3 would be ideal for my project because I'm able to shade the first 10 rows a different color from all rows afterward (row 11 on). I'm also using a 3rd shade on the bottom 10 rows. But when I filter out any data from the columns, the shading for every other row goes away. Is there a way to combine the functionality of methods 2 & 3 where I'm able to filter out data and not lose the format of every other row being shaded as well as keeping the first and last ten rows of the data shaded in different colors?
    I'll keep poking around until I figure something out. In the meantime any help and/or ideas would be very much appreciated.
    Thank You in advance
    ~Jerry

  • @barrywalker1288
    @barrywalker1288 Před 29 dny

    Brilliant

  • @m.ishtiaqriazfcca4565
    @m.ishtiaqriazfcca4565 Před 4 měsíci +1

    excellent

  • @KevinHanna-ct3yq
    @KevinHanna-ct3yq Před rokem

    Helpful video and explanation. Any idea if one can apply a similar process using conditional formatting that would ignore hidden rows when filtering data? So whether you have the entire dataset in view or you filter to a subset, the displayed values will be shaded every other row. I use the aggregate function [AGGREGATE(2,5,{Array}] to identify the actual row # in the subset when filtering data. But I don't think you can use a function in the Conditional Formatting formula that references an array since it wouldn't have the proper context. Any ideas?

    • @KevinHanna-ct3yq
      @KevinHanna-ct3yq Před rokem

      Another useful formula besides Mod would be "=ISEVEN(ROW())" which returns True if the Row is Even to get the same result, if you want to shade every other row. But still want a way to reference a specific cell that varies by Row to apply that logic to instead of using Row() ?

  • @jimsullivanyoutube
    @jimsullivanyoutube Před měsícem

    Hey Chris! What about mixing alternating columns and rows with diferent shades of grey for the columns vs the rows using the Conditional Formatting method? And thank you for the great video! THANK YOU!
    PS: I think it's outrageos that, after four decades, this common task is so difficult, complicated, and unintuitive, that it takes a half hour of research to accomplish. Microsoft never really understood or prioritised asthetics and usability -- thay either don't care or they are inept.

  • @Saad.PS2009
    @Saad.PS2009 Před 2 lety +1

    Thanks

  • @ReasonedRhetoric
    @ReasonedRhetoric Před 29 dny

    What if you want conditional to look like the table method which gives an alternating dark color row, then a light color row?

  • @sajimon2010
    @sajimon2010 Před 2 lety

    Hello Sir, Thank you for sharing this. Also, I just wanna know how to apply single color for all similarities and different color for other all entries.?

    • @ChrisMenardTraining
      @ChrisMenardTraining  Před 2 lety +1

      I would use Conditional Formatting * duplicate values* . All the duplicates would be in one color. drive.google.com/file/d/1cvkGQeqYH5VE4lUWgHk3S7qo0WUY2WI-/view?usp=drivesdk

    • @sajimon2010
      @sajimon2010 Před 2 lety

      @@ChrisMenardTraining Thank you for your immediate response.

  • @kakoozamartie4222
    @kakoozamartie4222 Před 2 měsíci

    What of applying different colors to different rows or columns 😮

  • @desmondprey4881
    @desmondprey4881 Před 6 měsíci

    Not homeboy rocking resident evil merch, noice

  • @charlesbajnai4530
    @charlesbajnai4530 Před 4 měsíci +2

    You missed the easiest way to do it:
    1 chose the array (or whole sheet)
    2 conditional formatting
    3 use a formula to determine which cells to format
    4 =isodd(row()) and chose a color.
    Also works for columns.

  • @king-amir3401
    @king-amir3401 Před 9 měsíci

    For some reason it doesn't work for me. nothing happens when I hit ok :(

  • @Trabernater
    @Trabernater Před 6 měsíci

    Using Method 2 completely destroys my entire spreadsheet. Every column and row increases in size by double. Any idea on how to not make that happen?

  • @gregsdoodles4547
    @gregsdoodles4547 Před rokem

    I loved tables in Excel, but that changed when I started using VBA more...now I'll never use an Excel table again

  • @michelle778
    @michelle778 Před 4 měsíci +1

    seem slike office 365 doesn't like this: "the value you entered isn't valid. Please try again using alternative values, punctuation or symbol"

  • @user-mb4ip4fe4z
    @user-mb4ip4fe4z Před 2 měsíci

    Its from the bottle you found a few manholes back