Ravindra BagaleCourses & study guides मराठी Track your progress

1. Excel Basics

Excel

1.4 Formatting Cells

1. Make a worksheet readable without changing the data

You're helping run a campus festival. Ten minutes before a budget meeting, someone sends you the stall tracker. The receipts are already there. The trouble is that the long headings are clipped, the money columns look like ticket numbers, and the treasurer has to ask which column contains what customers actually paid. You can fix that without retyping a single receipt.

Start with a question about the reader. They need to find the amount, spot a refund and check the total before they decide whether the stall has enough cash for supplies. Bold headers and a consistent money format can help with those decisions. A new fill colour on every row gives them another pattern to learn. A single highlight with a label such as Needs a receipt gives them a direction.

Working rule. Select the cells, change one layer, and check the result. If you changed appearance, your check is a value, a formula or a total that should still be the same.

Cell C2 stores 1250.5. Its display changes to ₹1,250.50 after Currency is applied. Multiplying C2 by two returns 2501 in both cases.
One number has two views. Excel uses the stored amount when a formula refers to the cell.

Value, formula and appearance are separate decisions

  • Value. A cell may contain a number such as 1250.5, text such as ST-007, or another type of worksheet value. Dates that Excel recognises use numeric serials. A value provides something a person or a formula can work with.
  • Formula. A cell may contain an instruction such as =C2*2. The cell normally displays the formula's result. Click that cell to see the instruction in the formula bar. Click the original amount cell to inspect the input. A formula result can be formatted too.
  • Appearance. The font, fill, border, number format and alignment tell readers how to read a cell. Change a total to bold or show that total as money and the calculation still uses its number under the default precision setting.

Here is the smallest useful test. Enter 1250.5 in C2 and =C2*2 in D2. Leave D2 as General. Format C2 as Currency, select a rupee symbol if your edition exposes that choice, and show two decimals. In a view using Western separators the display is ₹1,250.50. D2 still returns 2501. Your symbol or separators can differ with locale. The result of the multiplication is the reliable comparison.

A formula bar is good evidence of what you entered, especially for an ID or a formula. Some kinds of value, including dates and times, can have their own readable representation in the bar. To inspect a date serial, copy the reference into a spare cell and set that spare cell to General. To check type, use =ISNUMBER(C2) or =ISTEXT(C2). Those functions return TRUE or FALSE. Alignment is a clue only because anyone can manually align text to the right.

Choose the smallest useful selection

Click a cell to change just that cell. Drag across a rectangle or use the Name Box to select a known address such as C2:C5. Here C is the column, 2 and 5 identify the first and last rows, and the colon includes the cells between them. Check the selection before touching any ribbon button. If you mean to format today's four receipts and choose the whole column, you also affect blank cells and potentially formulas below those receipts.

When the sheet contains an organised list, place the headings in their own row and put the current data directly under that row. One receipt occupies one row. Each column has one job. Then choosing a format is straightforward. Give Amount (INR) a money format, give Receipt code text when entering the records, and give Event date a readable date display for real dates. A heading such as Value makes people guess whether a number is an amount, a number of tickets or an account code.

Microsoft documents the Windows desktop shortcut Ctrl+1 and the Mac shortcut Command+1 for Format Cells. Mac can also support Control+1. Menus are easier to follow if your keyboard has a system shortcut assigned. Use the Home tab and the appropriate group. The web version has Home > Number and alignment controls. A desktop command may have a different menu position or be unavailable in a browser. Use the documented desktop route for steps that require a choice you cannot see.

2. Give important information a clear place on the sheet

Look at the tracker as if you were seeing it on a borrowed laptop just before the meeting. First you need the report title and the event date. Next you need the field names. Then you need to read down one column without losing the row. That is enough to decide where to use each formatting tool.

