formulas
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Formulas

Formulas

resolvedResolved · Medium Priority · Version 2003

replyReply Wed 21 Oct 2009, 16:23Delegate Aimee said...

Aimee has attended:
Excel Advanced course

Formulas

How can you write a formula or macro to change the color of text in a cell if the math is incorrect. For instance if a number is negative or above a certain number and you want it to stand out in red.

For upcoming training course dates see: Pricing & availability

replyReply Fri 23 Oct 2009, 09:26Trainer Amanda said...

RE: Formulas

Hello Aimee

Thank you for your question and welcome to the forum.

I think you will be able to accomplish this using conditional formatting.

To apply conditional formatting:
1. Select the cells which you want the highlighting/colour to be applied to.
2. Go to Format - Conditional Formatting.
3. Set a condition, e.g. Cell Value is less than 0.
4. Click the Format button to create the formatting that will be applied if values in the selected cells if the criteria is met, e.g. select red colour on the Patterns tab. Click OK, and OK again to apply your condition to the selected cells.

Kind regards
Amanda

Thu 29 Oct 2009: Automatically marked as resolved.

 

Please browse our web site to find out more about
application development excel and other Microsoft training courses.

Excel tip:

Bracketed negative numbers

Often Excel users wish to display negative numbers in colour red and bracketed

Intstructions
Step1. Select Format > Cells menu options. Within Numbers tabsheet, select Category = Custom.
Step 2. Select a type such as #,##0;[Red]-#,##0;; that specifies a colour in square brackets.
Step 3. Amend as follows; #,##0;[Red](#,##0;;

Notes: Excel formatting featues are of the form
"Positive; Negative;Zero;Text" separated by semicolon.

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard