How to Calculate ROI by Lead Source in Excel

Learn how to measure which marketing and referral channels bring the best return for your agency. In this tutorial, you’ll see how to compare performance across lead sources, identify the most profitable ones, and visualize ROI results in a simple, easy-to-read Excel chart.

Download the Excel file used in this tutorial:

How to Calculate ROI by Lead Source in Excel

This tutorial explains how to calculate Return on Investment (ROI) in Excel by lead source, helping you identify which channels generate the highest profit relative to their acquisition cost.

1. Create a Unique List of Lead Sources

  • Use the UNIQUE() function on your Lead Source column to remove duplicates.
  • If a zero appears due to blanks, add a period (.) inside the formula to remove it dynamically.
  • Copy the results and paste values using Ctrl + Shift + V to remove the formula.
  • Optionally sort alphabetically.
  • This creates a clean list of unique lead sources like Facebook Ads, Referrals, Email Campaigns, etc.

2. Calculate Total Operating Income by Lead Source

Use the SUMIFS() function to calculate total operating income per lead source.
     Example:
     =SUMIFS(OperatingIncomeRange, LeadSourceRange, LeadSource)

  • Copy the results and paste them as values.
  • Format as currency using Ctrl + Shift + 4.
  • This step gives you the total operating income generated by each marketing channel.

3. Calculate Total Acquisition Cost

Repeat the same process, but reference your Acquisition Cost column instead (e.g., Column S).
     Example:
     =SUMIFS(AcquisitionCostRange, LeadSourceRange, LeadSource)

  • Format the results as currency and align them using Alt + H + A + C for a clean layout.
  • You now have the two main components needed for your ROI formula.

4. Calculate ROI for Each Lead Source

In a new column, divide Operating Income by Acquisition Cost.
     Example:
     =OperatingIncome ÷ AcquisitionCost

  • Format as a percentage using Ctrl + Shift + 5.
  • This shows the return on every dollar spent for each lead source. For example, an ROI of 350% means you earn $3.50 for every $1 spent.

5. Create an ROI Chart by Lead Source

  • Select your Lead Source column and ROI column.
  • Go to Insert → Recommended Charts → Bar Chart.
  • Add Data Labels by clicking the chart, selecting the “+” icon, and enabling labels.
  • Resize labels or increase font size for visibility.
  • To sort highest ROI at the top, sort the ROI column from smallest to largest before charting.
  • This visual immediately shows which lead sources drive the best performance.

6. Format and Customize the Chart

  • Title the chart “ROI by Lead Source.”
  • Apply consistent colors (e.g., blue bars, gray text).
  • Optionally remove gridlines and adjust bar spacing for a cleaner look.
  • You can now compare ROI values across all acquisition channels at a glance.

7. Interpret the Results

  • Identify which channels yield the highest ROI (e.g., Referrals or SEO).
  • Understand how much operating income is generated per dollar of acquisition cost.
  • Use this data to optimize marketing spend by focusing on high-performing sources.
  • Example: Referrals may deliver the best ROI, but also factor in churn and customer lifetime value (LTV) for a complete view.

8. Expand the Analysis

  • Add monthly breakdowns to track ROI trends over time.
  • Include additional metrics such as Lifetime Value (LTV) or Renewal Rates.
  • Combine this ROI analysis with your Acquisition Cost and Margin models for deeper insights.

Result

You now have an Excel model that calculates and visualizes ROI by lead source, showing where each marketing dollar produces the greatest return. This approach helps you identify the most profitable channels and guides smarter marketing investments.

Analyzing ROI by Lead Source in Excel

 

Q1. What does ROI by lead source mean?
ROI by lead source measures how much return your agency earns from each marketing or referral channel. It compares the operating income generated by leads from a source (like Facebook Ads, referrals, or email campaigns) against the cost of acquiring those leads.

Q2. Why should agencies track ROI by lead source?
Knowing which lead sources deliver the best ROI helps you prioritize marketing spend and optimize acquisition strategies. You’ll see exactly where your highest-value customers come from and which channels may not be worth the investment.

Q3. How can I analyze ROI by lead source in Excel?
You can create a small table that lists each lead source, its total operating income, and acquisition cost, then calculate ROI by dividing income by cost. From there, visualize the results with a simple bar or column chart to highlight your most profitable channels.

Q4. What insights can I gain from this analysis?
You’ll identify which marketing sources drive the highest profitability, spot underperforming campaigns, and start building a clearer picture of customer lifetime value when combined with churn or renewal data.

Q5. Can this method be applied to other marketing KPIs?
Yes. You can adapt this approach to analyze cost per lead, conversion rate, or customer acquisition cost (CAC). It’s a flexible model for any KPI where performance varies by marketing source.

Q6. Where can I download the practice dataset?
The video description includes a link to the sample Excel file used in this tutorial. You can download it to replicate the analysis step by step and customize it with your own data.

Get more lessons like this
by joining our newsletter

Receive weekly Excel tutorials, tips, and KPIs straight to your inbox

Databoards

Analysis & Development