Skip to content

Formatting cells

Formatting changes how cells look: the font, the alignment, how numbers and dates are shown, borders and fill colours. It never changes the value in the cell, so sums and formulas use the full number.

Most formatting is on the Home tab, in the Font, Alignment, Number, Styles and Cells groups. All of it is also in the Format Cells dialog: press Ctrl+1, or right-click a cell and choose Format Cells….

The Format Cells dialog open on a kirana shop's stock list. The Number tab shows Category Currency, Sample ₹ 165.00, Decimal places 2, Thousands separator Indian: 12,34,567, Symbol ₹, Negative numbers -1234.10 and Digits 0123 Western.

Fonts, bold and colours

Select the cells, then use the Font group on the Home tab.

Control What it does Shortcut
Font list The typeface for the cells.
Size list The size, from 8 to 72 points. New cells use 11.
Increase Font Size The next size up in the list. Ctrl+Shift+>
Decrease Font Size The next size down. Ctrl+Shift+<
B Bold Bold on or off. Ctrl+B
I Italic Italic on or off. Ctrl+I
U Underline Underline on or off. Ctrl+U
Strikethrough A line through the text, on or off. Ctrl+5
Borders Lines round the cells (see below).
Fill Colour The cell's background colour.
Font Colour The colour of the text.

On a Mac, use ⌘ in place of Ctrl.

Fill and font colours

Click the paint pot or the letter A to use the colour shown in the bar under it. Click the small arrow beside it to choose another:

  • No Fill (for Fill Colour) or Automatic (for Font Colour) takes the colour off.
  • The swatches give 50 theme and standard colours.
  • More Colours… opens a colour picker for any colour.

The colour you pick becomes the one the button uses next time.

Borders

Click Borders in the Font group and choose a border for the selected cells:

Choice What it draws
Bottom Border, Top Border, Left Border, Right Border A line on that side of the selection.
No Border Takes all the borders off.
All Borders A line round every cell, as in a bill or a register.
Outside Borders A box round the whole selection.

The Border tab of Format Cells has the same choices: None, Outline, All, Top, Bottom, Left and Right. The border is applied when you click OK.

Alignment, wrapping and merging

Use the Alignment group on the Home tab.

Button What it does
Top Align, Middle Align, Bottom Align Where the text sits between the top and bottom of the cell. Cells are bottom-aligned at first.
Align Left, Center, Align Right Where the text sits across the cell. Click the same button again to go back to the general alignment: text on the left, numbers on the right.
Decrease Indent, Increase Indent Moves the text in from the left edge, one step at a time.
Wrap Text Shows long text on several lines inside the cell.
Merge & Center Joins the selected cells into one and centres the contents.

In Format Cells, the Alignment tab has Horizontal (General, Left, Center, Right), Vertical (Top, Center, Bottom), and the Wrap text and Merge cells tick boxes.

Note

Ganit doesn't turn text at an angle or write it upwards yet. There's no orientation setting.

Wrapping long text

  1. Select the cells, for example a column of addresses.
  2. Click Home ▸ Alignment ▸ Wrap Text.

The text breaks onto new lines at the column's edge. To start a new line at a place you choose, press Alt+Enter while typing. Ganit turns on Wrap Text for that cell by itself.

Merging cells for a heading

  1. Select the cells to join, for example A1:F1 above a table.
  2. Click Home ▸ Alignment ▸ Merge & Center.

Click the small arrow beside the button for the other choices:

Choice What it does
Merge & Center One cell from the whole selection, with the contents centred.
Merge Across Joins the cells in each row separately. Use it to make several wide rows at once.
Merge Cells One cell from the whole selection, without changing the alignment.
Unmerge Cells Splits a merged cell back into its cells.

If more than one of the cells has something in it, Ganit warns that merging keeps only the upper-left value and discards the others. Click OK to go ahead.

Clicking Merge & Center on a cell that is already merged unmerges it. You can't merge whole rows or columns.

Number formats

A number format decides how a number, an amount or a date is shown. The cell keeps the full value: 1234567.891 shown as ₹ 12,34,567.89 still adds up as 1234567.891.

The Number group

The list at the top of Home ▸ Number has the common formats. Here is how each shows the number 1234567.891:

In the list Shows
General 1234567.891
Number 1234567.89
Currency (₹) ₹ 12,34,567.89
Indian comma 12,34,567.89
Indian digits (१२,३४,५६७.००) १२,३४,५६७.८९
International comma 1,234,567.89
Short Date a date as 17/11/2026
Long Date a date as Tuesday, 17 November 2026
Time a time as 6:00:00 PM
Percentage 0.185 as 18.50%
Scientific 1.23E+06
Text the cell's contents exactly as typed

