How to Highlight Odd or Even Days in Excel

Опубликовано: 03 Июнь 2024
на канале: Excel 10 tutorial
200
4

How to Highlight Odd or Even Days in Excel
In this intermediate excel tutorial I’ll show you how to mark odd and even dates from a date list in Microsoft Excel. I’ll be using formula and conditional formatting to solve this. Let’s follow the procedure below and you’ll be able to highlight odd and even dates.

Similar Videos:
How to apply color banded rows or columns in excel:    • How to apply color banded rows or col...  
How to Highlight the Odd or Even Months in Excel:    • How to Highlight the Odd or Even Mont...  
How to Highlight Odd and Even Year in Excel:    • How to Highlight Odd and Even Year in...  
How to Highlight Odd and Even Number in Excel:    • How to Highlight Odd and Even Number ...  

Highlight Odd Days:
Here our formula will be =MOD(DAY($A1),2) that we will be using inside Conditional Formatting.
Let's break down the formula =MOD(DAY($A1),2):
$A1: This refers to cell A1. The $ sign before the column letter and row number makes the reference absolute, which means that when you copy the formula to other cells, it will always refer to column A.
DAY($A1): This function extracts the day component from the date in cell A1. For example, if cell A1 contains the date "April 27, 2024", this function will return 27.
MOD(): This function calculates the remainder of a division operation. It takes two arguments: the number you want to divide and the divisor.
MOD(DAY($A1),2): This part of the formula divides the day extracted from cell A1 by 2 and returns the remainder. So, if the day is odd, the remainder will be 1; if the day is even, the remainder will be 0.
Now 1 = True and 0 will be False is an universal rule and we will be using this in the conditional formatting and thus highlight odd days from a date.

Highlight Odd Dates using Conditional Formatting:
Step 1: Select the range where you have dates and need to highlight.
Step 2: From the “Home” tab click on “Conditional Formatting” and then “New Rule”
Step 3: Click on “Use Formula to Determine Which Cells to Format” and Paste the Formula inside the box. For odd dates the formula will be =MOD(DAY($A1),2)
Step 4: Now click on format and Select your preferred formatting.
Step 5: Click ok and ok again
Done. You have successfully formatted all the odd dates inside your selection.

Now what if you need to highlight all the Even Dates?
You need to change the formula a bit. If we reverse the result in the previous formula it will work. To do that we can use the NOT function to wrap the above formula. NOT function converts True to False and False to True and thus 0 to 1 and 1 to 0. This will now help us to reverse the formula above.
So if you need to highlight all the Even month follow the exact procedure and just use this formula =NOT(MOD(DAY($A1),2)) inside conditional formatting instead of above one.

#Highlight #OddEven #Dates

Thanks for watching.
----------------------------------------------------------------------------------------
Support the channel with as low as $5
  / excel10tutorial  
----------------------------------------------------------------------------------------
Please subscribe to #excel10tutorial
https://goo.gl/uL8fqQ

Here goes the most recent video of the channel:
https://bit.ly/2UngIwS

Playlists:

Excel Tutorial for Beginners: https://goo.gl/UDrDcA
Intermediate Excel Tutorial: https://tinyurl.com/59a837py
Advance Excel Tutorial: https://goo.gl/ExYy7v
Excel Text Case Conversion Techniques: https://goo.gl/xiP3tv
Combine Workbook & Worksheets: https://bit.ly/2Tpf7DB
All About Comments in Excel: https://bit.ly/excelcomments
Excel VBA Programming Course: http://bit.ly/excelvbacourse
ChatGPT Excel Mastermind: https://tinyurl.com/46kn7tmd

Social media:
Facebook:   / excel10tutorial  
Twitter:   / excel10tutorial  
Blogger: https://excel10tutorial.blogspot.com
Tumblr:   / excel10tutorial  
Instagram:   / excel_10_tutorial  
Hubpages: https://hubpages.com/@excel10tutorial
Quora: https://bit.ly/3bxB8JG
Website: https://msexceltutorial.com/


Смотрите видео How to Highlight Odd or Even Days in Excel онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Excel 10 tutorial 03 Июнь 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 200 раз и оно понравилось 4 людям.