Aggregate Marketing Spend Data with Custom Pivots & VLOOKUPs in Google Sheets

Automates transformation of raw marketing spend data into pivot-like summaries in Google Sheets, merging lookups, grouping by name, and appending results without manual pivots.

n8n
Aggregate Marketing Spend Data with Custom Pivots & VLOOKUPs in Google Sheets

This n8n workflow pulls raw marketing spend data from a Google Sheets 'data' tab, fetches lookup/reference data (e.g., channel labels) from a 'Lookup' tab, and merges them on the Channel column using VLOOKUP-like logic. It then summarizes the data by grouping on 'Name' and summing 'Spend ($)', creating an automated pivot table effect. Before appending, it clears the 'render pivot' output tab to prevent duplicates, ensuring a fresh, clean report every run.

Ideal for marketing analysts tracking channel spend across campaigns, small businesses using Google Sheets for reporting, and teams needing daily automated rollups. It eliminates manual pivot table rebuilding, saving hours of repetitive work and reducing errors in data aggregation.

Benefits include seamless Google Sheets OAuth2 integration, no-code summarization, and reliable automation for BI tasks. Setup is straightforward: connect credentials, select sheets/worksheets, configure group-by and sum fields, then test. Perfect for scheduled daily executions to keep dashboards current.

$14.99
Last updated October 3, 2026
30-day money-back guarantee
Instant download
Lifetime updates included

New buyers can create an account from the cart to unlock a controlled $10 first-purchase credit on eligible orders of $25+.

Secure checkout powered by Stripe

Support

How to import this workflow into n8n

  1. 1Purchase or download the workflow to get the n8n workflow JSON file.
  2. 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
  3. 3Open each node marked with a credential warning and connect your own accounts and API keys.
  4. 4Run the workflow once manually to verify the data flow, then toggle it to Active.

Related CRM - Sales workflows

More from BestWorkflows

Need this deployed? We'll set it up for you.

Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.