Use font and fill to communicate roles

  • Title. Set a clear name such as Campus festival stall receipts above your list. Use bold and a slightly larger size if it helps distinguish the title. The same title in every tab has little value if you cannot tell whether a sheet shows a budget, planned payments or cleared receipts.
  • Column headings. Apply bold and one high-contrast fill to the headers. Use white type with a sufficiently dark fill or dark type with a light fill. Get each header readable first. Changing colour gives you no extra room for a clipped word.
  • Data. Keep the body comfortable to scan. Align labels consistently. Right-aligned numbers make magnitudes easier to compare when their decimal places are consistent. A cell showing Payment outstanding can keep that label even if the reader prints in black and white.
  • Totals. Add a top border and bold to mark where the list ends. Label the scope as Net receipts for listed rows if the calculation includes refunds. The border does not make a row a total. The label and formula together tell the reader what the row represents.

Open Home > Font to find the font, size, Bold, Fill Color and Borders controls. Fill colours the cell background. Font Color changes the characters. Border draws a line on selected edges. Check the preview mentally before you apply it. A bottom border across the heading gives readers a clean bracket. Choosing All Borders puts lines around each box. That may be useful for a printed checklist with blank spaces, but a small table can often be read with fewer lines.

If the sheet has to be printed, open Print Preview or the browser's print view from a draft. Worksheet gridlines, which help you see cells while editing, are different from borders you add. Check the actual preview instead of assuming it will match the editor. Ask a teammate to find the refund row by reading text. If they need you to explain a colour code first, add the meaning in a Type or Status column.

Choose between widths, wrapping and alignment

A column width applies to all cells in that column. A row height applies across the entire row. If you widen a short amount column to accommodate a sentence in the header, you may push other fields off a small screen. Start with one reasonable column width for its values. Wrap a longer label so it breaks inside that width. Make sure the complete wrapped heading fits the row height.

  1. Click the narrow header cell and open Home > Alignment > Wrap Text. A label such as Payment confirmation reference can span several lines.
  2. Apply AutoFit Row Height from Home > Format if there is enough room to have the row grow. Drag the row boundary if the current edition or arrangement does not fit it well. A fixed height or a merged cell can leave some wrapped text hidden.
  3. To fit an amount column to its contents, double-click the right edge of that column's heading, or use AutoFit Column Width. Check the wider result on a small display. A single long comment can make the whole column too wide, so manually sizing a Notes column and using Wrap Text may be better.

Horizontal alignment moves content left, centre or right inside its cell. Vertical alignment moves it toward the top, middle or bottom if a row has extra height. Top alignment helps when a row includes a two-line note and a one-line receipt code. The code appears at the same starting height as the note. Indent is useful for a short subsection label when you want it to read as subordinate. Keep actual categories in a data column if you intend to filter by them.

Excel can also rotate text on supported desktop versions. It can fit a short label in a narrow printed grid, but a rotated long label can make a frequently read worksheet harder to scan. Excel for the web does not provide text rotation. Wrap plus a sensible width is an easy first version for teammates working on different devices.

Try to recall. The headings are clipped and there are three long notes. Which setting grows the whole column, and which lets a particular cell use another line? Predict how the row height changes before you press Wrap Text.

3. Keep the table rectangular

Suppose row 4 records a sale of reusable bottles and row 5 records a refund. Someone wants the two rows to look linked and merges two amount cells. In a left-to-right worksheet, a merge keeps the upper-left cell's contents and deletes the contents of the other cells. Even unmerging later only restores separate cell spaces. Recover the removed value immediately with Undo if possible, or get it from the source receipt or a saved version.

A record has relationships across its row. The amount for receipt ST-014 should move with that ID when you sort by amount. Blank cells that gained their appearance from a merge cannot stand in for real values. Separate rows and a category value on every applicable record make sorting, filtering and copying more predictable. Excel tables disable merges inside the table. Keep a free-standing title above the header if you want to span columns visually.

A one-row heading appears centred over columns A through C. Beneath it, each independent receipt row has a receipt code, type and amount, so sorting can move each complete record.
A display title can span the report visually while the rows below stay ready to sort.

Use Center Across Selection on a suitable desktop layout

For a one-line presentation title, enter text in A1 and leave B1 through D1 blank. Select A1:D1. In desktop Format Cells, open Alignment and choose Center Across Selection under Horizontal when that option is available. The title appears across the selected width, and A1 through D1 retain separate addresses. This is a horizontal alignment option. It does not combine cells or make a label occupy several data records.

