Conditional Format Fractions

FWMYKIGI

New Member
Joined
Mar 23, 2018
Messages
4
How can I get conditional formatting to highlight cells with fractions. Is the only way to get this to separate each number them into different cells?

1/1, 2/2, 13/13 = green
1/2, 5/7, 10/25 = yellow
0/1, 0/8, 0/15 = red
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
=OR(A1="1/2",A1="5/7",A1="10/25")

etc


Nothing is getting highlighted green when I input his formula for conditional formatting.. Here is what the table looks like. I pasted this formula =OR(A1="1/3",A1="3/3",A1="10/25")

[TABLE="class: grid, width: 250, align: center"]
<tbody>[TR]
[TD]RSID[/TD]
[TD]Hire Date[/TD]
[TD]Hire Authority[/TD]
[TD]MY 17[/TD]
[TD]MY 16[/TD]
[TD]MY 15[/TD]
[TD]MY 14[/TD]
[TD]MY 13[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1/3[/TD]
[TD]5/9[/TD]
[TD]17/16[/TD]
[TD]20/18[/TD]
[TD]3/3[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]17/17[/TD]
[TD]16/14[/TD]
[TD]0/0[/TD]
[TD]0/3[/TD]
[TD]6/5[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Nothing is getting highlighted green when I input his formula for conditional formatting.. Here is what the table looks like. I pasted this formula =OR(A1="1/3",A1="3/3",A1="10/25")
It doesn't look like any of those entries are in cell A1.

What you want to do is first select the ENTIRE range that you apply the Conditional Formatting to.
Then, write the formula as it pertains to the very FIRST cell in your selection. Excel will adjust it for the rest.

So change all those "A1" references to the address of the first cell in your selected range.
If you are selecting cells D2:H3, then write:
Code:
[COLOR=#333333]=OR([/COLOR][COLOR=#ff0000]D2[/COLOR][COLOR=#333333]="1/3",[/COLOR][COLOR=#ff0000]D2[/COLOR][COLOR=#333333]="3/3",[/COLOR][COLOR=#ff0000]D2[/COLOR][COLOR=#333333]="10/25")[/COLOR]
 
Upvote 0
It doesn't look like any of those entries are in cell A1.

What you want to do is first select the ENTIRE range that you apply the Conditional Formatting to.
Then, write the formula as it pertains to the very FIRST cell in your selection. Excel will adjust it for the rest.

So change all those "A1" references to the address of the first cell in your selected range.
If you are selecting cells D2:H3, then write:
Code:
[COLOR=#333333]=OR([/COLOR][COLOR=#ff0000]D2[/COLOR][COLOR=#333333]="1/3",[/COLOR][COLOR=#ff0000]D2[/COLOR][COLOR=#333333]="3/3",[/COLOR][COLOR=#ff0000]D2[/COLOR][COLOR=#333333]="10/25")[/COLOR]

For crying out loud, finally I got it. Thank you so much, I've been driving myself crazy for two days messing with formulas.
 
Upvote 0
You are welcome!

Yep, your formula needs to be "in synch" with the range you selected when you applied the formula. If it ever seems to be highlighting the wrong cells (or sometime none at all), this is very often the culprit!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

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