No—not as two independently filled halves of one cell. Excel gives a cell one overall fill color, but you can create the appearance of a two-color split by placing two colored triangle shapes over it; for a table that needs real separate data areas, use adjacent cells instead.
What Excel means by a cell and a fill color
An Excel cell is the intersection of a row and a column. Its fill is a formatting property applied to the whole cell, not a collection of smaller regions. The Format Cells dialog has no command that divides a cell into two parts and assigns each part its own solid fill. Changing the fill color therefore affects the entire cell.
This is different from splitting text. You can put a line break inside a cell, or divide text into multiple columns with Text to Columns, but those actions do not create separate colored areas inside the original cell. Nor does Merge & Center split a cell: merging combines a selected range into one larger cell, and the Split Cells command people may know from Word tables is not an Excel worksheet feature.
If your goal is a visual effect, shapes and fill patterns can help. If your goal is to store two values, sort them separately, or apply formulas to each half, you need separate cells. Choosing between those goals first prevents a decorative workaround from becoming a data-management problem later.
Create a diagonal two-color effect with shapes
For a header divided diagonally into two colors, use two right-triangle shapes. In Excel for Microsoft 365 on Windows, the basic approach is:
- Resize the worksheet row and column so the target cell is close to the final size you want.
- Select Insert > Shapes > Right Triangle, then draw the triangle over the cell. Use Shape Format > Shape Fill to choose its color, and Shape Format > Shape Outline > No Outline to remove its border.
- Copy the triangle and paste a second copy. Resize and position the copy so both triangles fit the same cell-sized square.
- With the second triangle selected, use Shape Format > Rotate and choose Flip Vertical or Flip Horizontal as appropriate. The two right triangles should meet along a diagonal and cover opposite halves of the cell. If they overlap or leave a gap, adjust their size or orientation.
The default orientation of a right triangle can vary with how it is drawn, so check the result rather than assuming a particular flip will always be correct. Zooming in makes small alignment gaps easier to spot. You can also temporarily set a contrasting outline while positioning the shapes, then remove the outlines when the edges line up.
Shapes sit above worksheet cells. They are not part of the cell fill, and they can cover cell content. If you need the shapes to stay aligned when the grid changes, select each shape and open the Format Shape pane. Under Size & Properties > Properties, choose Move and size with cells. This helps when rows or columns are resized, though it is still sensible to review the layout after changing the sheet.
Add labels without confusing them with cell data
A cell still holds one value, even when two colored shapes appear over it. For a simple visual header, you can put a short label in the cell and adjust alignment, but one cell value cannot be independently positioned as two separate text items in the two triangles. A cleaner design is to add two text boxes using Insert > Text Box, place one over each colored half, and set each text box to have no fill and no outline.
Text boxes are separate objects, not additional cell values. That distinction matters if the labels need to feed formulas, filters, or exports. For example, a diagonal header that shows “Month” and “Region” may look clear on a printed report, but Excel does not treat those words as two column headings. A data table should instead have distinct header cells for Month and Region, with the decorative graphic used only if it helps readers.
If cell text or other shapes are hidden behind a triangle, use the Arrange controls on the Shape Format tab to change object order, or open Home > Find & Select > Selection Pane to select overlapping objects. The Selection Pane is especially helpful when a text box is difficult to click directly.
Use adjacent cells when the split needs to be real
When the two areas represent different categories or values, the most dependable solution is to use two cells. For example, instead of making one header cell say both “Actual” and “Budget” in colored halves, put Actual and Budget in neighboring cells, fill each cell with its own color, and adjust the column widths and borders to make the layout compact.
You can make adjacent cells look like one visual block by applying matching borders, removing the shared interior border, or merging cells elsewhere in the layout where appropriate. Avoid merging cells across a data table that people need to sort or filter: merged cells can make those operations and selecting consistent ranges more awkward. Separate, clearly named columns generally work better for analysis.
There is also a useful distinction between “split the cell” and “split the contents.” If a cell contains a combined value such as East-West, Data > Text to Columns can divide that text into neighboring columns using a delimiter. That changes the arrangement of data; it does not create two differently colored halves of the source cell. Make a copy of the original data first if you need to preserve it.
What diagonal borders and patterns can—and cannot—do
A diagonal border can suggest that a cell is divided, but it does not color either side separately. To add one, press Ctrl+1 to open Format Cells, choose the Border tab, and select a diagonal border option. On a Mac, Command+1 opens Format Cells in Excel; the dialog layout may differ slightly. A diagonal line can be useful in a corner header, but it is only a line over a single-color fill.
Excel also offers patterned fills. Open Format Cells with Ctrl+1 on Windows, choose the Fill tab, then select a Pattern Style and Pattern Color. The pattern uses a foreground pattern color and a background color, so it can display two colors in one cell. However, the result is a repeating texture—such as dots or lines—not a clean division into two solid halves. Patterns are better for highlighting categories or making a legend than for labeling two sides of a diagonal header.
Do not confuse a pattern with a gradient. Excel’s ordinary cell-fill controls do not provide a simple two-solid-color split or a cell gradient that behaves like two separately editable regions. Shape fills offer more visual options, but they remain objects layered over the grid rather than native portions of a cell.
Choose the approach that fits the workbook
- Use two adjacent cells when each side represents a value or field that should be sorted, filtered, calculated, or exported.
- Use two triangle shapes when the split is a decorative header or diagram and a diagonal division is important to the design.
- Use a diagonal border when a line alone is enough to distinguish two labels or indicate a corner heading.
- Use a patterned fill when a textured two-color treatment is acceptable and you do not need two solid halves.
- Use a single fill color when the workbook must remain easy to maintain, print, and edit across different Excel versions or devices.
For a shared workbook, consider whether recipients will edit it in Excel for the web, on a Mac, or in another spreadsheet program. Basic cell formatting is generally more portable than a precisely aligned group of shapes. Excel for the web may not expose every desktop shape-formatting control in the same place, so use desktop Excel when exact placement is important and check the final appearance in the environment where the file will be used.
Common problems and ways to avoid them
The triangles do not meet cleanly: Make sure both shapes have the same dimensions and occupy the same cell-sized area. Use zoom and the Selection Pane to select the correct object. Small gaps can become more noticeable when printed, so inspect Print Preview as well as the worksheet view.
The shapes move when the sheet changes: Shapes are anchored to the worksheet, but their behavior depends on the object properties. Set them to Move and size with cells if they should follow row and column resizing. If a cell is moved, hidden, or resized after the layout is finished, check the shapes again.
The label disappears: A shape may cover the cell text or a text box. Change the stacking order, or keep the labels in text boxes above the triangles. Remember that labels in text boxes are visual annotations; they are not stored in the cell and will not behave like worksheet data.
The design prints differently: Page scaling, row heights, column widths, and printer rendering can affect the appearance of small shapes. Review File > Print and adjust the page layout or object placement if needed. Avoid making the diagonal line or labels so small that they become hard to read at the intended print size.
The split looks right but the data is awkward: A decorative cell cannot hold two independently usable values. If users need to filter by either label, create separate columns and keep any two-color design as an optional visual aid, not as the data structure itself.
Frequently Asked Questions
Can I split one Excel cell diagonally into two colors?
No, not with the cell’s native fill setting. You can imitate a diagonal split by overlaying two colored right-triangle shapes, or use adjacent cells if the two sections need to contain separate data.
Can I give half a cell one fill color and half another without shapes?
Not as two solid halves. A patterned fill can combine a pattern color and a background color, but it repeats a texture rather than dividing the cell into two clean regions.
Can a cell contain two headings in a diagonal header?
A cell stores one value. You can use text boxes for two visually positioned labels, but those labels are separate objects. For usable table headings, put each heading in its own cell.
Does Excel have a Split Cells command?
Excel does not have Word’s table-style Split Cells command for dividing one worksheet cell into smaller cells. Use neighboring worksheet cells, or use Text to Columns if you need to separate a cell’s contents into columns.
Will the two-color shape effect work in Excel for Mac or the web?
Shapes are available in Excel for Mac, though some ribbon and formatting details differ from Windows. For Excel for the web, available shape controls can vary; check the workbook in the target version, or use adjacent cells for the most robust layout.
Related
- Examples of Ratings in Excel: Scores, Stars, and Rules
- Can Excel Read Outlook Emails, Contacts, and Calendar?
- Power Query Overflow Errors: Causes and Fixes
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Add Page Numbers in Word Documents, Step by StepTo add page numbers in Word for Microsoft 365 on Windows, open the document and select Insert >…
- How to Schedule an Email in Outlook to Send at a Later TimeTo schedule an email in Outlook, write your message, open the menu beside Send, choose Schedule send, and…
- Outlook Contacts: Export and Import GuideTo export or import Outlook contacts, use a CSV file: in classic Outlook for Windows, go to File…
- Change Google Sheets Date Format to AustraliaTo use Australian dates in Google Sheets, open the spreadsheet in a browser and choose File > Settings.…
- Can You Sort by Date in Google Sheets? Steps and TipsYes. In Google Sheets in a web browser, select your table and choose Data > Sort range >…
- Excel Equivalent of Google Sheets QUERY: Best OptionsThe closest Excel equivalent to Google Sheets’ QUERY function is a combination of dynamic-array functions such as FILTER,…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.