Color-coding numbers in Google Sheets can greatly enhance readability and understanding of your data. This is particularly useful when dealing with positive and negative numbers. Here's how you can achieve this:

Google Sheets offers a simple way to color-code cells based on their values. You can use conditional formatting to apply different colors to positive and negative numbers. Let's dive into the process:

Understanding Conditional Formatting
Conditional formatting is a feature in Google Sheets that allows you to apply specific formatting to cells based on their values. This could be text color, fill color, or even icons.

In our case, we'll use conditional formatting to apply different fill colors to positive and negative numbers:
Applying Conditional Formatting

To start, select the range of cells containing the numbers you want to color-code. Then, click on "Format" in the menu, hover over "Conditional formatting", and select "Format cells if...", as shown below:
Setting Up Rules
In the "Format cells if..." dialog box, you'll set up rules to determine which cells should be formatted and how. Here's how to set up rules for positive and negative numbers:

- Under the 'Format cells if...' dropdown, choose 'Cell value is'.
- In the 'Value or formula' field, enter "<0" for negative numbers. This will select all cells with values less than zero.
- Choose the formatting style you want (e.g., fill color) and select your preferred color.
- Click 'Done'.
Repeat these steps to create another rule for positive numbers. In the 'Value or formula' field, enter ">0" for positive numbers:
- Click on 'Add another rule'.
- Under the 'Format cells if...' dropdown, choose 'Cell value is'.
- In the 'Value or formula' field, enter ">0".
- Choose your formatting style and color for positive numbers.
- Click 'Done'.

Adjusting Rules for Zero
If you want to color-code zero separately, you can add another rule. Here's how:




















Creating a Rule for Zero
Follow the same steps as above, but this time, in the 'Value or formula' field, enter "=0". This will select all cells with a value of zero:
- Click on 'Add another rule'.
- Under the 'Format cells if...' dropdown, choose 'Cell value is'.
- In the 'Value or formula' field, enter "=0".
- Choose your formatting style and color for zero.
- Click 'Done'.
Now, your positive, negative, and zero values should be color-coded according to your chosen formatting. This makes your data much easier to read and understand.
Remember, you can always adjust the rules or formatting by clicking on the three dots (...) that appear when you select a cell with conditional formatting. This will open a menu where you can edit or delete rules.
Color-coding your numbers in Google Sheets is a powerful tool that can help you analyze and understand your data more effectively. So, go ahead and give it a try!