I have date values in the range C5:C16 Is there a conditional fomat that can identify…
- User
I have date values in the range C5:C16 Is there a conditional fomat that can identify either todays date or the next date closest to today
- Assistant
Yes, you can use Conditional Formatting in Excel to highlight either today's date or the next date closest to today in the range C5:C16. Here are the steps to set this up:
Step 1: Highlight Today's Date
- Select the range C5:C16.
- Go to the Home tab on the ribbon.
- Click on Conditional Formatting.
- Choose New Rule.
- Select Use a formula to determine which cells to format.
- Enter the following formula to highlight today's date:
excel
=C5=TODAY() - Click on the button to choose your formatting style (e.g., fill color, font color).
- User
This did not work: =AND(C5>TODAY(), C5=MIN(IF(C5:C16>TODAY(), C5:C16)))
- Assistant
I apologize for the confusion regarding the use of array formulas in Conditional Formatting. The
MINfunction combined withIFdoes indeed require an array context, which Conditional Formatting does not directly support in that manner. Instead, we can use a different approach.Here's how to set up the Conditional Formatting rules correctly: