can't get conditional format to work

still learning

Well-known Member
Joined
Jan 15, 2010
Messages
784
Office Version
  1. 365
Platform
  1. Windows
Hi

I have Monday in B2

I have Tuesday in b3

I have Wednesday in B4

I have Thursday in B5

I'm trying to get the current day of the week to change font color

I tried to highlight the row from B2:B5 and use this formula but it doesn't work

Excel Formula:
=B2=today()

If I change the cells to a date and change the font to “dddd” it works

What am I doing wrong

mike
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
I just found out that it only works if I use today's date for wednesday (4/17) it works.
if I use any other date, it doesn't.
SO .... my solution is no good
Hey.....first mistake today !!!!!

mike
 
Upvote 0
How about:
Excel Formula:
=B2=TEXT(TODAY(),"dddd")
Note: I would personally put Today() in a cell and reference that cell (absolute referencing) instead of putting Today directly in the formula. Putting it in a cell will also help you in testing it.
 
Upvote 0
Solution
I just found out that it only works if I use today's date for wednesday (4/17) it works.
if I use any other date, it doesn't.
SO .... my solution is no good
Hey.....first mistake today !!!!!

mike
You are comparing a week day name against a date?
You would also need to use the WeekDay() function and format as you have done.
I would also enter that in a cell and refer to that cell in the CF.
 
Upvote 0
Hi

Thank you Alex and Welsgasman
Using you suggestions

What I did was make a helper cell (G1) and put in
Excel Formula:
=Today()
Then I made another helper cell (A1) and put in
Excel Formula:
=TEXT(G1,”dddd”)
Then I used Conditional format to reference A1
Excel Formula:
=B2=$A$1
And applied it to B2:B5
And so far it works !!!
I also tried ..in helper cell A1…
Excel Formula:
=TEXT(Today(),”dddd”)
And the result is also today’s day name
So now I can have the headings change color depending on the day of the week. It makes it a little easier to see what day it is.


mike
 
Upvote 0
I would replace G1 in the A1 cell with Today()
Why have two cells, when you only need one?
 
Upvote 0

Forum statistics

Threads
1,215,242
Messages
6,123,830
Members
449,127
Latest member
Cyko

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top