More Number Formats… at the bottom of the list opens Format Cells.

Under the list are five buttons:

Button What it does Shortcut
₹ (Rupee format) ₹ with lakh and crore commas: ₹ 12,34,567.00 Ctrl+Shift+$
% (Percent Style) 0.18 as 18% Ctrl+Shift+%
Comma Style Lakh and crore commas without ₹: 12,34,567.00
Increase Decimal One more digit after the decimal point.
Decrease Decimal One digit fewer after the decimal point.

More keys for number formats:

Keys Format
Ctrl+Shift+! International commas with two decimals: 1,234,567.00
Ctrl+Shift+# A date as 17-Nov-26
Ctrl+Shift+~ General

Note

Ctrl+Shift+! gives international commas (1,234,567.00), not lakh commas. For lakhs and crores, use the ₹ button, the Comma Style button or Ctrl+Shift+$.

The Number tab of Format Cells

Press Ctrl+1 and open the Number tab. Pick a Category on the left; the Sample box shows the selected cell's value in that format.

Category Settings
General No settings. Numbers show as typed, as far as the column's width allows.
Number Decimal places (0 to 10), Thousands separator, Negative numbers
Currency Decimal places, Thousands separator, Symbol, Negative numbers
Date Type: a list of date formats
Time Type: a list of time formats
Percentage Decimal places
Scientific Decimal places
Text No settings. The cell is treated as text, even when a number is typed in it.
Custom Type: a format code you write yourself

The choices in the lists:

  • Thousands separator: Indian: 12,34,567, International: 1,234,567, or (for Number only) None: 1234567.
  • Symbol (Currency): ₹, Rs., $ or None.
  • Negative numbers: -1234.10, -1234.10 in red, (1234.10), or (1234.10) in red.
  • Digits (every category): Western 0123, or the digits of Devanagari (Hindi, Marathi), Gujarati, Bengali, Gurmukhi, Odia, Tamil, Telugu, Kannada or Malayalam. With Devanagari, 1234567.891 shows as १२,३४,५६७.८९.

The Date list shows 13 November 2026 as:

Type Shows
dd/mm/yyyy 13/11/2026
dd-mm-yyyy 13-11-2026
d-mmm-yy 13-Nov-26
dd mmm yyyy 13 Nov 2026
d mmmm yyyy 13 November 2026
dddd, d mmmm yyyy Friday, 13 November 2026
mmm-yy Nov-26
yyyy-mm-dd 2026-11-13
mm/dd/yyyy 11/13/2026
dd/mm/yyyy hh:mm 13/11/2026 18:00

The Time list has h:mm, h:mm AM/PM, h🇲🇲ss, h🇲🇲ss AM/PM and hh:mm. 6 in the evening shows as 18:00, 6:00 PM, 18:00:00, 6:00:00 PM and 18:00.

For more on lakhs, crores, Indian digits and amounts in words, see Indian formats, words and languages.

Keeping numbers as text

PIN codes, account numbers and item codes such as 00123 lose their leading zeros when Ganit reads them as numbers. To keep them:

  • Format the cells as Text before you type, or
  • Type an apostrophe first: '00123. The apostrophe isn't shown.

A number stored as text isn't counted in sums. Ganit marks such cells with a small green triangle; see Formulas for how to convert them.

Custom formats

Choose Custom in the Category list and type a code in Type. The Sample shows the result as you type.

Code What it means
0 A digit, shown even when it is 0. 00000 shows 5 as 00005.
# A digit, left out when it isn't needed.
, Thousands commas. #,##,##0 groups in lakhs and crores; #,##0 groups in thousands.
. The decimal point. 0.00 shows two decimals.
% Multiplies by 100 and adds %.
"text" Text shown as it is, such as 0.00" kg" for 12500.00 kg.
dd mm yyyy Day, month and year. mmm is Nov, mmmm is November, dddd is the day's name.
hh:mm AM/PM Hours and minutes, with a 12-hour clock when AM/PM is in the code.
[Red] Shows that part of the format in red.

A code can have up to four parts, separated by semicolons: positive numbers; negative numbers; zero; text. Some examples:

Code 12500 -1234.5 0
₹ #,##,##0;[Red]-₹ #,##,##0 ₹ 12,500 -₹ 1,234 in red ₹ 0
#,##,##0.00;(#,##,##0.00) 12,500.00 (1,234.50) 0.00
"Rs." #,##,##0.00 Rs. 12,500.00 -Rs. 1,234.50 Rs. 0.00
#,##,##0.00;-#,##,##0.00;"-" 12,500.00 -1,234.50 -

