Excel - Highlight cells that matches current day of any date - excel

Looking for a way to highlight Current Day of any date to be highlighted.
here is a little example, different dates,i just want to highlight todays date (its 26) so 26 should highlight no matter whats the month is.
little effort i made.. but it doesn't work

You can use =DAY() to get the current day number back and =TODAY() to get today's date.
So, in your case, your conditional formatting formula in cell A1 would be DAY(A1)=DAY(TODAY()), then you can copy and paste the formatting down.

Related

Is it possible to have excel highlight cells that don't conform to my desired format (ex. date as 6.2.2021 vs the desired 6/2/2021)?

I use a spreadsheet to prioritize workflow for my team. Certain cells highlight depending on how close we are to cycle times. There is a start date, a tentative finish date, and a discharge date.
A blank discharge date cell turns red if:
start date is not blank; tentative is not blank; and today's date is within five days of the tentative date.
Some of my team member have the habit of writing their dates with periods (mm.dd.yyyy). Excel of course does not recognize this as a date. BUT it does know that the 'tentative date' cell is not blank. As a result, even if today's date is equal to the tentative date, the 'discharge date' cell does not turn red. This is taking away from the utility of this sheet, as it is intended to be info at a glance, where a glaring red cell lets one know, "Oh shoot! I need to focus on that task as a priority."
I'd like for the start date and tentative date cells to go red if the date is not the desired format (mm/dd/yyyy).
Formula and condition in S1:
S1 fills red if
=AND($P1-TODAY()<=5,COUNTA($S1)=0,$M1<>0,$P1<>0)
In the same way that you can conditionally format the output as red with your supplied formula above, you can conditionally format the inputs (start date and tentative date) if they do not match your criteria.
One idea is to use something like =SEARCH(".", A1)>0 as the criteria for the format (if the incorrect input always comes in some variation of dd.mm.yyyy, and assuming the start of your range is in cell A1).
Here are the steps to do so if you did not create the original rule:
Highlight the ranges of the start and tentative dates
Go Home->Conditional Formatting->New Rule->"Use formula to determine which cells to format"
Enter the formula above (where you are sure to remove absolute references)
Go Format->Fill->Choose Red and hit okay

Highlighting A Row Based On Current Date

I have a spreadsheet in which each row of column F has a specific date. I want the sheet to highlight the row which corresponds to the current date (today). Anyone knows how to do this?
You can use the conditional formatting formula:
=$F1=Today()
and apply to the range, say,
=$A$1:$F$10
Note: Using TODAY() means that when you open the sheet tomorrow, or any other day, it's going to see if the cell is equal to that day. To make it literally today, you can do:
=$F1=DATE(2018,01,25)

Last Day of Previous month based on cell date given in excel

Last Day of Previous month based on cell date given in excel , example used A1 cell as 6/23/2016 …. Have applied formula in b1 cell '=EOMONTH(A1,-1) … output am getting in number format could you please help to get date format here ? Any formula which helps apart from this ? Much appreciated with your responses
The format is applied as follows:
Subtract the day-of-month from whatever date you have.
=a1-day(a1)
Excel tries to carry the primary formatting from the precedent cells in a formula but sometimes it cannot so it defaults to a general number. EOMONTH is often the latter; simple subtraction seems to work.

How to use Conditional Formatting between a cell pulling info from a date and comparign to a cell that includes only text

I have an Excel spreadsheet that has sections broken out by month. The headers are individual month names, not dates. Each of these is color-coded to match the month. I have a single cell set aside to display the current month (using the TODAY function). I want to be able to style the cell depending on which month of the year it is.
I set 12 conditional formatting rules to check the cell against. I started out by using ="November" (as an example), but it doesn't seem to equate (TODAY()) with the word "November," so the rule doesn't apply. Either I need a new formula for the cell or there's some formula I have to use in the conditional formatting to get it to recognize the similarity between a date-formatted cell and a text-formatted cell.
Any ideas?
Assuming the cell is in A2, I would just change your conditional formatting formula to something like
=MONTH(A2)=11
TODAY() actually saves the Excel date value (e.g. 42695 for today) but using the MONTH() function will return the month number.
You could also alter the TODAY() formula to be something like
=TEXT(TODAY(),"mmmm")
That will convert the visible date to just show the month name and should still work for your original conditional formatting formula.

Conditional formatting based on date in another cell

I have text in cell A1 that I want to apply conditional formatting to based on the dates in cells A2:A5. That is if a date in A2:A5 is older than today I want A1 to be filled in red. If the date in A2:A5 is less than 30 days from today I want A1 to be orange. I have tried various formulas and just cant seem to get it to work. Appreciate any help. Thanks
You need to use conditional formatting (button in the home ribbon). Choose new rule and click 'Use a formula'. Enter the formula you want and click format and select the fill colour you want it to be. Click OK. You can do this multiple times with different colours and formulas.
So something like this would make A1 change if A2 was within 30 days:
=$A$2<($A$1-30)=TRUE
But what colour would A1 be if the dates in cells A2:A5 are a variety of dates? Eg. some are less than 30 days some more? The technique above is easy when comparing A1 to one cell. I am not sure you have thought about this or you just have not explained yourself properly.
EDIT:
If A1 is not a static date and you want formatting based on the current timeframe (eg B1 falls within 30 days) then use the Date Occurring feature. Examples of how you can use if below. So you are going to need 12 of these to cover B1:G1 with 30 days for orange and one day for red.

Resources