Conditional Format "ending with..."

wisdomprofits

New Member
Joined
Aug 23, 2011
Messages
2
I need to add some conditional formatting so that numbers/text in a column, ending with 30 and 60, get highlighted with different colors. (30's with green, 60's with orange). I'm assuming I would contruct one formula for each color.
How do I construct the formulas?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
You could use something like this (assuming the cell you are interested in is A1)

RIGHT(A1,2)="30"

or

RIGHT(A1,2)="60"
 
Upvote 0
Forgive me. I'm an excel newbie...

I'm trying to format all the cells in column B in this exercise.

Would I select "Conditional Formatting", then select "Highlight Cell Rules", then select "Equal to..", and then enter the formula in the text box?

I tried the formula you suggested and nothing happened...I'm guessing I did something wrong. Thank you for you help!
 
Upvote 0
I need to add some conditional formatting so that numbers/text in a column, ending with 30 and 60, get highlighted with different colors. (30's with green, 60's with orange). I'm assuming I would contruct one formula for each color.
How do I construct the formulas?
What kind of numbers are these? Are they all integers (whole numbers)?

Can you post several examples?

Also, what version of Excel are you using?
 
Upvote 0
First Highlight your entire column of data containing the 30 or 60.

Then select conditional formatting.

I usually choose new rule

Then "Use a formula to determine which cells to format"

Make sure you put an = sign to the left of the formula.

change d1 below to the first cell in your column or range

=RIGHT(D1,2)="30"
choose formating you want click oka and then apply.

repeat for
=RIGHT(D1,2)="60"

Steve=True
www.exceldashboardtemplates.com
 
Upvote 0
Rather than using string functions with numbers (which might cause problems)
you could use = (MOD(D1, 100)=30) and =(MOD(D1,100)=60)
 
Upvote 0

Forum statistics

Threads
1,224,537
Messages
6,179,408
Members
452,912
Latest member
alicemil

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