Excel

TheSmallman.com

an XL ideas Lab

Dashboards VBA
  • Home
  • Dashboards
    • Tips & Tricks
    • Charts
    • Modelling
    • Infographics
    • VBA
  • Shop Dashboards
    • Power Pivot a User Guide
    • Excel Dashboard Course
    • Advanced Dashboard Course
    • Financial Modelling Course
    • Excel VBA Course
  • Blog
  • About
Menu

Excel Dashboards VBA

Street Address
City, State, Zip
Phone Number
an XL ideas Lab

Your Custom Text Here

Excel Dashboards VBA

  • Home
  • Dashboards
  • Excel Tips
    • Tips & Tricks
    • Charts
    • Modelling
    • Infographics
    • VBA
  • Shop Dashboards
  • PowerPivot
    • Power Pivot a User Guide
  • Courses
    • Excel Dashboard Course
    • Advanced Dashboard Course
    • Financial Modelling Course
    • Excel VBA Course
  • Blog
  • About

Conditional Formatting with Format Cell

February 26, 2017 Marcus Small
Excel Colour Cell Text

In Excel you don't need to be bound by conditional formatting to colour a cell in the format you wish.  For example, you may wish to colour the format of a cell in the Format Cell dialog, in the process you may well just be making your spreadsheet run a little quicker.  Using conditional formatting to do the same task can slow the smooth operation of a file on occasion.  Conditional formatting is volatile by nature meaning it needs more horse power to run.  Setting the format "in cell" will use less resource and make your spreadsheet run faster.  All good :)

The following YouTube video takes you through a few examples.

Format Cells with Colour.xlsx

The following formula with example says if the cells value is greater than zero then the text will appear as green(with a plus + sign before hand), otherwise it will appear as red in brackets.

Excel colour background

[Green][>0]+0.0%;[Red](0.0%)

You may wish to add variations to this condition such as adding a plus sign and changing the colour - here in blue.

Format Cell in Excel

[Blue][>0]+0.0%;[Red](0.0%)

While here is yet another example in magenta.

Format Excel cells colour

 

[Magenta][>0]+0.0%;[Red](0.0%)

 

While the following uses Cyan.

Excel Format Cell

[Cyan][>0]+0.0%;[Red](0.0%)

 

Create the Formatting

The set up occurs in the format cells section.  Right click the cell - Format Cells.

Format Cells

Choose the Format Cells option from the list.

Format Cell Text

In the Type box paste any of the suggested formaula and then take your pick from the range of options we just created. 

Or you could add a bit more pizzas to your format by adding a shape.  The following is taken from the Aerial library. 

Excel Colour Cell

See how the formatting is different for positive and negative values.  The addition of a symbol is neat.  To left align the symbol I used a * wildcard symbol.  Incidentally to right align use the @ symbol.  Here is the formula used in the above example.

[Green][>0]●* 0.0%;[Red]●* (0.0%)

 

The following is the Excel file to show the workings.

Excel Colour Cell Text.xlsx

Tags Excel, Format, Cells, Font
← Life on the RoadExcel Dashboards Essential Updates →

Featured Posts

Excel Dashboards: Tracking a Crisis

Excel Dashboards: Tracking a Crisis
April 14, 2020

Recent Posts

Populating an Excel Table from a Range of Cells with VBA

Populating an Excel Table from a Range of Cells with VBA June 12, 2025

Fuzzy Distribution with Randbetween

Fuzzy Distribution with Randbetween May 21, 2025

Add Minimum and Maximum for Chart in Cells

Add Minimum and Maximum for Chart in Cells March 12, 2025

Inflation Over Multiple Years in a Single Cell

Inflation Over Multiple Years in a Single Cell January 10, 2025

Hubspot Dashboard

Hubspot Dashboard October 3, 2024

Monthly Dashboard With Supporting Metrics

Monthly Dashboard With Supporting Metrics September 25, 2024

Excel Show Missing Sheet Tabs

Excel Show Missing Sheet Tabs July 29, 2024

Run Macro Overnight Automatically

Run Macro Overnight Automatically June 24, 2024

Split File into Parts and Save to Directory

Split File into Parts and Save to Directory April 20, 2024

Most Popular Author

Most Popular Author December 14, 2023

 

Follow US:

 
 

MarcusSmall@thesmallman.com

 

TheSmallman.com - Making your small systems hum...
© Copyright 2013-2024 theSmallman.com All Rights Reserved.