How to Fill a Cell with Two Colors in Google Sheets – Easy Guide

Jeffrey Jun 02, 2026
How to color cells and alternate row color in Google Sheets
How to color cells and alternate row color in Google Sheets

Applying a two-color fill to a single cell in Google Sheets is a common request, but the platform does not offer a direct one-click option for this specific effect. Unlike a standard solid fill, which applies one color uniformly, creating a dual-tone cell requires a workaround that tricks the system into displaying two distinct colors within the same boundary. The good news is that this can be achieved using either conditional formatting rules or by manipulating gridlines and cell borders, depending on your exact needs.

How to color cells and alternate row color in Google Sheets
How to color cells and alternate row color in Google Sheets

Method 1: Using Conditional Splitting

How to change Cell Color in Google Sheets
How to change Cell Color in Google Sheets

The most flexible method involves splitting the target cell into a 2x2 grid of invisible cells and applying color to each quadrant. This approach gives you precise control over where the colors meet, allowing for diagonal or even quadrant-specific shading. The key is to remove the borders between the sub-cells so the dividers disappear, making the larger cell appear as a single, unified element with a complex fill.

Setting Up the Grid

How to add a Calendar into a cell in Google Sheets #googlesheets #tutorial #spreadsheet
How to add a Calendar into a cell in Google Sheets #googlesheets #tutorial #spreadsheet

To begin, you will merge four adjacent cells to act as one large cell. Select a 2x2 block of cells, right-click, and choose "Merge cells." Next, navigate to the toolbar border settings and set all four borders of the merged block to white. This effectively hides the internal gridlines, creating the illusion of a single blank canvas ready for your two-color fill.

With the block merged and borders cleared, select the top-left sub-cell within your invisible grid. Apply your first color using the fill color tool. Then, move to the bottom-right sub-cell and apply your second color. Because the borders are white, the two colored squares sit adjacent to each other without visual interruption, resulting in a clean diagonal split across the entire merged cell.

How to Highlight Duplicates in Google Sheets
How to Highlight Duplicates in Google Sheets

Method 2: The Image Fill Trick

If you require a more complex pattern—such as a gradient or a specific texture—the conditional formatting route might be too rigid. A highly effective alternative involves using a tiny image as the fill source. By creating a 2x1 pixel image that contains your two desired colors, you can stretch this image across the cell to simulate a two-color background.

Generating the Image Source

6 Crazy Google Sheets Formulas You Should Know
6 Crazy Google Sheets Formulas You Should Know

Open any basic image editor, or even the drawing tools within Google Docs, and create a 2-pixel wide image. Color the left pixel with your primary shade and the right pixel with your secondary shade. Save this as a PNG file. Back in your Google Sheet, select the target cell, click on "Format," choose "Conditional formatting," and set a custom formula that applies to the desired range. In the formatting style section, select "Image" and upload your tiny 2-pixel file. The image will tile and stretch to fill the cell, creating a seamless two-color background that looks like a native fill.

Managing Visual Consistency

It is important to note that these visual tricks can sometimes behave unexpectedly during resizing or when the sheet is viewed on different devices. When you drag the corner of a cell that uses the image fill method, the pixelation of the 2x1 image might become visible if the cell is stretched too thin. Similarly, the conditional formatting grid method relies on the accuracy of the white border; if a border style is accidentally reapplied, the seamless effect will break, revealing unwanted lines.

Google Sheets For Beginners - Lock Top Row
Google Sheets For Beginners - Lock Top Row

To ensure your formatting remains stable, avoid manually adjusting the height of rows within the merged block. Instead, set the row height explicitly in the settings to match the column width. This maintains the perfect square ratio required for the quadrants or image to align correctly. Consistent dimensions are crucial for maintaining the professional appearance of the dual-color cell.

Alternative Solution: Border Overlay

How to Color Code Google Drive Folders
How to Color Code Google Drive Folders
Facebook
Facebook
Google Sheets Theme Colour & Example design – Save for Later!
Google Sheets Theme Colour & Example design – Save for Later!
Google Calendar Color Scheme Purple, Lavender Calendar, Google Calendar Color Palette, Calender Design, Hex Color Palette, Color Palette Challenge, Banner Letters, Planner Tips, Custom Ipad
Google Calendar Color Scheme Purple, Lavender Calendar, Google Calendar Color Palette, Calender Design, Hex Color Palette, Color Palette Challenge, Banner Letters, Planner Tips, Custom Ipad
15 Fantastic Google Sheets Templates
15 Fantastic Google Sheets Templates
a green and white calendar with the words fresh start on it
a green and white calendar with the words fresh start on it
Google Slides Custom Colors
Google Slides Custom Colors
Habit Tracker Spreadsheet – Build Better Habits with Google Sheets & Excel
Habit Tracker Spreadsheet – Build Better Habits with Google Sheets & Excel
How to Sort Columns Like a Pro in Google Sheets
How to Sort Columns Like a Pro in Google Sheets
Bee Mine: A Valentine Pixel Art Activity
Bee Mine: A Valentine Pixel Art Activity
How to Use the ArrayFormula Function in Google Sheets
How to Use the ArrayFormula Function in Google Sheets
a poster with the words cotton candy written in different languages and numbers, along with pictures of cakes
a poster with the words cotton candy written in different languages and numbers, along with pictures of cakes
Google Sheets Weekly Schedule Template (Free Download)
Google Sheets Weekly Schedule Template (Free Download)
Computer Creations
Computer Creations
the peach blossom calendar is displayed in front of a glass with an orange slice on it
the peach blossom calendar is displayed in front of a glass with an orange slice on it
Google Sheets Tips and Tricks!
Google Sheets Tips and Tricks!
Google Classroom - M&M Spreadsheet and Chart | K-5 Technology Lab
Google Classroom - M&M Spreadsheet and Chart | K-5 Technology Lab
mood board
mood board
Saksham Dewan | Excel Insider | Google Sheets shortcuts you can't miss! 𝙇𝙄𝙆𝙀 and 𝙁𝙊𝙇𝙇𝙊𝙒 @exce...
Saksham Dewan | Excel Insider | Google Sheets shortcuts you can't miss! 𝙇𝙄𝙆𝙀 and 𝙁𝙊𝙇𝙇𝙊𝙒 @exce...
Coastal Girl Google Calendar Hex Codes | Beach Google Calendar Hex Codes | Clean Girl Aesthetic
Coastal Girl Google Calendar Hex Codes | Beach Google Calendar Hex Codes | Clean Girl Aesthetic

For users who need a simpler, less complex solution, Google Sheets allows you to simulate a two-color fill using thick borders. This method is best suited for cells where the text content is minimal or non-existent, such as in dashboard headers or status indicators. You create a standard single-color cell and then overlay a second color using a colored border that is significantly wider than usual.

To execute this, apply your base color to the cell. Then, access the border settings and add a border to the side you wish to represent the second color. Set the border width to the maximum available and change its color. For a right-side color effect, apply a thick border to the right edge; for a bottom effect, apply it to the bottom edge. While this does not technically fill the cell, the visual result is a convincing split that integrates seamlessly with other formatting.