How to make a slash header in an Excel table: insert and enter text
Explain how to make a slash in an Excel table: draw a slash header in the cell, and then arrange the text on both sides to the corresponding position. By the way, we distinguish between "drawing a slash" and "entering a slash character" and give a checklist.
Key points of this article
- The slash header is the border effect of the cell. It needs to be added in the border setting of the cell format. If you directly enter "/", you will only get one character.
- Before drawing the diagonal line, increase the row height and column width so that there is room for the text on both sides, otherwise they will overlap each other.
- The two paragraphs of text on the upper right and lower left are positioned by line breaks and spaces. Use Alt+Enter for line breaks, and the text position is fine-tuned by spaces.
- The direction in which the diagonal line is drawn depends on the semantics of the header. Usually row items are written in the upper left and column items are written in the lower right.
- After the table is translated or converted into PDF, check the positions of the slashes and text item by item, and do not just look at the screen display.
Many people will encounter the same problem when making grade tables, course schedules or expense summary tables: the cell in the upper left corner of the table needs to draw a slash, writing "project" on one side and "month" on the other side, but they don't know where to do it. Most people who search for "How to create a slash in Excel" want to draw this line in the table header and separate the two paragraphs of text.
This article is written for ordinary office workers and students who need to make slash headers. After reading this, you'll be able to draw slashes in Excel, arrange text on either side of the slash, and know what to check when you're done. The article will also explain the difference between "drawing a slash" and "entering a slash character" to avoid going in the wrong direction.
How to create slash in Excel table? One sentence conclusion
The slash header is the border effect of the cell, not a character. The correct way is to first add a slash border in the cell format, and then enter and position the two paragraphs of text. The table below lists common situations and recommended practices.
| your situation | Recommended practices | reason |
|---|---|---|
| I just want to draw a slash in one cell | Format cells and add slashes to borders | The slash follows the cell and will not be misplaced when adjusting the rows and columns. |
| You need to write two paragraphs of text on both sides of the slash. | After drawing the slash, use Alt+Enter to break the line, and then use spaces to adjust the position. | Text can only be positioned by line breaks and spaces, there is no separate text box |
| Improper slash angle or position | Draw manually with a straight shape, overlaid on the cell | The shape can be dragged anywhere but will not move with the cells, making it suitable for one-time tables |
| The table needs to be reused multiple times or converted into formats | Prefer cell borders over shapes | Cell borders are more stable when copying, sorting and exporting |
| I only want to enter the "/" character | Enter the slash directly without drawing a line | The characters belong to text and will not form header effects. |
Before you start: Confirm these points first
Before you start, think clearly about what the header wants to express, and then decide what preparations to make before drawing the line. The following points can reduce rework.
- Confirm the semantics of slashes: row items (such as "project") are usually written in the upper left, and column items (such as "month") are written in the lower right. Only when the direction is clearly thought out can the text be arranged easily.
- Confirm whether the cells are merged: The slash effect of merged cells may not meet expectations. It is recommended to cancel the merge first and then draw the slash.
- Increase row height and column width: Two paragraphs of text should be placed on both sides of the slash. The default row height and column width are usually not enough, and the text will be cropped or suppressed.
- Confirm text length: Both paragraphs should be as short as possible. Words like "project" and "month" are easier to align than whole sentences.
- Confirm the purpose of the form: If the form is to be printed, converted to PDF or translated, the location must be checked separately later, see below.
Steps to draw a slash in the header cell in Excel
- Open the Excel table, select the cells that require a slash header, and increase the row height and column width to allow two paragraphs of text to fit in.
- Right-click on the selected cell, open the cell formatting settings, and switch to the border-related options page.
- Select a thin solid line in the line style and keep the color as default or choose light gray to avoid being too thick after printing.
- In the border preview area, click the slash button from the upper left to the lower right (or from the lower left to the upper right), and a slash will appear in the preview. Just select the direction according to the semantics of the header.
- Confirm the settings and close the dialog box, return to the table, and slashes will appear in the cells.
- Double-click the cell to enter the editing state. First enter the text in the upper right corner, then press Alt+Enter to change the line, and then enter the text in the lower left corner.
- Use spaces to adjust the position: add a space in front of the text in the upper right corner and push it to the right; add a space or line break in front of the text in the lower left corner and push it to the left. Adjust it repeatedly until the two paragraphs of text fall on both sides of the slash.
If the slash direction in step 4 does not meet the requirements, you can go back to the cell format settings to cancel the slash and reselect the direction without deleting the entire cell.
Check each item after completion
After the slashes and text have been placed, it is recommended to check the following checklist, especially if the form is to be printed or sent to others.
| Check items | How to see | What to do if there is a problem |
|---|---|---|
| diagonal direction | Whether it conforms to the semantics of "row items are in the upper left and column items are in the lower right" | Reopen the cell format and select another slash |
| Is the text suppressed? | Double-click the cell to see if both paragraphs are fully displayed | Increase row height or column width, or shorten text |
| The placement of two text paragraphs | Check if the text at the top right is aligned to the right, and the text at the bottom left is aligned to the left | Use spaces to continue fine-tuning; do not use merged cells instead |
| Print results | Use the print preview to check if the slashes and text are clear | If the lines are too thick, replace them with thinner lines; if the font size is too large, reduce them appropriately |
| Converted or translated tables | If you want to translate or convert the table to PDF, check if the table header is misaligned | Compare item by item with the original table, and manually correct any deviations |
If your table needs to be translated into other languages, OmniDoc can translate Excel (.xlsx) files, preserving the table structure and layout as much as possible. After translation, it is still recommended to check the diagonal header against the original table, because once two paragraphs become longer, you may need to readjust the spaces and line height.
📊 Core Comparison
In practice, there are two common approaches: cell diagonal lines and manually drawn straight lines. Both have their own applicable scenarios, and you can choose according to the table below.
| Comparison items | Cell diagonal lines | Straight shape |
|---|---|---|
| Relationship with the cell | It belongs to the cell itself, moving along with the row and column | Independent of tables, overlaying on cells |
| Copy, sort, export | The format is usually consistent | They are prone to misalignment and need to be adjusted one by one |
| Angle and length | You can only choose two fixed directions | It can be dragged and rotated at will |
| Suitable scenarios | Formal forms and templates that need to be used multiple times | Temporary tables and headers requiring special angles |
🎯 Which method suits you?
If the table is repeatedly modified, copied, or translated, prioritize using cell diagonal lines for stable structure and easier maintenance later. If it's just a one-time draft or if the diagonal line needs a special angle, you can temporarily draw straight lines, but remember to align the shape with the text before finalizing.
❓ Frequently Asked Questions (FAQ)
1. How do you input a slash in a table? Can you just type "/" directly?
Directly entering "/" will only get one character, and won't create the slashed line effect in the table header. To draw a slash, you need to add it in the border settings of cell formatting.
2. How do you type diagonal lines in an Excel spreadsheet, and can shortcut keys do it?
Excel does not have dedicated slash shortcuts; usually, you need to set it through cell formatting. If you only need a visual diagonal line, you can also manually draw it with a straight line shape.
3. How to insert diagonal lines in an Excel table, and what are the differences between shapes and borders?
The border diagonal line belongs to the cell itself, making it more stable when copying, sorting, and exporting; Shapes can be freely dragged but do not move with the cells. Formal forms should prioritize borders, while temporary forms can consider shapes.
4. How do you break lines for text on both sides of the slash?
In cell editing mode, enter the first paragraph of text, then press Alt+Enter to break the line, then enter the second paragraph. For more details on line breaks, refer to the dedicated line breaks within Excel cells.
5. Can slash headers still be used in Word or PDF?
Yes, but the approach is different. If you want to put tables into a Word document, it is recommended to set separate headers in Word. OmniDoc's desktop client can edit PDFs, export to Word and Excel, and after exporting, you also need to check if the table header is misaligned.
📝 Summary
How to use slashes in an Excel table? The key is to first add a diagonal border in the cell format, then use Alt+Enter to break lines and position two paragraphs of text. After adjusting the row height and column width, after finishing, check the print quality and conversion results according to the bill of quantities, and the header will be clear and easy to read.


