Back to blog
3 min read Export Guides

Export Your Top WooCommerce Customers by Total Spent

Your best customers are worth a thank-you email, a loyalty discount or an early look at a new product. WooCommerce knows how much each customer has spent, but there is no screen that lists them by spend with their contact details. With Import Export by RockStarLab PRO you can export WooCommerce customers with their total spent and number of orders, filtered to those above an amount, into Excel. The example is a coffee shop.

PRO: WooCommerce Customers export. Free: the export wizard for posts, pages, media and comments.

Short Answer

  • In Export, choose WooCommerce Customers and add the filter Total Spent Greater Than your amount.
  • Pick the columns you need: name, email, city, Order Count, Total Spent and Last Order ID.
  • Export to Excel and sort by Total Spent. The amounts are numbers, so sorting and sums work.

1. Filter by total spent

Go to Export, choose WooCommerce Customers and click Next Step. Add the filter Total Spent, Greater Than, 50. Out of eight customer accounts in our test shop, 3 had spent more than 50:

Export WooCommerce Customers with the filter Total Spent Greater Than 50: 3 items
Customers who spent more than 50.

Total Spent is the figure WooCommerce keeps for each customer account. It counts paid orders: in our shop, a customer whose only order was on hold and one whose order was cancelled both had 0.00 and were left out by the filter.

2. Choose and rename the columns

On the field step we added First Name, Last Name, Email, Billing City, Order Count, Total Spent and Last Order ID, and renamed them with the pencil icon to short headers like “Orders” and “Total spent”:

Export columns First name, Last name, Email, City, Orders, Total spent and Last order
Pick the columns and give them short names.

3. Export to Excel and sort

Choose XLSX on the format step and export. In the file, Orders, Total spent and Last order were numbers, and Total spent was shown with two decimals. We sorted by Total spent, largest first, and added a SUM below:

Excel file sorted by total spent: Anna Kovacs 236.00, Fatima Rahman 106.00, Ben Turner 54.00, sum 396.00
Sorted by total spent; the amounts are numbers.

Anna Kovacs from Budapest came first with 236.00 over 2 orders, then Fatima Rahman with 106.00 and Ben Turner with 54.00; together 396.00. The Last order column gives the order number to open in WooCommerce if you want to see what they bought.

Before you export

An export doesn’t change anything in the shop. The file has names and email addresses, so keep it private, and only email customers who agreed to hear from you. For email campaigns, see exporting newsletter subscribers.

With an AI agent

An AI agent connected through the WordPress MCP Adapter (see connecting Claude Code to WordPress) can find your top customers:

Who are our customers with the highest total spent?

In our run, the agent called rsl-ie-pro/export-preview with the export type woo_customer and the fields email, first name, last name, order count, total spent, last order ID and billing city. It returned eight customer accounts, and the agent ranked them: Anna Kovacs 236.00 (2 orders), Fatima Rahman 106.00, Ben Turner 54.00, Dmitri Volkov 34.00, and the rest at 0.00.

FAQ

Where does Total Spent come from?

From WooCommerce’s own figure for each customer account. In our test, orders on hold and cancelled orders were not included.

Can I filter by number of orders instead?

Yes. Order Count is a filter field too; use Greater Than to find repeat customers.

Are amounts numbers in Excel?

Yes. In the XLSX file Total spent was a number with two decimals, so SUM and sorting work.

Can I see what each customer bought?

Use the Last order number, or export orders filtered by the customer’s email; see exporting orders by date range.

Get the free plugin on WordPress.org.

Dmitriy
About author

Dmitriy

WordPress Developer with 15+ years of commercial experience. Elite Author on ThemeForest and creator of custom WordPress plugins. Passionate about clean code, performance optimization, and building useful tools for the WordPress community.

JOIN THE CONVERSATION

Comments 0

Have a question or a tip to share? Leave it below.

Leave a comment

Your email address will not be published. Required fields are marked *

We store your name, email and comment to show and moderate it; your email is never published. Spam protection is provided by Cloudflare Turnstile and profile pictures by Gravatar. See our Privacy Policy.


Try the plugin with no risks!

New users get 1 month with access to all premium features. Experience the most powerful WordPress data engine today.

Download Now
Get PRO for FREE