Excel Formatting Puzzle

mccornack

New Member
Joined
Sep 26, 2011
Messages
6
Hello everybody, I've come with my second of three questions for the evening. This one involves formatting cells of text based on the number value in the cell below it. The higher the number, the larger I want the font, and the darker I want the color. If the number is zero, I want no change to the text.

If we have the following cells (please imagine this as 8 different cells)

the quick brown fox
0 1 3 2

we would get something to the effect of:


the quick brown fox

For the sake of my project, I need separate code for a red macro and a green macro. However, if the meat of the code is there I'm sure I can tweak it to fix the color scheme. Any help is greatly appreciated! Please let me know if you have any questions. Thank you!!
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Do you really want a macro? Why not just use conditional formatting. (If you have excel 2007 or 2010)
 
Upvote 0
Do you really want a macro? Why not just use conditional formatting. (If you have excel 2007 or 2010)

I'm not sure if I want a macro, I took a look at conditional formatting, but wasn't convinced I could pull off what I wanted.

What is the range of numbers? How much should the font size increase with each next higher number?

The range of numbers goes from 0-9. Here's the number-value/font size break down I need:
0 8
1-2 10
3-4 12
5-6 14
7+ 16

Thanks so much for your help with this, please let me know if you need any more info!
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,678
Members
452,937
Latest member
Bhg1984

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