If the option is absent, leave the title in A1 with enough visible space or put the report title in a separate summary area. A good report title works even when left-aligned. Test it by changing B1 in a duplicate sheet. Your title may no longer centre over that cell when the cell contains something. Undo the test and keep the supporting cells blank. Keep headings for calculations and report data in their own unmerged row.

To diagnose a sorting problem, select the full table including all fields for each record, then sort the Amount column. Review the sort's header setting if the first row moves unexpectedly. With an Excel Table, its filter arrows offer sorting within the table. Confirm one known receipt ID still follows its original amount. If you use a summary row below your raw data, exclude that row from the sorted records. Trying to sort only the visible amount cells can scramble the relationship you were trying to preserve.

4. Reuse good formatting, then test the destination

The second shift of the festival has a different list with the same headings. You already spent several minutes getting the first list to look right. Repeating four manual changes introduces tiny differences such as the wrong font size or a missing border. Reuse the good format with a tool whose scope matches what you intend to copy.

  • Cell Styles. On desktop, look under Home > Styles > Cell Styles. Pick a small set for recurring headings or outputs. A style combines several formatting choices and can include a number format. Check a sample after using a style on money or dates, especially if you picked it because of its colour.
  • Format Painter. Select the good-looking source range first, choose the paintbrush under Home, then select the destination cells. On supported desktop editions, double-click the paintbrush to keep it active for several destinations and press Escape when finished. Start with one header row and another of the same shape.
  • Paste Special > Formats. Copy the source and use the format-only paste option on the destination. This is helpful if the tool you need is already on the Paste menu. A regular paste can replace destination data, formulas and more with the copied cells.
  • Clear Formats. Use the Clear menu to remove formats from selected cells while keeping their contents. If you want to remove only the fill, choose No Fill. Clear Formats can remove useful number formats as well, so a genuine date may suddenly look like a number.

Check both source and destination

For the second shift, A9 through D9 might already say Receipt code, Type, Amount (INR) and Short note. Paint from A3:D3. After painting, read A9:D9 and verify those labels survived. The rows of values below should stay outside the paint range. A font result that matches your first sheet and a label that stays the same are separate pieces of evidence.

Here is a subtler case. You copy a money cell's look onto an ID cell containing numeric 7. The output might now look like currency. Its value is still 7. Restore the correct appearance, and determine whether the actual ID should have been entered as text 007. A tool that copies formatting also copies number formats. A copied visual can give a misleading unit to perfectly unchanged data.

Clear a fill on the sample sheet and observe the exact change. Clear Formats on a separate copy of a date cell and observe the serial. Choose Clear Contents only if you intend to remove the value or formula. In a workbook with other formulas pointing at a cleaned-up area, clearing the contents can immediately change reported totals. Take a moment to read the menu label before pressing it.

5. Check the difference between readability and data repair

The organizer enters a payment of 799.495 and the display is given two decimals. A human sees 799.50. The payment may still participate in a formula at its stored precision, which matters when you total many values. Keep a few test cases that distinguish the decisions. Two entries of 10.004 can appear as 10.00 each while their raw sum, 20.008, appears as 20.01 at two decimals. Excel is displaying the total you asked it to calculate.

Before you round a calculation, ask whether the agreement says to round each line or to round only the final total. If amounts are settled at the line level, use =ROUND(C2,2) in a separate calculation column and sum those results. Keep the raw inputs beside them when the source needs to be auditable. If the rules only round the final amount, use the sum of raw amounts and round the total as required. Use the normal precision setting. The optional workbook-wide setting Set precision as displayed can permanently change stored values and is unsuitable for these exercises.

When a receipt code starts with zeros, tell Excel that it is text before entering or importing it. For a single code, an entry beginning with an apostrophe can signal that it is text. The apostrophe serves as an entry marker and is not part of the displayed code. For a column, set the intended type in advance. In Power Query, inspect the applied steps and ensure the code stays Text from its source. A numeric conversion that already removed leading zeros has lost information unless you can recover it from the original or know the exact required width.