Note

When a format hides the decimals, an amount that ends in exactly .5 is shown rounded to the even number: 1234.5 with no decimals shows as 1,234, and 2.5 shows as 2. The cell still holds the exact amount. If a bill must show whole rupees rounded up from 50 paise, round the amount itself with =ROUND(A2, 0).

Cell styles and Format as Table

The Styles group on the Home tab has Conditional Formatting (below) and Format as Table.

Format as Table turns the selected data into a table with a style: a coloured header row, banded rows and filter buttons. Click it and pick a style from the Light, Medium or Dark groups. If the selection is already in a table, the new style replaces the old one. See Tables, sorting and filtering for everything tables do.

Ganit has no gallery of ready-made cell styles. To give other cells the same look as one you've made, use the Format Painter.

Copying formatting with the Format Painter

  1. Select the cell (or cells) whose look you want to copy.
  2. Click Home ▸ Clipboard ▸ Format Painter. The status bar says "Click a cell to paste the formatting".
  3. Click the cell where the formatting should go.

Ganit copies the font, colours, borders, alignment and number format, and leaves the values alone. If you copied a block of cells, the formatting fills a block of the same size starting at the cell you click. The painter works once; click the button again for the next cell. Press Esc to cancel.

You can also copy cells (Ctrl+C) and use Home ▸ Paste ▸ Paste Formatting.

Conditional formatting

Conditional formatting colours cells by their values, and changes when the values change: quantities below the reorder level in red, the biggest sales in green, bars that show each amount's size.

Click Home ▸ Styles ▸ Conditional Formatting. The menu has:

Choice What it does
Highlight Cells Rules Formats cells greater than, less than, between or equal to a value, containing a text, or repeated.
Top/Bottom Rules Formats the top or bottom items, the top or bottom per cent, or values above or below the average.
Data Bars Draws a bar in each cell, as long as its value.
Colour Scales Shades the cells from one colour to another by value.
Icon Sets Puts an icon in each cell by value.
New Rule… Opens the New Formatting Rule dialog.
Clear Rules Takes the rules off the selected cells or the entire sheet.
Manage Rules… Lists the rules so you can change their order, cells, format, or delete them.

A stock list with blue data bars in the Stock Value column and the quantities below 10 (6, 4 and 9) in light red. The Conditional Formatting Rules Manager is open for This Worksheet, listing "Cell value less than 10" for B2:B9 and "Data Bar" for D2:D9.

Highlight cells by value

For example, to show the items that are running low in a kirana shop's stock list:

  1. Select the quantities, say B2:B9.
  2. Click Home ▸ Styles ▸ Conditional Formatting ▸ Highlight Cells Rules ▸ Less Than….
  3. In Format cells that are LESS THAN:, type 10.
  4. In the list after with, choose a format, such as Light Red Fill with Dark Red Text.
  5. Click OK.

The Highlight Cells Rules are:

Rule You type
Greater Than…, Less Than… A value. Ganit starts with the average of the selected cells.
Between… Two values. Ganit starts with the smallest and largest.
Equal To… A value.
Text that Contains… A text, such as "Pune".
Duplicate Values… Duplicate or Unique.

In place of a value you can give a cell, such as =$F$1. Change F1, and the rule follows.

The formats in the with list are Light Red Fill with Dark Red Text, Yellow Fill with Dark Yellow Text, Green Fill with Dark Green Text, Light Red Fill, Red Text, Bold, and Custom Format…. Custom Format lets you set a Fill colour, a Font colour, Bold, Italic and Strikethrough. Tick use fill or use colour for the colours you want.

Top and bottom values

Click Home ▸ Styles ▸ Conditional Formatting ▸ Top/Bottom Rules and choose:

Rule What it formats
Top 10 Items…, Bottom 10 Items… The largest or smallest values. Change 10 to any number.
Top 10%…, Bottom 10%… The largest or smallest per cent of the values.
Above Average…, Below Average… The values above or below the average of the selected cells.

Data bars

Select the amounts, then click Home ▸ Styles ▸ Conditional Formatting ▸ Data Bars and pick a colour: Blue, Green, Red, Orange, Light Blue or Purple. Each cell gets a bar as long as its value. The longest bar is the largest value; the bars start from 0, or from the smallest value when it is below 0.

Colour scales

Click Home ▸ Styles ▸ Conditional Formatting ▸ Colour Scales and pick a scale. The first colour in the name is for the highest values and the last is for the lowest: in Green - Yellow - Red Colour Scale, the highest sales are green, the middle ones yellow and the lowest red. In a three-colour scale, the middle colour is at the median.

