• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 295
  • Last Modified:

Excel 2010: Conditional Statement that Increases Font Size

I need to create a conditional statement that will increase the font size of the cells it finds the keyword in.

For example, I'd like to look for all words that match "(Subject)" if it finds it, it highlights that cell and boost the font up 2 or 3 pitch higher.  So if the font is presently at Arial 11, it would boost it up to Arial 13 or 14.  Is this possible?
0
itsmevic
Asked:
itsmevic
  • 3
  • 2
2 Solutions
 
redmondbCommented:
itsmevic,

I'm afraid not. However this could be done by a macro. If you want to go down that route then do you want the updating to happen automatically or only when you explicitly run the macro?

Thanks,
Brian.
0
 
itsmevicAuthor Commented:
Hi Brian, for my scenario it would be better if it were just ran manually when needed.
0
 
redmondbCommented:
Sure,  itsmevic. Number of questions, please.

(1) Crucial question - what happens if the user runs the macro a second time? Is the font size size now 17? Alternatively, we can have two defined sizes - one for without string (say 11) and one for with (say 14).

(2) How do you want the cell to be highlighted?

(3) What range should be checked?

(4) Do you want each row's height changed to reflect its monitored cell's size?

(5) Is it possible that a string may have been added to the cell and subsequently removed? (So we need code to reduce font size also.)

Thanks,
Brian.
0
Restore individual SQL databases with ease

Veeam Explorer for Microsoft SQL Server delivers an easy-to-use, wizard-driven interface for restoring your databases from a backup. No expert SQL background required. Web interface provides a complete view of all available SQL databases to simplify the recovery of lost database

 
FaustulusCommented:
Did you consider that changing the font size - in fact, even making it bold! - also changes the text width? The newly resized text may require more space which can either lead to incomplete display or automatic change of column width. Then, as Brian is pointing out, you may have to reverse the procedure.
For these reasons I have always abstained from implementing such ideas whenever they struck me as a good solution in the past. In fact, change of fore and back colors are powerful tools for drawing attention, and you can supplement them by making the font bold where the increase in size can be accommodated in the standard column width (just make it a little larger than necessary for non-bold type) if the words to be emboldened aren't too long.
0
 
itsmevicAuthor Commented:
Thanks guys!  Makes sense, rather than change font size and risk how the value appears in the cell, I'll just stick to the background color and the indicator.  Thanks again!
0
 
redmondbCommented:
Thanks, itsmevic.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now