Data Organisation and Management
Listen to this lesson
Nigerian voice narration
Fictional training case. The expense register has grown to 300 rows. Two departments appear as 'Admin', 'ADMIN' and 'admin ', three vouchers are duplicated, and someone typed 'N50,000' as text. The manager wants a clean list she can filter by month and sort by amount. This module teaches the tools that turn a messy register into reliable office data: tables, sorting, filtering, de-duplication, validation, conditional formatting, freeze panes and sheet protection.

Introduction and learning objectives
This lesson teaches practical data organisation in Excel. You will format a range as a table, sort and filter records, remove duplicates, find and replace inconsistent entries, restrict entries with data validation, highlight problems with conditional formatting, freeze headers and protect a sheet. By the end you should be able to prepare a clean, organised spreadsheet that another officer can use without guessing.

Try it yourself — step by step
- Click a cell inside the register.
- Press Ctrl+T, confirm A1:H19 and tick My table has headers.
- Name the table ExpensesTable on the Table Design tab.
- Turn on banded rows and check each header has a filter arrow.
Turn a range into a table
Select any cell in the data and press Ctrl+T, or choose Insert → Table. Confirm that the table has headers. A table gives you filter arrows automatically, banded rows for readability, and structured references such as =SUM(Expenses[Amount]). It expands when you type in the row below, so formulas and formatting follow new records. Give the table a meaningful name in Table Design → Table Name. A table is not the same as manual cell borders; borders are decoration, a table is a data structure.
Sort and filter with confidence
Sorting reorders all rows by a column, for example Amount largest to smallest or Date oldest to newest. Always sort the whole table, never a single column, or records will break apart. Filtering hides rows that do not match without deleting them. Click the arrow on a header, choose values or a condition such as 'greater than 100000', and apply. The status bar often shows how many rows are visible. Use Clear Filter to bring everything back. Keep a visible control total before filtering.
Remove duplicates safely
Select the table, then Data → Remove Duplicates. Choose the columns that define a duplicate. For payments, a duplicate usually means the same Voucher plus the same Amount, not just the same payee, because a payee can legitimately receive two payments. Remove Duplicates permanently deletes rows, so work on a copy first. Note how many rows were removed and investigate why they existed. If the duplicate is a genuine second payment, removing it would understate spending.
Find, replace and standardise entries
Use Ctrl+F to find and Ctrl+H to replace. To standardise departments, replace 'ADMIN' and 'admin ' with 'Admin'. Be careful with 'Replace All': it can change text inside descriptions too. For case and space problems, a helper column with =PROPER(TRIM(C2)) produces a clean version; copy the result and paste it back as values. Add a data validation list afterwards so the wrong spellings cannot return. Keep the original column until you have checked the cleaned version.
Data validation stops bad entries
Select the column where entries must follow a rule. Go to Data → Data Validation. For a department list, choose Allow: List and enter the approved names separated by commas, or point to a small reference list on another sheet. For amounts, choose Decimal and set a minimum of 0. Add an input message explaining the rule and an error alert that blocks wrong entries. Validation prevents future errors; it does not fix existing ones. Clean the old data first, then apply the rule.

Try it yourself — step by step
- Select A2:H19 and open Home → Conditional Formatting → New Rule.
- Choose Use a formula and enter =$H2="No".
- Set a red fill and dark red text, then click OK.
- Add a second rule on F2:F19 for values greater than 250000 with a yellow fill.

Build the prompt from three phrases — Role, Task and Format — and watch the AI answer.
Conditional formatting makes problems visible
Conditional formatting changes a cell's appearance when a rule is true. Select the Amount column and choose Home → Conditional Formatting → Highlight Cells Rules → Greater Than, then enter 100000 and pick a red fill. Use Colour Scales for a quick visual ranking, or a formula rule to highlight an entire row where the department is missing. Rules should point to a decision, not decorate the sheet. Too many colours make the important flag invisible.
Freeze panes and protect sheets
Freeze the header row with View → Freeze Panes → Freeze Top Row so it stays visible while scrolling. For a wide register, select the cell below the headers and to the right of the columns you want locked, then choose Freeze Panes. To protect formulas, unlock the input cells first (Format Cells → Protection → clear Locked), then Review → Protect Sheet and allow only the actions users need. Protection is a guard against accidental edits, not a security system; share the workbook only with trusted people.

Try it yourself — step by step
- Use =TRIM(A2) to remove extra spaces.
- Standardise names with =PROPER(A3).
- Convert text amounts with =VALUE("155000") and set the Number format.
- Convert text dates with =DATEVALUE("04/07/2026"), then run Data → Remove Duplicates.
A cleaning routine for every register
1) Make a copy and name it clearly. 2) Convert the range to a table. 3) Check row count and control total. 4) Standardise categories with Find and Replace or TRIM/PROPER. 5) Check and remove genuine duplicates. 6) Fix text numbers and malformed dates. 7) Add data validation for future entries. 8) Add one conditional-format rule for the main risk. 9) Freeze headers and protect formula cells. 10) Save, then record what was cleaned and what remains uncertain.
Common mistakes to avoid
The biggest mistake is using Remove Duplicates on the whole row when only one column should define a duplicate, which deletes legitimate records. Another is sorting a single column instead of the whole table, scrambling records. Others include replacing text inside descriptions with Replace All, applying validation before cleaning old entries, and protecting a sheet without unlocking input cells, so nobody can type. Always keep a copy and a note of what changed.
Practice exercise
Use the downloadable expense register. Convert it to a table, standardise the department names, check for duplicates using Voucher plus Amount, fix at least one text amount and add a data validation list for departments. Apply conditional formatting to amounts above ₦100,000, freeze the header row and protect the formula cells while leaving input cells editable. Write a five-line cleaning log.
Lesson summary
Organised data starts with a proper table. Sort and filter the whole table, remove only genuine duplicates, standardise categories, validate future entries and highlight the main risk with one clear rule. Freeze headers for navigation and protect formulas without blocking input. Keep a copy and a cleaning log so the work can be checked.
Open Google Gemini (free tier) and paste this prompt there. Suggests cleaning steps for messy fictional tables; apply and check them in your workbook.
You are a data quality officer. Give me a cleaning checklist for a messy office expense register with duplicate payments and inconsistent department names as numbered steps with the Excel menu path for each.
Why this tool: Suggests cleaning steps for messy fictional tables; apply and check them in your workbook.
Hit a free limit? Switch to ChatGPT or Gemini and continue — the prompt works in any assistant.
Answer all three questions and check your answers to unlock the next lesson. Pass mark: 2 of 3.
Filtering a table…
Data validation is most useful for…
Freezing the top row helps because…