Scales
Green - Yellow - Red, Red - Yellow - Green
Green - White - Red, Red - White - Green
Blue - White - Red, Red - White - Blue
White - Green, Green - White, White - Red

Icon sets

Click Home ▸ Styles ▸ Conditional Formatting ▸ Icon Sets and pick 3 Arrows, 3 Traffic Lights, 3 Symbols or 3 Flags. Ganit splits the range from the smallest to the largest value into three equal parts. Values in the top third get the first icon (such as a green arrow up), the middle third the second, and the bottom third the third.

Data bars, colour scales and icon sets only look at cells with numbers.

Writing your own rule

Click Home ▸ Styles ▸ Conditional Formatting ▸ New Rule…. In Select a Rule Type, choose one:

Rule type Settings
Format only cells that contain An operator (greater than, greater than or equal to, less than, less than or equal to, equal to, not equal to, between, not between) and one or two values.
Format only cells with specific text containing, not containing, beginning with or ending with a text.
Format only top or bottom ranked values Top or Bottom, a number, and % of the selected range for a per cent.
Format only values that are above or below average above or below.
Format only unique or duplicate values duplicate or unique.
Use a formula to determine which cells to format A formula that is TRUE for the cells to format.

Then check Applies to (the cells, such as A2:F100), choose a Format, and click OK.

Using a formula to colour whole rows

A formula rule can colour a whole row by one column's value. For example, to shade every bill above ₹ 1,00,000 in a sales register in A2:F100, where the amount is in column C:

  1. Select A2:F100.
  2. Click Home ▸ Styles ▸ Conditional Formatting ▸ New Rule….
  3. Choose Use a formula to determine which cells to format.
  4. Type =$C2>100000. The dialog tells you the formula is written for the first cell of the range, A2.
  5. Pick a format and click OK.

The $ before C keeps every cell looking at column C. The 2 without a $ lets each row look at its own amount. See Formulas for more on $.

Managing rules

Click Home ▸ Styles ▸ Conditional Formatting ▸ Manage Rules…. The Conditional Formatting Rules Manager lists the rules, with a preview of each format and the cells it applies to.

  • Show formatting rules for: Current Selection or This Worksheet.
  • Change a rule's cells by typing in its range box.
  • ▲ and ▼ move a rule up or down. Rules higher in the list win when two rules set the same thing, such as the fill colour.
  • ✎ edits the rule in the Edit Formatting Rule dialog.
  • ✕ deletes the rule.
  • New Rule… adds a rule.

Note

Data bar, colour scale and icon set rules can't be edited. To change one, delete it and add it again.

Clearing rules

Click Home ▸ Styles ▸ Conditional Formatting ▸ Clear Rules, then Clear Rules from Selected Cells or Clear Rules from Entire Sheet.

Row height and column width

New columns are 64 pixels wide and new rows 20 pixels high.

To change them with the mouse:

  • Drag the line between two column letters, or between two row numbers.
  • Double-click the line to fit the column to its widest entry, or the row to its tallest.

To set an exact size:

  1. Select the rows or columns.
  2. Click Home ▸ Cells ▸ Format ▸ Row Height… or Column Width…. You can also right-click the row numbers or column letters.
  3. Type the size in pixels and click OK.

Fit Row Height and Fit Column Width in the same menu size the rows or columns to their contents. Ganit also widens a column by itself when a number you type doesn't fit.

Hiding and showing rows and columns

To hide rows or columns, such as a working column on a salary sheet:

  1. Select them.
  2. Click Home ▸ Cells ▸ Format ▸ Hide Rows or Hide Columns, or right-click the row numbers or column letters and choose Hide.

To show them again, select the rows or columns on both sides of the hidden ones, then click Home ▸ Cells ▸ Format ▸ Unhide Rows or Unhide Columns, or right-click and choose Unhide.

Hidden rows and columns keep their values, and formulas still use them.

Clearing formatting

To take all the formatting off some cells and keep their values:

  1. Select the cells.
  2. Click Home ▸ Editing ▸ Clear ▸ Clear Formats.

The cells go back to the default font, no fill, no borders and the General number format. Clear All in the same menu takes off the values, formats, comments and notes together.

Protection settings

The Protection tab of Format Cells has two tick boxes:

  • Locked: the cell can't be changed once the sheet is protected. Every cell starts locked.
  • Hidden: the cell's formula isn't shown in the formula bar once the sheet is protected.

Neither has any effect until you protect the sheet. Home ▸ Cells ▸ Format ▸ Lock Cell switches Locked on or off for the selection. See Comments, review and protection for protecting sheets.