There is a difference between 00000 as a display rule and the text 00007 as the actual code. You can make numeric 7 display as 00007 for a workbook presentation. A system receiving the raw data could still get 7. With a 16-digit code, the risk goes further. Excel numbers have 15 significant digits of precision. Typing a long digit-only code as a number can change its trailing digits. Switching it to Text afterward cannot recover them. Recent Microsoft 365 and Excel 2024 desktop editions offer automatic data conversion controls. For the beginner lab, choosing Text first makes the intention explicit without depending on that setting.

When you see a row of hashes, start by widening the column. Excel can show hashes for numbers and dates whose formatted text will not fit. If hashes remain after widening and the cell uses a date or time format, inspect the value in a temporary General view. A negative date or time can also produce hashes in common date-system configurations. If the underlying problem is a text value or an invalid calculation, changing the width will not correct it.

Keep this distinction. A narrow cell needs room. A number stored as text needs a deliberate conversion if it represents money. A numeric ID may need to be reimported as text if the original digits matter. Those are three different fixes.

Use the symptom to choose the next check

Three realistic formatting support requests
What you seeFirst checkWhat a successful fix proves
A code loses its first zerosCompare the saved code with the original and check its typeThe original characters survive import and can be matched later
A long note seems incompleteClick the note, read its contents and inspect width and row heightThe original note fits without hiding a neighbouring field
A status fill is wrong after paymentRead the actual status and inspect how the fill was appliedThe style agrees with the current status on changed and unchanged records

For an internship example, imagine maintaining a list of purchases your team placed through a retailer such as Amazon. The purchase code, the approval status and the refund amount are separate fields. A refund of ₹0.00 could mean that nothing is owed. A blank refund cell could mean you have not looked at the source yet. If both need to appear empty for a particular presentation, preserve an explicit status field so that the audience can still tell why the matching process should stop or continue.

Someone may come back with a screenshot where a refund appears green because it inherited the look of the sale just above. Read the classification text before making a correction. If the workbook changes often, Excel's conditional formatting can use that classification or a numeric value to set the visual cue automatically. Apply the rule to the intended range and test both sides. A negative value should receive the refund cue, a zero should follow the documented zero rule, and a text amount should be investigated as a type problem. A manual fill stays as you painted it until somebody changes it.

For a readable hand-off, make a simple left-to-right pass. Check whether the heading uses the same unit you intended, whether the longest label is fully visible and whether a negative amount is obviously a deduction. Then check the workbook separately. Inspect a code known to start with zero, inspect the net formula, and try finding one record by its own ID. These checks catch errors that can share exactly the same appearance. For example, a formatted numeric code and genuine text code can look identical on two adjacent rows.

One teammate might open the workbook on a phone. The workbook is still useful if they can find the amount without having to pan through all the columns, see the currency unit in the header, and read the status independently from the colour. For a long note where width matters, put the brief status near the amount and leave a longer explanation in its own column. Keep every explanation attached to its row. When you create a separate summary sheet, use clear links or formulas back to the data so that someone fixing a source row only has to make the correction once.

6. Lab. Make a stall report another volunteer can use

Goal. Produce a neat one-page worksheet and prove the existing receipts still total correctly. All records are fictional. Use a blank workbook or duplicate a practice sheet. Keep a plain copy before changing alignment or layout. The following exercise works with desktop Excel. Browser learners can leave the title left-aligned if the cross-cell alignment option is missing.

Type these values in A3:D7
Receipt codeTypeAmount (INR)Payment confirmation note
ST-011Sale1250.5Online payment matched to stall list
ST-012Sale899Receipt checked by volunteer
ST-013Sale2310.75Invoice sent to treasurer
ST-014Refund-150.25Refund approved for duplicate payment

Use row 1 for the title and row 2 as breathing room above the list. Enter amounts as numbers, using your decimal separator. Include the minus sign for the refund. Leave row 8 blank, type Net receipts in B9 and enter =SUM(C4:C7) in C9. Give yourself several seconds to calculate the net mentally. The first three rows total 4460.25. The refund reduces that by 150.25, leaving 4310.00. Before applying a format your General cell may show 4310.

