Solved

Excel 2010:  Conditional Statement that Increases Font Size

Posted on 2013-01-31
6
274 Views
Last Modified: 2013-02-04
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
Comment
Question by:itsmevic
  • 3
  • 2
6 Comments
 
LVL 26

Expert Comment

by:redmondb
ID: 38842023
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
 

Author Comment

by:itsmevic
ID: 38844484
Hi Brian, for my scenario it would be better if it were just ran manually when needed.
0
 
LVL 26

Accepted Solution

by:
redmondb earned 250 total points
ID: 38844562
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 14

Assisted Solution

by:Faustulus
Faustulus earned 250 total points
ID: 38849362
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
 

Author Closing Comment

by:itsmevic
ID: 38852034
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
 
LVL 26

Expert Comment

by:redmondb
ID: 38852165
Thanks, itsmevic.
0

Featured Post

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micr…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question