DEV Community

Cover image for Getting Started with Excel for Data Analytics: From Basics to Data Cleaning.
Frank Hahanyu
Frank Hahanyu

Posted on

Getting Started with Excel for Data Analytics: From Basics to Data Cleaning.

Introduction

Excel is a data entry tool, but its far more than that. It's a versatile workspace for cleaning, analyzing and visualizing data. In Data analytics, excel is all about transforming raw data into clear, actionable insights for decision-making. While specialized coding tools exist, Excel remains the primary operational engine for businesses worldwide. This guide walks you through the foundational tools, cleaning workflows, core formulas, and reporting features needed to turn messy datasets into professional analysis.

Gettting Familiar with the interface

Before writing formulas, you need to understand where everything lives. Excelโ€™s interface centers around the top ribbon and grid system.

The Excel Ribbon Breakdown

  1. Home: Your formatting hub for numbers, cell alignments, styles, and basic edits.
  2. Insert: Adds visual structure, including tables, PivotTables, charts, and shapes.
  3. Page Layout: Controls print boundaries, margins, gridlines, and page orientation.
  4. Formulas: Houses the full function library, auditing tools, and defined names.
  5. Data: The analytics engine. Contains sorting, filtering, deduplication, text tools, and Power Query.
  6. Review: Manages spellcheck, comments, sheet protection, and collaboration rules.
  7. View: Customizes workbook views, freezes panes, and toggles gridlines or formula bars.

Structural Grid Basics
Rows: Horizontal lines identified by numbers(1, 2, 3...).
Columns: Vertical sections identified by letters (A, B, C...).
Cells: The intersection of a row and column (e.g., B4).
Name Box: Displays the active cell reference.
Formula Bar: Shows the underlying value or calculation inside the selected cell.

Managing Data Types & Basic Formatting

Excel treats different data types in specific ways. Alignments and formatting dictate how calculations run under the hood.

Common Data Types

  • Text: Left-aligned by default. Used for descriptions, IDs, or labels.
  • Numbers: Right-aligned by default. Used for standard numeric calculations.
  • Currency/Dates: Formatted numbers displaying currency symbols or standard calendar dates (YYYY-MM-DD).
  • Percentages: Decimal values displayed as parts of 100 (e.g., 0.05formatted as 5%).
  • Pro Tip: If a number is left-aligned, Excel is treating it as text, which will cause formulas like SUM to ignore it!

Organizing Data: Tables, Sorting, & Filtering

Structured data allows for quick exploration without modifying original values permanently.
Converting Ranges to Tables (CTRL + T)
Converting a raw range into an Excel Table enables structured references, alternating row colors, and auto-expanding ranges.

  1. Select your data range.
  2. Go to Insert > Table (or press CTRL + T).
  3. Ensure "My table has headers" is checked.

Sorting & Filtering

  • Sorting: Rearrange rows alphabetically (A-Z), numerically (Smallest to Largest), or by cell color (Data > Sort).
  • Filtering: Click Data > Filter to enable dropdown arrows on headers. Use these to isolate specific criteria or filter by blank values.

The Data Cleaning Workflow

Clean data is the foundation of accurate analysis. Always keep an untouched raw copy of your data before applying these steps.
Essential Data Cleaning Techniques

  • Handling Missing Values: Use Data > Filter to isolate blank cells, or highlight them via Find & Select > Go To Special > Blanks.
  • Removing Duplicates: Select your table range, go to Data > Remove Duplicates, and choose key columns.
  • Trimming Extra Spaces: Standardize text containing accidental leading/trailing spaces using=TRIM(cell).
  • Standardizing Text Case: Clean text inconsistencies using=UPPER(),=LOWER(), or =PROPER().
  • Find & Replace(CTRL + H): Swap out erroneous values, currency symbols, or typos across thousands of rows instantly.

Core Excel Functions

Formulas perform manual calculations, while built-in functions execute predefined logic. All entries must begin with an equals sign (=).

Basic Aggregations

  • SUM(range): Adds all numeric values in a range.
  • AVERAGE(range): Calculates the arithmetic mean.
  • COUNT(range): Counts cells containing numbers.
  • COUNTA(range): Counts non-empty cells (numbers and text).
  • COUNTBLANK(range): Counts empty cells.
  • MIN(range) / MAX(range): Returns the lowest or highest value.

Date & Time Calculations

  • TODAY() / NOW(): Inserts dynamic current date or timestamp.
  • YEAR(), MONTH(),DAY(): Extracts individual components from a date cell.
  • DATEDIF(start_date, end_date, unit): Calculates time elapsed in days ("D"), months ("M"), or years ("Y").
  • NETWORKDAYS(start_date, end_date): Counts working days excluding weekends.

Summarizing Data with PivotTables & Charts

PivotTables allow you to slice, aggregate, and analyze thousands of rows without writing complex formulas.

Creating a PivotTable

  1. Click inside your clean dataset and select Insert > PivotTable.
  2. Choose to place it in a New Worksheet.
  3. Drag fields into the four main zones:
  • Filters: Global data boundaries.
  • Columns: Cross-tabulation categories.
  • Rows: Primary groupings down the left side.
  • Values: Numeric metrics to sum, average, or count.


Visualizing with Pivot Charts
To transform summary tables into visual reports:

  1. Click anywhere inside your PivotTable.
  2. Go to PivotTable Analyze > PivotChart (orInsert > PivotChart).
  3. Select a bar, column, or line visualization that best represents your metrics.

Conclusion

Mastering data analytics in Excel is a step-by-step process. Once you get comfortable cleaning raw datasets and building basic summaries, explore advanced analytics tools.

Top comments (0)