A Font Macro

CARBOB

Well-known Member
Joined
Jun 6, 2005
Messages
1,866
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

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
8,053
Office Version
  1. 365
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.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,999
Messages
5,834,813
Members
430,323
Latest member
Regash

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
Top