Build the layout one change at a time

  1. Give the title its own row

    Enter Campus festival stall receipts into A1. Select A1 and set a larger bold font. If available, use Center Across Selection on A1:D1 after confirming B1:D1 are blank. The heading looks connected to the report. Click B1 and confirm it still represents an individual blank cell. Leave the row of headings at A3:D3.

  2. Make the labels readable

    Select A3:D3 and apply a modest fill, Bold and a bottom border. Wrap D3 and AutoFit row 3, with a moderate D width. Wrap the body notes as well if people need to read them on a small screen. Read the entire D3 heading to check whether the row height actually fits it. Just seeing a Wrap Text icon change state is insufficient evidence.

  3. Show the amounts clearly

    Select C4:C7. Apply Currency with two decimals and the ₹ symbol if available. Keep Amount (INR) as the heading if your edition gives a different default symbol. In that case, use Number with two decimals without the wrong symbol. Format C9 the same way. Read the negative values as deductions. Some Currency styles place the minus sign before the figure and others use parentheses.

  4. Verify type, formula and total

    In a spare cell enter =ISNUMBER(C4). It should return TRUE. Click C9. Its formula bar should contain =SUM(C4:C7). The amount should still be 4310 under the format. If you paint the header style onto a new header later, inspect the new labels independently. The total verifies amounts and the label check verifies text.

  5. Run the hand-off check

    Ask someone to point to the refund record and its amount without your help. Try reading D3 with the window narrowed. If you want to practise sorting, select or create a table from A3:D7 only, then sort Amount smallest to largest. Receipt ST-014 and its note should move to the first data row together. Row 9 should still show the same net because it totals all four numeric rows.

For troubleshooting, temporarily widen column C if you see hashes. If C9 is smaller than expected, check all four values with ISNUMBER individually. A money label pasted as text can be omitted by the sum, while the visual still looks reasonable. If the heading has changed but another part of the worksheet moved, undo the last action and verify the selection. You might have sorted a single column or selected the title when you meant to change the headers.

Keep the plain copy until your checks pass. For a real report, confirm whether a refund should be included in the net or shown separately by the person who owns the report. The same four numbers could produce a useful gross receipts figure of 4460.25 and a separate net of 4310. An informative label tells your reader which one they are seeing.

7. Lab. Debug a food-order hand-off

A campus club orders food using a delivery app such as Swiggy, then the purchase volunteer creates a reimbursement sheet from their own notes. These are fictional entries and codes. An internship supervisor has added two columns to classify the claims and expects your copy to preserve the labels. You can practise applying an existing look, keeping two kinds of input intact and demonstrating where appearance stops helping.

  1. Prepare the destination. In a second blank sheet, type Claim code in A3, Vendor type in B3, Reported amount in C3 and Payment status in D3. Enter '00007 in A4 and '00008 in A5. Type Delivery in B4 and B5. Enter 749.5 in C4 and 699.5 in C5. Type Receipt checked in D4 and Awaiting receipt in D5.
  2. Reuse the header visuals. Try copying A3:D3 from the first sheet, then choose the formatting-only paste option on the destination A3. The destination should still begin with Claim code and end with Payment status. You can also try Format Painter with the same sheet layout or with a copy of a styled header on this sheet. Set the destination widths and row height to fit the new headings.
  3. Test the inputs before fixing anything. Enter =SUM(C4:C5) in C7 and =ISTEXT(A4) in A7. Expect 1449 and TRUE. Changing the fill on D5 gives the reader a cue while Awaiting receipt communicates the reason. Decide whether this status should exclude the row from a different, approved-only total. The formula you just wrote is explicitly the sum of both reported amounts.
  4. Break a practice copy on purpose. In a duplicate sheet, replace C5 with '699.5. It now looks like a decimal but is text. The sum of the cell range is 749.5 because the range's text entry is ignored. Applying Currency leaves C5 as text. Use =ISNUMBER(C5) and expect FALSE. Undo the edit or replace C5 with the numeric original from your source and see the reported total return to 1449.
  5. Try Clear Formats selectively. Apply Currency to C7 and make it bold. Save the intended result first. In the duplicate, select C7 and run Clear Formats. Compare the look and the formula bar with the original. The visible symbol and bold weight may go away, but =SUM(C4:C5) remains. If you used Clear Contents instead, Undo immediately or re-enter the formula in your practice copy.

Exit check. A4 still contains the text code 00007, C4 and C5 are numbers, C7 calculates 1449, and the destination header still has its own words. A screenshot of the styling verifies none of those claims on its own.

8. Interview questions with reasoning

A manager asks you to add ₹ to 500 existing values. What do you change?

First check that representative amounts are numeric and use the same unit. Apply Currency to the amount range rather than editing each value. If a small sample gives TRUE for ISNUMBER and the total checks out before and after, you have evidence that the visual change left the calculations intact. For a mixed-currency ledger, record the currency code before you label amounts.

When would you use wrapping instead of widening a column?

If nearly all values fit and one descriptive heading is long, wrapping the header and fitting its row usually makes better use of the screen. If the amounts themselves do not fit, give the column more width or choose an appropriate numeric view. I would check the entire first row and the largest value at the window size the reader will use.

How do you copy a report's header style without replacing its labels?

Select the source header cells and apply Format Painter or Paste Special > Formats to an equally sized destination. Read back the destination labels to prove the action did what you intended. If the source includes date or currency formats, check those in the destination because the styling operation can transfer them too.

How would you fix a merged receipt list that cannot sort correctly?

Keep a source copy, inspect the merged layout, then unmerge the cells and restore separate records from the receipts. Unmerge recreates cell boundaries but does not recover values removed by the merge. Put the title outside the list and keep each sortable record together. Confirm one known ID, type and amount after sorting.

Why can two visible amounts add to something different from the visible total?

The display might round each line while the formula adds at stored precision. With two inputs of 10.004, the displayed rows are 10.00 and 10.00, but the stored sum is 20.008 and displays as 20.01. Decide whether the business rounds each line or only the final calculation and implement that decision explicitly.

9. Predict, then open the explanation

  1. C2 contains 1250.5. You apply bold and Currency. Does =C2*2 return 2501 or 2501.00 as a different stored number?

    Answer and reasoning

    It returns the number 2501. A format on the result cell could display it with two zeros after the decimal. The numeric result has not changed.

  2. D3 is clipped after Wrap Text because the row was manually shortened. Would you first change row height or replace the heading?

    Answer and reasoning

    Try AutoFit Row Height or grow the row. Check that all the words are visible. Wrap decides where lines break and the row height decides how much of those lines fits.

  3. A claim code has the actual digits 00007. Is it enough to format numeric 7 with five zeros if another system reads the source value?

    Answer and reasoning

    No. The visual pattern may show all five digits but the numeric source still holds 7. Preserve the real identifier as text before entry or import.

  4. After cleaning up a date cell the value now appears as a large whole number. What is your first check?

    Answer and reasoning

    Check whether Clear Formats removed the date presentation from a numeric date serial. Apply the intended date format again. Clearing formats and clearing the contents are different actions.

  5. Your header needs a copy of the new style, and it already has a different label. Which option keeps the label, ordinary paste or formats only?

    Answer and reasoning

    Formats only. Ordinary paste can copy the source contents as well. Read the destination label afterward to catch selection mistakes.

10. Six ideas to remember on a blank sheet

  • Cell format answers “how does it look?”

    Use the formula bar, a type check or a known calculation when you need to prove what is stored. A money sign alone tells you little about the input's type.

  • Wrap then fit

    Wrap long headings inside their chosen width. Read back the full label after adjusting row height. Use a wider amount column when digits have no room.

  • One row per record

    Keep each receipt and its amount in separate cells on the same row. Place presentation titles above the table and use cross-cell alignment if your desktop edition provides it.

  • Copy only the layer you need

    Formats only preserves the destination's contents. Check the label and inspect whether a copied number format makes sense for the destination.

  • Be deliberate about rounding

    Decimal buttons change what the reader sees. ROUND changes a formula's result. Choose the calculation based on how the invoice or settlement is defined.

  • Treat identifiers like names

    Set text before you enter or import leading-zero or long IDs. Keep numeric amounts in a separate numeric column. That makes both searchable labels and correct totals possible.

Microsoft references