Skip to main content

5 min read

E-commerce Data Extraction: How to Collect and Analyse Product Data in Excel

E-commerce Data Extraction

E-commerce data extraction is the process of collecting product information, such as names, prices, ratings and stock levels, from online stores and turning it into a structured dataset you can analyse. Excel is often the easiest place to do that analysis. This guide covers the whole workflow: choosing your data, collecting it, cleaning it, and turning it into useful insights in Excel.

Need product data as shoppers see it in each country? Get a trial on QuickProxy for only $1.99.

What can you do with e-commerce data?

  • Monitor competitors’ prices: track prices, discounts and stock over time. See our competitor price monitoring guide.
  • Research a category: estimate how crowded a market is, the typical price range, and which features are common.
  • Analyse reviews: find out what customers praise and complain about. See understanding customer sentiment.
  • Check your own listings: confirm that your products, prices and descriptions appear correctly across retailers and markets.

Step 1: Define your dataset

Decide on your fields before you collect anything. A typical product table looks like this:

Field Example Why it matters
date 2026-11-08 Lets you see changes over time
retailer, country ShopA, DE Prices differ by store and market
product_id (GTIN, EAN or SKU) 4006381333931 Matches the same product across stores
title Blue kettle 1.7 l Readable label
price, currency 39.99, EUR Core measure
in_stock, rating, reviews TRUE, 4.5, 812 Context for price and demand
url https://… Lets you check the source

Keep personal data out: reviewer names and profile links usually aren’t needed for analysis.

Step 2: Choose how to collect the data

  1. Official sources first. Marketplaces offer seller APIs, affiliate product feeds and reports. If you’re analysing your own store, export from its admin panel.
  2. Excel’s own web import. Under Data > From Web, Power Query can import tables from simple pages, which is fine for a handful of pages.
  3. No-code scraping tools. Visual tools let you click on the fields you want and export to CSV or Excel.
  4. A script. Python with libraries such as Requests and Beautiful Soup, or Playwright for pages that load content with JavaScript, gives you full control. Our guide to scraping vs parsing explains the two stages.

Before collecting, check each site’s terms and robots.txt, and read our guide to legal web scraping.

Step 3: A simple Python example

This example collects a few fields from a list of product pages and saves them as a CSV file that Excel opens directly. The CSS selectors are placeholders: inspect your target page to find the right ones.

import csv, os, random, time
from datetime import date
import requests
from bs4 import BeautifulSoup

# Quick Proxy credentials from environment variables; -cc-de selects Germany
user, pw = os.environ["QP_USER"], os.environ["QP_PASS"]
proxy = f"http://{user}-cc-de:{pw}@gate.quickproxy.io:8000"
proxies = {"http": proxy, "https": proxy}
headers = {"Accept-Language": "de-DE,de;q=0.9"}

urls = ["https://shop.example/product/1", "https://shop.example/product/2"]

with open("products.csv", "w", newline="", encoding="utf-8-sig") as f:
    writer = csv.writer(f)
    writer.writerow(["date", "country", "url", "title", "price", "in_stock"])
    for url in urls:
        r = requests.get(url, proxies=proxies, headers=headers, timeout=30)
        if r.status_code != 200:
            print("skipped", url, r.status_code)
            continue
        soup = BeautifulSoup(r.text, "html.parser")
        title = soup.select_one("h1").get_text(strip=True)
        price = soup.select_one(".price").get_text(strip=True)
        in_stock = soup.select_one(".out-of-stock") is None
        writer.writerow([date.today(), "DE", url, title, price, in_stock])
        time.sleep(random.uniform(2, 5))  # be a considerate visitor

The utf-8-sig encoding helps Excel display accented characters correctly. For more on setting up credentials, see the authentication guide.

Step 4: Clean the data

Raw scraped data is rarely ready for analysis. Typical clean-up tasks, all possible in Power Query or with formulas:

  • Prices: remove currency symbols and thousands separators, and convert decimal commas, so “1.299,00 €” becomes 1299.
  • Duplicates: remove repeated rows for the same product, date and store.
  • Missing values: mark them clearly rather than leaving zeros, which distort averages.
  • Units: standardise sizes and pack quantities so that you compare like with like.
  • Currencies: convert to one currency using a dated exchange rate if you compare markets.

Step 5: Analyse it in Excel

  • Format as a table (Ctrl+T) so that formulas and charts grow with new data.
  • Match products across stores with XLOOKUP on the product ID.
  • Compare prices with a calculated column, such as your price minus the lowest competitor price.
  • Summarise with a PivotTable: average price by retailer, or count of products out of stock by date.
  • Highlight changes with conditional formatting, for example price drops of more than 5% since the previous day.
  • Chart trends with a line chart of price by date for key products.
  • Refresh automatically: if the data comes in through Power Query, one click on Refresh All updates everything.

Excel handles about a million rows per sheet. For larger datasets, keep raw data in a database or CSV files, and load only summaries into Excel.

Where proxies help

Online stores often show different prices, availability and delivery options by country or region, and many limit repeated requests from one IP. A residential proxy lets you collect data as local shoppers see it, from the locations you choose, while spreading requests across many IPs. Marketplace-specific advice is in our guides to Amazon and Walmart.

Conclusion

Good e-commerce analysis starts with a clear dataset: the right fields, reliable product matching and careful cleaning. Collect only public data you need, at a considerate pace, and let Excel’s tables, PivotTables and Power Query do the rest.

Collect product data from the markets you sell in: start a $1.99 trial.

Questions and Answers

Q1: Can Excel scrape websites on its own?

A1: Partly. Power Query’s From Web option can import tables from simple pages. For pages that load data with JavaScript, or for many pages, a scraping tool or script works better.

Q2: Which format should I export to?

A2: CSV is simple and works everywhere. Save it with UTF-8 encoding so that special characters display correctly in Excel.

Q3: How do I compare the same product across stores?

A3: Match on a standard identifier such as GTIN or EAN where available. Matching on titles alone often pairs the wrong sizes or variants.

Q4: Is e-commerce data extraction legal?

A4: Collecting public product data is common, but it depends on each site’s terms, database rights and local law. Use official APIs where you can, and avoid personal data.

Related reading

Put the article into practice.

Spin up real residential IPs in 150+ countries. Pay once or subscribe — from $11.