Skip to content

Ninashaz/excel-powerquery-transformation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Excel Transformation with Power Query & Formulas

This project demonstrates how to use Power Query and Excel formulas to clean and transform data.
It highlights two different approaches to solving the same problems β€” automated transformations in Power Query and classic Excel formulas.


πŸ“Š Dataset

The dataset contains customer information, including:

  • First Name / Last Name
  • Phone number
  • Street Address
  • Zipcode
  • Request Date

🎯 Objectives

Using Power Query and Excel formulas, the exercise covers:

  1. Combining text fields β†’ Merging first and last names.
  2. Extracting substrings β†’ Getting area codes and phone segments.
  3. Cleaning data β†’ Removing unwanted characters (e.g., dashes, parentheses).
  4. Standardizing addresses β†’ Extracting only street names.
  5. Fixing zip codes β†’ Preserving leading zeros.
  6. Creating custom identifiers β†’ Generating short unique IDs.
  7. Date formatting β†’ Transforming dates into a custom text format like (19, July, 2014).
  8. Extracting date parts β†’ Isolating the year from dates.

πŸ› οΈ Skills Demonstrated

  • Power Query transformations
    • Split Columns
    • Merge Columns
    • Extract Text (Start, End, Range)
    • Replace Values
    • Change Data Types
    • Custom Columns with formulas
  • Excel Formulas for text manipulation
  • Data Cleaning & Preparation
  • Automation with Power Query (refresh when new data is added)

πŸ“ Excel Formulas Used

  • Full Name (Column Q)
    =[@[First Name]] & " " & [@[Last Name]]
    
    
  • Phone Number Components (Columns R, S)
    =LEFT([@Phone], FIND(")", [@Phone])-1)         // Area Code
    =MID([@Phone], FIND(") ", [@Phone])+2, 8)     // Phone Digits
    
    
  • Numeric Phone (Column T)
    =SUBSTITUTE(SUBSTITUTE([@Phone], "(", ""), ")", "")
    
    
  • Street Name Extraction (Column U)
    =TRIM(RIGHT(SUBSTITUTE([@[Street Address]], " ", REPT(" ", 100)), 100))
    
    
  • Address-Zipcode Combination (Column V)
    =[@[Street Address]] & " -" & [@Zipcode]
    
    
  • Username Generation (Column W)
    =LEFT([@[First Name]],3) & LEFT([@[Last Name]],3) & [@Area Code]
    
    
  • Formatted Date (Column O)
    ="(" & DAY([@[Req Date]]) & "," & TEXT([@[Req Date]],"MMMM") & "," & YEAR([@[Req Date]]) & ")"
    
    
  • Year Extracted (Column P)
    =YEAR([@[Req Date]])
    
    
Screenshot 2025-08-21 at 13 27 29

About

This project demonstrates how to use Power Query and Excel formulas to clean and transform data.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors