Excel Template Guide

Step-by-Step Guide to Preparing Your MMM Data in Excel

This comprehensive guide walks you through creating a properly formatted Excel file for MixModeler, from blank spreadsheet to upload-ready dataset. Follow these step-by-step instructions to ensure your data is structured correctly for immediate use.


Template Overview

What You'll Create

A properly structured Excel file with:

  • Time periods in the first column (Observation)

  • KPI variable (your dependent variable: sales, revenue, conversions)

  • Marketing variables (spend, impressions, GRPs by channel)

  • Control variables (seasonality, pricing, external factors)

  • Clean numeric data ready for modeling


Step-by-Step Template Creation

Step 1: Open New Excel Workbook

Instructions:

  1. Open Microsoft Excel

  2. Create new blank workbook

  3. Work on Sheet1 (default first sheet)

  4. Delete any extra sheets (Sheet2, Sheet3) - optional but cleaner


Step 2: Set Up Column Headers

Row 1 - Column Headers:

Critical Requirements: ✅ First column MUST be named exactly Observation (case-sensitive) ✅ Use descriptive, clear names for all variables ✅ Use underscores instead of spaces (TV_Spend not TV Spend) ✅ Avoid special characters (@, #, $, %, &, *)


Step 3: Enter Time Periods (Column A)

Option 1: Weekly Data (Recommended)

Enter dates for each week:

A1: Observation
A2: 2023-01-01
A3: 2023-01-08
A4: 2023-01-15
A5: 2023-01-22
...continue for 52+ weeks

Quick Method:

  1. Enter first date (A2): 2023-01-01

  2. Enter second date (A3): 2023-01-08

  3. Select both cells A2:A3

  4. Drag fill handle down to auto-increment by 7 days

  5. Continue until you have 52+ rows

Option 2: Monthly Data

A1: Observation
A2: 2023-01-01
A3: 2023-02-01
A4: 2023-03-01
...continue for 24+ months

Option 3: Custom Period Labels

A1: Observation
A2: Week 1
A3: Week 2
A4: Week 3
...continue

Step 4: Enter Your KPI Data (Column B)

Instructions:

  1. Column B header: Sales (or Revenue, Conversions, etc.)

  2. Enter your actual KPI values for each time period

  3. Ensure all values are numeric (no currency symbols)

Example:

Formatting Tips:

  • Format cells as "Number" (not "Currency")

  • No decimal places needed if whole numbers

  • No commas in the actual cell value (Excel displays them, but value should be 150000)


Step 5: Add Marketing Variables (Columns C+)

For Each Marketing Channel:

  1. Create column with descriptive name

  2. Enter spend, impressions, or GRPs for each period

  3. Use consistent units (e.g., all spend in dollars, all impressions in thousands)

Example Marketing Columns:

Naming Conventions:


Month Dummy Variables:

Create binary (0/1) columns for each month:

Quick Creation Method:

  1. Create 12 columns (Month_Jan through Month_Dec)

  2. Use Excel formula: =IF(MONTH($A2)=1,1,0) for January

  3. Adjust formula for each month (1=Jan, 2=Feb, etc.)

  4. Copy formula down all rows

Holiday Indicator:

Single binary column for holidays/special events:


Step 7: Add Control Variables (Optional)

Price Variable:

Promotion Indicator:

Competitor Activity:


Example Complete Template

Here's what your complete spreadsheet should look like:


Excel Formulas and Functions

Auto-Fill Date Sequences

Weekly Dates:

excel

A2: 2023-01-01
A3: =A2+7

Copy A3 down to auto-increment by 7 days

Monthly Dates:

excel

A2: 2023-01-01
A3: =EDATE(A2,1)

Copy A3 down to auto-increment by 1 month


Create Month Dummies Automatically

Formula for January (Month = 1):

excel

=IF(MONTH($A2)=1,1,0)

Formula for February (Month = 2):

excel

=IF(MONTH($A2)=2,1,0)

Continue for all 12 months, changing the month number in the formula.


Calculate Rolling Averages (Advanced)

4-Week Moving Average:

excel

=AVERAGE(B2:B5)

Use Case: Smooth volatile data


Flag Holiday Weeks

Manual Method: Enter 1 for holiday weeks, 0 otherwise

Formula Method (if you have holiday dates):

excel

=IF(COUNTIF(HolidayList,A2)>0,1,0)

Data Quality Checks in Excel

Check 1: No Blank Cells

Instructions:

  1. Select all data range (A1:Z100)

  2. Press F5 (Go To)

  3. Click "Special"

  4. Select "Blanks"

  5. If blanks found → fill with 0 or appropriate value


Check 2: All Numbers Valid

Instructions:

  1. Select data columns (B2:Z100)

  2. Look for left-aligned numbers (indicates text)

  3. Look for green corner triangles (number stored as text)

  4. Fix: Data → Text to Columns → Finish


Check 3: No Duplicate Dates

Formula to Check:

excel

=COUNTIF($A$2:$A$100,A2)>1

Place in column next to Observation. If returns TRUE, you have duplicates.


Check 4: Dates in Chronological Order

Instructions:

  1. Select Observation column

  2. Data → Sort → Oldest to Newest

  3. Verify order makes sense


Formatting Best Practices

Number Formatting

For Financial Data (Spend, Sales):

  • Format: Number

  • Decimal places: 0 (for whole numbers)

  • Use thousands separator: Yes (for display only)

  • Example display: 150,000 (stored as 150000)

For Percentages:

  • Store as decimals: 0.15 not 15%

  • Format can show percentage in display

  • Example: 15% displayed, 0.15 stored

For Dates:

  • Format: Short Date or Custom

  • Example: 1/1/2023 or 2023-01-01

  • Ensure all dates use same format


Column Width

Set Appropriate Widths:

  1. Select all columns

  2. Home → Format → AutoFit Column Width

  3. Or double-click between column headers

Benefits:

  • Easy to review data

  • Spot errors quickly

  • Professional appearance


Freeze Header Row

Instructions:

  1. Click on Row 2 (first data row)

  2. View → Freeze Panes → Freeze Panes

  3. Now header row stays visible when scrolling

Benefits:

  • Always see column names

  • Easier data entry

  • Less confusion


Common Excel Mistakes and Fixes

Mistake 1: Numbers Stored as Text

Symptom:

  • Numbers aligned left

  • Green triangle in corner

  • Formulas don't work on these cells

Fix:

  1. Select affected cells

  2. Click warning icon

  3. "Convert to Number" OR

  4. Data → Text to Columns → Finish


Mistake 2: Hidden Columns

Symptom:

  • Column letters skip (A, B, D, E - missing C)

  • Model might miss variables

Fix:

  1. Select columns on both sides

  2. Right-click → Unhide


Mistake 3: Merged Cells

Symptom:

  • Cells span multiple rows/columns

  • Upload will fail

Fix:

  1. Home → Merge & Center → Unmerge Cells

  2. Split data appropriately


Mistake 4: Formulas Instead of Values

Symptom:

  • Cells contain =SUM(...) or other formulas

  • Can cause upload issues

Fix:

  1. Select all data

  2. Copy (Ctrl+C)

  3. Paste Special → Values

  4. Now cells contain results, not formulas


Saving Your Template

Step 1: Save As Excel Format

Instructions:

  1. File → Save As

  2. Choose location

  3. File name: MMM_Data_2023.xlsx

  4. File type: Excel Workbook (*.xlsx)

  5. Click Save

Why .xlsx:

  • Native Excel format

  • Preserves formatting

  • Best compatibility with MixModeler


Step 2: Create Backup Copy

Best Practice:

  1. Save original: MMM_Data_2023_ORIGINAL.xlsx

  2. Save working copy: MMM_Data_2023_Working.xlsx

  3. Upload working copy to MixModeler

Benefits:

  • Preserve original data

  • Can revert if needed

  • Safe experimentation


Pre-Upload Checklist

Before uploading to MixModeler, verify:

Structure


Data Quality


Content


File


Advanced Template Features

Multiple KPIs

You can include multiple KPIs in one file:

Use Case: Build separate models for different KPIs using same marketing data


Channel Breakdowns

Break channels into sub-channels:

Use Case: Detailed attribution within channel types


Geographic Splits

Include regional data:

Use Case: Regional MMM models or national model with regional controls


Template Download Resources

Starter Template (Simple)

Includes:

  • 52 weekly observations

  • Sales (KPI)

  • 3 marketing channels

  • Holiday indicator

Download: Available in MixModeler under Templates


Professional Template (Comprehensive)

Includes:

  • 104 weekly observations

  • Multiple KPIs

  • 10 marketing channels

  • 12 month dummies

  • Control variables

Download: Available in MixModeler under Templates


Custom Template Builder

Instructions:

  1. Start with blank template

  2. Add your specific channels

  3. Include your control variables

  4. Save as master template

  5. Reuse for future updates


Summary

Key Takeaways:

📊 First column = "Observation" - exact name, case-sensitive

🔢 Numeric data only - remove all symbols and formatting

📅 Chronological order - earliest to latest

Use checklist - verify before upload

💾 Save as .xlsx - best format for MixModeler

📋 Include essentials - KPI + marketing + seasonality

🔄 Create template once - reuse for data updates

📁 Keep backups - preserve original data

Following this guide ensures your Excel file is perfectly formatted for immediate use in MixModeler, saving time and avoiding upload errors!

Last updated