A Font Macro

CARBOB

Well-known Member
Joined
Jun 6, 2005
Messages
1,870
I use the following spreadsheet to keep track of lottery drawings, which I input every morning. My question is this. Is there a way to have the number,if it is a double digit number to automatic change the font to a different color than black? The numbers in red are double digit numbers.Is it possible? I think, I need a macro because the spreadsheet is quite large.Thanks

Carbob
MY FIRST MACRO.xls
ABCDEFG
711/17/05464208786286519002
811/16/05649904590377959929
911/15/05657307688184696658
1011/14/05193718958405995928
Sheet3
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Format all of the cells with black colored font. Then, conditionally format (format --> conditionally format) B7 with formula is: =OR(LEFT(B7)=MID(B7,2,1),MID(B7,2,1)=RIGHT(B7),LEFT(B7)=RIGHT(B7)), click on the format button within the conditional format declaration, and set the font color to red. Copy and paste (edit --> paste special --> formats) the format from B7 to the other cells.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,551
Members
449,088
Latest member
davidcom

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