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

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
=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")

RSIDHire DateHire AuthorityMY 17MY 16MY 15MY 14MY 13
1/35/917/1620/183/3
17/1716/140/00/36/5

<tbody>
</tbody>
 
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,214,386
Messages
6,119,212
Members
448,874
Latest member
b1step2far

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