Login
Back to Blog
09|Claude Code with Crazyrouter Series 09: Chapter 6: Data Processing and Analysis

09|Claude Code with Crazyrouter Series 09: Chapter 6: Data Processing and Analysis

C
Crazyrouter Team
June 10, 2026
1 viewsEnglishClaude Code
Share:

09 | Claude Code with Crazyrouter Series 09: Chapter 6: Data Processing and Analysis#

This is the 9th article in the Crazyrouter Claude Code series. This article focuses on “Claude Code with Crazyrouter Series 09: Chapter 6: Data Processing and Analysis,” covering Chapter 6: Data Processing and Analysis, 6.1 Excel Data Processing, and data organization and cleaning.

Unified integration guidance: Claude Code / Anthropic native clients use ANTHROPIC_BASE_URL=https://cn.crazyrouter.com; OpenAI-compatible SDKs, HTTP requests, and frontend/backend applications use base_url=https://cn.crazyrouter.com/v1.

What This Article Covers#

  • Who this is for: developers who are using Claude Code, planning to integrate domestic models, or want to route team-wide model calls through Crazyrouter.
  • What you’ll learn: how to configure environment variables according to the Crazyrouter documentation, organize your workflow, and avoid the /v1/v1/... issue caused by an incorrect Base URL.
  • Recommended preparation: first create a separate API Token in the Crazyrouter console, then follow the Claude Code integration documentation to complete the basic setup.

Chapter 6: Data Processing and Analysis#

6.1 Excel Data Processing#

Claude Code can help you process all kinds of Excel data. Whether you need to organize data, standardize formatting, or filter records, it can handle the work efficiently.

Data Organization and Cleaning#

Removing Duplicate Data#

Remove duplicate data from an Excel spreadsheet:

You: Please help me remove duplicate rows from this Excel spreadsheet. (Upload Excel file)

Claude: Duplicate data has been removed:

Processing results

  • Original row count: 150 rows
  • Duplicate rows removed: 12 rows
  • Remaining row count: 138 rows

Duplicate data has been removed, making the dataset cleaner.

Filling Blank Data#

Fill blank cells in an Excel spreadsheet:

You: Please help me fill the blank cells in this Excel spreadsheet with "None". (Upload Excel file)

Claude: Blank cells have been filled:

Processing results

  • Original blank cells: 25
  • Filled: 25
  • Fill content: "None"

All blank cells have been filled with "None".

Removing Empty Rows and Columns#

Remove empty rows and empty columns from an Excel spreadsheet:

You: Please help me remove empty rows and empty columns from this Excel spreadsheet. (Upload Excel file)

Claude: Empty rows and empty columns have been removed:

Processing results

  • Empty rows removed: 8 rows
  • Empty columns removed: 3 columns
  • Retained data: complete

Empty rows and empty columns have been removed, making the spreadsheet cleaner.

Format Standardization#

Standardizing Date Formats#

Standardize the date format in an Excel spreadsheet:

You: Please help me standardize the date format in this Excel spreadsheet to YYYY-MM-DD. (Upload Excel file)

Claude: Date formats have been standardized:

Processing results

  • Original date formats: multiple formats, such as 2024/1/5, 2024-1-5, January 5, 2024, and so on
  • Standardized format: YYYY-MM-DD (2024-01-05)
  • Cells processed: 45

All dates have been standardized to the YYYY-MM-DD format.

Standardizing Number Formats#

Standardize the number format in an Excel spreadsheet:

You: Please help me standardize the amount format in this Excel spreadsheet by keeping two decimal places and adding thousands separators. (Upload Excel file)

Claude: Number formats have been standardized:

Processing results

  • Original formats: multiple formats, such as 1200, 1,200, 1200.00, and so on
  • Standardized format: 1,200.00 (two decimal places with thousands separators)
  • Cells processed: 68

All amounts have been standardized.

Standardizing Text Formats#

Standardize the text format in an Excel spreadsheet:

You: Please help me standardize the text format in this Excel spreadsheet by trimming leading and trailing spaces and converting everything to uppercase. (Upload Excel file)

Claude: Text formats have been standardized:

Processing results

  • Processing method: trim leading and trailing spaces, convert everything to uppercase
  • Cells processed: 52

All text has been standardized.

Data Filtering#

Filtering by Condition#

Filter data based on conditions:

You: Please help me filter this Excel spreadsheet to find records where sales are greater than 100,000. (Upload Excel file)

Claude: Records matching the condition have been filtered:

Filter condition

  • Sales > 100,000

Filter results

Product NameSalesSales DateSalesperson
Product A150,00045,306Zhang San
Product B120,00045,311Li Si
Product C180,00045,316Wang Wu
Product D135,00045,319Zhao Liu

A total of 4 records were filtered.

Filtering by Date#

Filter data based on a date range:

You: Please help me filter this Excel spreadsheet to find sales records from January 2024. (Upload Excel file)

Claude: Records matching the condition have been filtered:

Filter condition

  • Date range: 2024-01-01 to 2024-01-31

Filter results

DateProductSalesSalesperson
2024/1/5Product A1921/11/25Zhang San
2024/1/10Product B1932/11/7Li Si
2024/1/15Product C1941/1/24Wang Wu
2024/1/20Product A1924/8/21Zhang San
2024/1/25Product B1930/2/11Li Si

A total of 5 records were filtered.

Filtering by Text#

Filter data based on text content:

You: Please help me filter this Excel spreadsheet to find records where the salesperson is "Zhang San". (Upload Excel file)

Claude: Records matching the condition have been filtered:

Filter condition

  • Salesperson = Zhang San

Filter results

DateProductSalesSalesperson
2024/1/5Product A1921/11/25Zhang San
2024/1/12Product C1949/4/12Zhang San
2024/1/20Product A1924/8/21Zhang San
2024/1/28Product B1938/4/30Zhang San

A total of 4 records were filtered.

Example Use Case#

Case: A Finance Team Organizes Sales Data#

Scenario: A finance team needs to organize sales data by cleaning the data, standardizing formats, and filtering key information.

You: Please help me organize this sales data spreadsheet:

  1. Remove duplicate rows
  2. Fill blank cells with "None"
  3. Standardize the date format to YYYY-MM-DD
  4. Standardize the amount format to keep two decimal places
  5. Filter records where sales are greater than 50,000. (Upload Excel file)

Claude: Sales data organization is complete:

  1. Data cleaning
  • Duplicate rows removed: 5 rows
  • Blank cells filled: 8 cells (filled with "None")
  1. Format standardization
  • Date format: standardized to YYYY-MM-DD
  • Amount format: standardized to keep two decimal places
  1. Data filtering

Filtered records where sales > 50,000:

DateProduct NameSalesSalespersonRegion
2024/1/5Product A2077/12/16Zhang SanBeijing
2024/1/12Product B2113/7/21Li SiShanghai
2024/1/18Product C2151/11/19Wang WuGuangzhou
2024/1/25Product A2132/9/19Zhang SanBeijing
2024/1/30Product D2187/6/23Zhao LiuShenzhen

A total of 5 records were filtered.

  1. Data analysis
  • Total sales: 425,000.00 yuan
  • Average sales: 85,000.00 yuan
  • Highest sales: 105,000.00 yuan (Product D)
  • Lowest sales: 65,000.00 yuan (Product A)
  1. Salesperson ranking
  2. Zhang San: 150,000.00 yuan
  3. Li Si: 78,000.00 yuan
  4. Wang Wu: 92,000.00 yuan
  5. Zhao Liu: 105,000.00 yuan

The sales data has been organized and is ready to use for report creation.

Tips#

  1. Back up your data: Always back up the original data before processing it
  2. Process step by step: For complex data processing, break it into steps and verify the results at each step
  3. Use filters: Filter out the data you need to process first, then process it for better efficiency
  4. Document the process: Record each processing step so you can trace and review it later
  5. Validate the results: After processing, verify the accuracy and completeness of the data
  6. Save processing rules: For frequently used data processing rules, save them so you can reuse them next time

Now, try asking Claude Code to help you process some Excel data!

6.2 Data Statistics and Analysis#

Claude Code can help you perform in-depth statistics and analysis on your data, uncover patterns and insights, and support decision-making.

Generate Statistical Results#

Basic Statistics#

Generate basic statistical information for the data:

You: Please help me generate statistical results for this sales data (upload Excel file)

Claude: Basic statistical results have been generated:

Overall statistics

  • Number of data rows: 100 rows
  • Total sales: 1,234,567 yuan
  • Average sales: 12,345.67 yuan
  • Highest sales: 50,000 yuan
  • Lowest sales: 1,000 yuan
  • Median: 10,500 yuan
  • Standard deviation: 8,234.56 yuan

Statistics by product

Product NameSalesShareAverage Unit Price
Product A400,000010,000
Product B350,00008,750
Product C300,00007,500
Product D184,56709,228

Statistics by region

RegionSalesShare
Beijing400,0000
Shanghai350,0000
Guangzhou300,0000
Shenzhen184,5670

Frequency Statistics#

Count how often each value appears in the data:

You: Please help me count the number of customers in each region in this customer data (upload Excel file)

Claude: Regional customer frequency statistics have been generated:

Customer count by region

RegionCustomer CountShare
Beijing3500%35%
Shanghai2800%28%
Guangzhou2200%22%
Shenzhen1500%15%

Analysis conclusions

  • Beijing has the most customers, accounting for 35%
  • Shanghai comes next, accounting for 28%
  • Guangzhou and Shenzhen have relatively fewer customers

Percentage Statistics#

Calculate the percentage distribution of the data:

You: Please help me calculate each product's share of sales in this sales data (upload Excel file)

Claude: Sales shares have been calculated:

Product sales share

Product NameSalesShare
Product A500,0000
Product B350,0000
Product C250,0000
Product D134,5670

Analysis conclusions

  • Product A is the flagship product, accounting for more than 40%
  • Product A and Product B together account for nearly 70%
  • Product D has a relatively small share and could be considered for optimization or discontinuation

Time Trend Analysis#

Analyze how the data changes over time:

You: Please help me analyze the time trend in this sales data (upload Excel file)

Claude: Time trend analysis has been completed:

Monthly sales trend

MonthSalesMonth-over-Month Growth
January80,000-
February95,0000
March110,0000
April105,000-0
May120,0000
June135,0000

Trend analysis

  1. Overall trend: Sales are trending upward, growing from 80,000 yuan in January to 135,000 yuan in June
  2. Growth: Cumulative growth over 6 months is 68.8%
  3. Fluctuation: There was a slight decline in April (-4.5%), followed by a return to growth
  4. Average growth: The average monthly growth rate is about 11.5%

Forecast

If the current growth trend continues, July sales are expected to reach around 150,000 yuan.

Seasonality Analysis#

Analyze seasonal patterns in the data:

You: Please help me analyze the seasonality in this sales data (upload Excel file)

Claude: Seasonality analysis has been completed:

Quarterly sales data

QuarterSalesShare
Q1285,0000
Q2360,0000
Q3320,0000
Q4269,5670

Seasonality analysis

  1. Peak season: Q2 is the peak sales season, accounting for 29.2%
  2. Off season: Q4 is the off season for sales, accounting for 21.8%
  3. Seasonal difference: The peak season is 7.4 percentage points higher than the off season
  4. Pattern summary: Sales in the first half of the year are better than in the second half, with Q2 reaching the peak

Recommendations

  • Increase inventory before the peak season to ensure sufficient supply
  • Strengthen promotions during the off season to improve sales performance

Year-over-Year and Month-over-Month Analysis#

Analyze year-over-year and month-over-month changes in the data:

You: Please help me analyze the year-over-year and month-over-month changes in this sales data (upload Excel file)

Claude: Year-over-year and month-over-month analysis has been completed:

Sales data year-over-year and month-over-month analysis

Month2023 Sales2024 SalesYoY GrowthMoM Growth
January70,00080,0000-
February80,00095,00000
March90,000110,00000
April95,000105,0000-0
May100,000120,00000
June110,000135,00000

Analysis conclusions

  1. YoY growth: All months achieved year-over-year growth, with an average growth rate of 18.1%
  2. MoM growth: Except for April, all other months achieved month-over-month growth
  3. Growth trend: Overall, the data shows steady growth
  4. Best performance: June performed best, with year-over-year growth of 22.7%

Discover Data Insights#

Outlier Detection#

Detect outliers in the data:

You: Please help me detect outliers in this sales data (upload Excel file)

Claude: Outliers have been detected:

Outlier detection results

  • Detection method: 3σ rule (outside the mean ± 3 standard deviations)
  • Mean: 12,345.67 yuan
  • Standard deviation: 8,234.56 yuan
  • Upper limit: 37,049.35 yuan
  • Lower limit: -12,358.01 yuan

Outlier list

DateProductSalesOutlier Reason
2024/3/15Product A2036/11/21Exceeds upper limit
2024/5/20Product B2031/6/1Exceeds upper limit

Analysis recommendations

  1. Verify the authenticity of these two sales records
  2. Check whether there were data entry errors
  3. If they are real sales, analyze the reasons for their success and summarize the learnings

Correlation Analysis#

Analyze correlations between data points:

You: Please help me analyze the correlation between ad spend and sales in this data (upload Excel file)

Claude: Correlation analysis has been completed:

Correlation analysis results

  • Correlation coefficient: 0.85
  • Correlation strength: Strong positive correlation
  • P-value: < 0.01 (significance level)

Analysis conclusion

There is a strong positive correlation between ad spend and sales (correlation coefficient 0.85), indicating that ad spend has a significant impact on sales.

Regression analysis

  • Regression equation: Sales = 2.5 × Ad Spend + 10,000
  • R² = 0.72 (good fit)

Recommendations

  1. Continue maintaining ad spend to sustain sales growth
  2. Optimize the ad delivery strategy to improve ad efficiency
  3. Monitor the return on ad spend to ensure a reasonable input-output ratio

Cluster Analysis#

Perform cluster analysis on the data:

You: Please help me perform cluster analysis on this customer data and divide customers into three groups: high-value, mid-value, and low-value (upload Excel file)

Claude: Customer cluster analysis has been completed:

Cluster analysis results

High-value customers (20 people)

  • Characteristics: Annual spending > 50,000 yuan
  • Total spending: 1,200,000 yuan
  • Average spending: 60,000 yuan
  • Share of total spending: 60%

Mid-value customers (30 people)

  • Characteristics: Annual spending 20,000 - 50,000 yuan
  • Total spending: 600,000 yuan
  • Average spending: 20,000 yuan
  • Share of total spending: 30%

Low-value customers (50 people)

  • Characteristics: Annual spending < 20,000 yuan
  • Total spending: 200,000 yuan
  • Average spending: 4,000 yuan
  • Share of total spending: 10% Marketing recommendations
  1. High-value customers: provide dedicated services, follow up regularly, and maintain relationships
  2. Mid-value customers: offer promotions, increase spending, and convert them into high-value customers
  3. Low-value customers: offer entry-level products and help them build purchasing habits

Case examples#

Case: Marketing staff analyzing customer data#

Scenario: Marketing staff need to analyze customer data, understand customer characteristics, and develop marketing strategies.

You: Please help me analyze this customer data and provide marketing recommendations (upload an Excel file)

Claude: Customer data analysis completed:


Customer Data Analysis Report

I. Customer overview#

  • Total customers: 500
  • Total spending: 5,000,000 yuan
  • Average spending: 10,000 yuan
  • Median spending: 8,000 yuan

II. Customer profile#

  1. Regional distribution
RegionCustomersShareAverage spending
Beijing15000%30%1200000%
Shanghai12500%25%1100000%
Guangzhou10000%20%900000%
Shenzhen7500%15%800000%
Other5000%10%700000%
  1. Age distribution
Age groupCustomersShareAverage spending
18-2510000%20%600000%
26-3520000%40%1200000%
36-4515000%30%1100000%
46 and above5000%10%800000%
  1. Gender distribution
GenderCustomersShareAverage spending
Male28000%56%1100000%
Female22000%44%900000%

III. Consumption behavior analysis#

  1. Purchase frequency
  • High-frequency customers (>10 times/year): 50 customers, 10%, average spending 20,000 yuan
  • Medium-frequency customers (5-10 times/year): 150 customers, 30%, average spending 12,000 yuan
  • Low-frequency customers (<5 times/year): 300 customers, 60%, average spending 6,000 yuan
  1. Purchase preferences
  • Product A: 300 purchasers, 60%
  • Product B: 250 purchasers, 50%
  • Product C: 200 purchasers, 40%
  • Product D: 150 purchasers, 30%

IV. Customer value analysis#

Customer segmentation

SegmentCustomersShareTotal spendingAverage spending
VIP customers5000%10%150000000%3000000%
Key customers10000%20%150000000%1500000%
Regular customers20000%40%150000000%750000%
Potential customers15000%30%50000000%333300%

V. Marketing recommendations#

  1. VIP customer retention
  • Provide dedicated customer support and one-on-one service
  • Send gifts and coupons regularly
  • Invite them to premium events
  • Offer priority access to new products
  1. Key customer growth
  • Provide personalized recommendations
  • Send regular care messages
  • Offer upgrade discounts to convert them into VIP customers
  • Build customer communities to increase stickiness
  1. Regular customer activation
  • Send promotional messages to stimulate purchases
  • Recommend suitable product bundles
  • Offer first-purchase discounts
  • Encourage higher purchase frequency
  1. Potential customer development
  • Send starter gift packs to lower the barrier to trial
  • Offer product trial opportunities
  • Strengthen brand promotion to improve awareness
  • Acquire customers through social media
  1. Regional strategy
  • Focus on developing the Beijing and Shanghai markets (high-spending regions)
  • Strengthen penetration in the Guangzhou and Shenzhen markets
  • Use online marketing as the main approach for other regions
  1. Age strategy
  • Customers aged 26-45 are the core customer group and should be prioritized for retention
  • Customers aged 18-25 are potential customers and should be nurtured
  • For customers aged 46 and above, provide age-friendly services

Tips#

  1. Define the analysis goal: know exactly what you want to analyze and what outcome you want to achieve
  2. Choose the right analysis method: select an appropriate method based on the data type and analysis goal
  3. Visualize the results: present analysis results with charts so they are easier to understand at a glance
  4. Combine with business context: ground the analysis results in real business conditions and avoid impractical conclusions
  5. Provide actionable recommendations: don't just identify problems; propose feasible solutions
  6. Track continuously: monitor analysis results regularly and validate whether the recommendations are effective

Now, try asking Claude Code to help you analyze some data!

6.3 Chart and report generation#

Claude Code can help you generate various data charts and professional analysis reports, making data visual and analysis results easier to understand.

Generating data charts#

Bar charts#

Generate a bar chart to compare data:

You: Please help me generate a bar chart comparing the sales revenue of each product (upload an Excel file)

Claude: Bar chart generated:

Product Sales Revenue Comparison Bar Chart

bash
Sales revenue (yuan)
  500,000 |        ■■■■■
  400,000 |        ■■■■
  300,000 |        ■■■
  200,000 |        ■■
  100,000 |        ■
          +-------------------
          Product A  Product B  Product C  Product D

Data notes

  • Product A: 500,000 yuan
  • Product B: 400,000 yuan
  • Product C: 300,000 yuan
  • Product D: 200,000 yuan

Analysis conclusion

Product A has the highest sales revenue, 2.5 times that of Product D.

Line charts#

Generate a line chart to show data trends:

You: Please help me generate a line chart showing the time trend of sales revenue (upload an Excel file)

Claude: Line chart generated:

Sales Revenue Time Trend Line Chart

Markdown
Sales revenue (yuan)
  150,000 |              *
  120,000 |        *     *
   90,000 |   *     *     *
   60,000 |   *     *     *
   30,000 |   *     *     *
          +-------------------
          Jan  Feb  Mar  Apr  May  Jun

Data notes

  • January: 80,000 yuan
  • February: 95,000 yuan
  • March: 110,000 yuan
  • April: 105,000 yuan
  • May: 120,000 yuan
  • June: 135,000 yuan

Analysis conclusion

The overall trend is upward, with cumulative growth of 68.8% over six months.

Pie charts#

Generate a pie chart to show data proportions:

You: Please help me generate a pie chart showing the sales revenue share by region (upload an Excel file)

Claude: Pie chart generated:

Sales Revenue Share by Region Pie Chart

bash
        Beijing 32.4%
           ■■■■■■■
        ■■■■■■■■■■■■■■■■
      ■■■■■■■■■■■■■■■■■■■
     ■■■■■■■■■■■■■■■■■■■■■■
    ■■■■■■■■■■■■■■■■■■■■■■■■
    ■■■■■■■■■■■■■■■■■■■■■■■■
     ■■■■■■■■■■■■■■■■■■■■■
      ■■■■■■■■■■■■■■■■■■
       ■■■■■■■■■■■■■■■
         Shanghai 28.4%
           Guangzhou 24.3%
           Shenzhen 14.9%

Data notes

  • Beijing: 32.4%
  • Shanghai: 28.4%
  • Guangzhou: 24.3%
  • Shenzhen: 14.9%

Analysis conclusion

Beijing has the highest share of sales revenue, while Shenzhen has the lowest.

Writing analysis reports#

Sales analysis report#

Generate a professional sales analysis report:

You: Please help me write a monthly sales analysis report based on this sales data (upload an Excel file)

Claude: Monthly sales analysis report generated:


January 2024 Sales Analysis Report

I. Overall overview#

This month's sales performance was strong, and all metrics met the expected targets.

Key metrics

  • Total sales revenue: 1,234,567 yuan
  • Target completion rate: 102.9%
  • Year-over-year growth: 15.3%
  • Month-over-month growth: 8.7%

II. Sales details#

  1. By product category
Product nameSales revenueShareYear-over-year growth
Product A500,00000
Product B350,00000
Product C250,00000
Product D134,56700
Analysis:
  • Product A continues to be the main contributor, accounting for more than 40%
  • Product C grew the fastest, with a year-over-year increase of 20.1%
  • Product D grew relatively slowly and needs attention
  1. By region
RegionSalesShareYoY growth
Beijing400,00000
Shanghai350,00000
Guangzhou300,00000
Shenzhen184,56700

Analysis:

  • Beijing performed best, with a year-over-year increase of 18.5%
  • Shenzhen grew relatively slowly, and marketing efforts should be strengthened
  1. By salesperson
SalespersonSalesShareYoY growth
Zhang San450,00000
Li Si380,00000
Wang Wu280,00000
Zhao Liu124,56700

Analysis:

  • Zhang San performed particularly well, accounting for 36.5% of sales
  • Zhao Liu needs additional training and guidance

III. Highlights and issues#

Highlights

  1. Overall sales exceeded the target, with a completion rate of 102.9%
  2. Product C grew rapidly and became a new growth driver
  3. Beijing performed strongly, with a year-over-year increase of 18.5%
  4. Zhang San delivered outstanding sales performance, with a year-over-year increase of 22.1%

Issues

  1. Product D grew slowly, with only 5.6% growth
  2. Shenzhen showed weak growth, with a year-over-year increase of 8.7%
  3. Zhao Liu’s performance was below expectations and needs attention

IV. Plan for next month#

  1. Sales targets
  • Total sales target: 1,350,000 yuan
  • Growth target: 9.4% month-over-month growth
  1. Key actions
  • Strengthen marketing for Product D
  • Increase market investment in Shenzhen
  • Provide dedicated training for Zhao Liu
  • Optimize the sales strategy to improve overall performance

V. Risk warnings#

  1. Intensifying market competition may affect sales growth
  2. Weak economic conditions in some regions may affect consumption
  3. Product D is not competitive enough and needs improvement

VI. Summary#

This month’s sales performance was strong, and all key indicators met expectations. However, there is still room for improvement, especially for Product D and the Shenzhen region. Next month, the team will continue working hard to achieve better results.

Customer analysis report#

Generate a professional customer analysis report:

You: Please help me write a customer analysis report based on this customer data (upload an Excel file)

Claude: Customer analysis report generated:


Customer analysis report

I. Customer overview#

As of January 2024, the company had 500 customers. The customer structure is balanced, and value contribution is stable.

Key metrics

  • Total customers: 500
  • Total spending: 5,000,000 yuan
  • Average spending: 10,000 yuan
  • Customer retention rate: 85%

II. Customer segmentation#

  1. VIP customers (50 customers, 10%)
  • Characteristics: annual spending > 50,000 yuan
  • Total spending: 1,500,000 yuan
  • Average spending: 30,000 yuan
  • Share of total spending: 30%

Analysis:

Although VIP customers are few in number, they contribute 30% of total spending and are the company’s core customer group.

  1. Key customers (100 customers, 20%)
  • Characteristics: annual spending of 20,000–50,000 yuan
  • Total spending: 1,500,000 yuan
  • Average spending: 15,000 yuan
  • Share of total spending: 30%

Analysis:

Key customers are one of the company’s main customer groups and have the potential to convert into VIP customers.

  1. Regular customers (200 customers, 40%)
  • Characteristics: annual spending of 5,000–20,000 yuan
  • Total spending: 1,500,000 yuan
  • Average spending: 7,500 yuan
  • Share of total spending: 30%

Analysis:

Regular customers make up the largest group and form the company’s foundational customer base.

  1. Potential customers (150 customers, 30%)
  • Characteristics: annual spending < 5,000 yuan
  • Total spending: 500,000 yuan
  • Average spending: 3,333 yuan
  • Share of total spending: 10%

Analysis:

Potential customers currently have limited spending capacity, but there is room for growth.

III. Customer characteristics#

  1. Regional distribution
  • Beijing: 150 customers (30%), average spending 12,000 yuan
  • Shanghai: 125 customers (25%), average spending 11,000 yuan
  • Guangzhou: 100 customers (20%), average spending 9,000 yuan
  • Shenzhen: 75 customers (15%), average spending 8,000 yuan
  • Other: 50 customers (10%), average spending 7,000 yuan
  1. Age distribution
  • Ages 18–25: 100 customers (20%), average spending 6,000 yuan
  • Ages 26–35: 200 customers (40%), average spending 12,000 yuan
  • Ages 36–45: 150 customers (30%), average spending 11,000 yuan
  • Ages 46 and above: 50 customers (10%), average spending 8,000 yuan
  1. Gender distribution
  • Male: 280 customers (56%), average spending 11,000 yuan
  • Female: 220 customers (44%), average spending 9,000 yuan

IV. Customer behavior#

  1. Purchase frequency
  • High-frequency customers (>10 times/year): 50 customers, 10%
  • Medium-frequency customers (5–10 times/year): 150 customers, 30%
  • Low-frequency customers (<5 times/year): 300 customers, 60%
  1. Purchase preferences
  • Product A: 300 buyers, 60%
  • Product B: 250 buyers, 50%
  • Product C: 200 buyers, 40%
  • Product D: 150 buyers, 30%

V. Marketing recommendations#

  1. VIP customer retention
  • Provide exclusive service and one-on-one customer support
  • Regularly send gifts and coupons
  • Invite them to premium events
  • Offer early access to new products
  1. Key customer growth
  • Provide personalized recommendations
  • Send regular care and engagement messages
  • Offer upgrade incentives to convert them into VIP customers
  • Build customer communities to increase stickiness
  1. Regular customer activation
  • Send promotional messages to stimulate spending
  • Recommend suitable product bundles
  • Offer first-purchase discounts
  • Encourage more frequent purchases
  1. Potential customer development
  • Send starter packages to lower the barrier to trial
  • Offer product trial opportunities
  • Strengthen brand promotion to improve awareness
  • Acquire customers through social media

VI. Summary#

The company’s customer structure is balanced, with an even distribution across customer tiers. Next month, the team will focus on retaining VIP customers, growing key customers, activating regular customers, and developing potential customers to comprehensively improve customer value.


Example cases#

Case: Finance staff generate a monthly report#

Scenario: Finance staff need to generate a monthly report based on sales data, including charts and analysis.

You: Please help me generate a monthly report based on this sales data, including charts and analysis (upload an Excel file)

Claude: Monthly report generated:


January 2024 sales monthly report

I. Sales overview#

Key metrics

  • Total sales: 1,234,567 yuan
  • Target completion rate: 102.9%
  • Year-over-year growth: 15.3%
  • Month-over-month growth: 8.7%

II. Sales trend chart#

Markdown
Sales (yuan)
  150,000 |              *
  120,000 |        *     *
   90,000 |   *     *     *
   60,000 |   *     *     *
   30,000 |   *     *     *
          +-------------------
          Jan  Feb  Mar  Apr  May  Jun

III. Product sales comparison#

Bar chart comparing product sales

bash
Sales (yuan)
  500,000 |        ■■■■■
  400,000 |        ■■■■
  300,000 |        ■■■
  200,000 |        ■■
  100,000 |        ■
          +-------------------
          Product A  Product B  Product C  Product D

Product sales details table

Product nameSalesShareYoY growth
Product A500,00000
Product B350,00000
Product C250,00000
Product D134,56700

IV. Regional sales distribution#

Pie chart of each region’s sales share

bash
        Beijing 32.4%
           ■■■■■■■
        ■■■■■■■■■■■■■■■■
      ■■■■■■■■■■■■■■■■■■■
     ■■■■■■■■■■■■■■■■■■■■■■
    ■■■■■■■■■■■■■■■■■■■■■■■■
    ■■■■■■■■■■■■■■■■■■■■■■■■
     ■■■■■■■■■■■■■■■■■■■■■
      ■■■■■■■■■■■■■■■■■■
       ■■■■■■■■■■■■■■■
         Shanghai 28.4%
           Guangzhou 24.3%
           Shenzhen 14.9%

Regional Sales Details

RegionSalesShareYoY Growth
Beijing400,00000
Shanghai350,00000
Guangzhou300,00000
Shenzhen184,56700

V. Salesperson Performance Ranking#

RankSalespersonSalesShareYoY Growth
1Zhang San450,00000
2Li Si380,00000
3Wang Wu280,00000
4Zhao Liu124,56700

VI. Highlights and Issues#

Highlights

  1. Overall sales exceeded the target, with a completion rate of 102.9%
  2. Product C grew rapidly, up 20.1% year over year
  3. Beijing performed strongly, up 18.5% year over year
  4. Zhang San delivered outstanding sales performance, up 22.1% year over year

Issues

  1. Product D grew slowly, up only 5.6%
  2. Growth in Shenzhen was weak, up 8.7% year over year
  3. Zhao Liu's performance was below expectations and needs attention

VII. Plan for Next Month#

Sales Targets

  • Total sales target: 1,350,000 yuan
  • Growth target: 9.4% month-over-month growth

Key Actions

  1. Strengthen marketing for Product D
  2. Increase market investment in Shenzhen
  3. Provide targeted training for Zhao Liu
  4. Optimize sales strategies to improve overall performance

VIII. Risk Notes#

  1. Intensifying market competition may affect sales growth
  2. Weak economic conditions in some regions may affect consumption
  3. Product D lacks sufficient competitiveness and needs improvement

Tips#

  1. Choose the right chart type: select the most suitable chart type based on the data characteristics
  2. Keep charts simple and clear: avoid excessive decoration and highlight the data itself
  3. Keep the report structure clear: use clear headings and hierarchy
  4. Keep the data accurate: make sure the data in the report is correct
  5. Go deep in the analysis: don't just show the data; provide deeper analysis and insights
  6. Make recommendations actionable: keep your recommendations specific and executable

Now, try asking Claude Code to help you generate some charts and reports!


Start Connecting to Crazyrouter#

If you're ready to connect Claude Code, domestic models, or your own applications to Crazyrouter through a unified setup, follow this sequence:

  1. Go to the Crazyrouter console, create a dedicated API Token, and manage permissions separately by project or team.
  2. Use the root domain for Claude Code: https://cn.crazyrouter.com; use https://cn.crazyrouter.com/v1 for OpenAI-compatible SDKs.
  3. When you need to automatically check the environment or quickly write configuration, use the Crazyrouter Claude Code one-click configuration script.
  4. If debugging fails, check the console logs first, then verify the API Endpoint guide. Pay special attention to whether the Base URL has an extra /v1.

When you need to evaluate model costs or choose different models, check the Crazyrouter pricing and models page first, then add your commonly used models to the Token whitelist.

Implementation Guides

Related Posts

01|Quick Start: Connecting Claude Code to CrazyrouterClaude Code

01|Quick Start: Connecting Claude Code to Crazyrouter

01|Quick Start: Connecting Claude Code to Crazyrouter. This article covers unified access, configuration checks, and practical workflows for using Claude Code with Crazyrouter, helping readers follow the site documentation to build a reusable development workflow.

Jun 10
18|Claude Code on Crazyrouter, Series 18: In the AI Era, If You Can Speak, You Can CodeClaude Code

18|Claude Code on Crazyrouter, Series 18: In the AI Era, If You Can Speak, You Can Code

18|Claude Code on Crazyrouter, Series 18: In the AI era, if you can speak, you can code. This article covers Claude Code's unified integration with Crazyrouter, configuration checks, and hands-on workflows, helping readers follow the site documentation to build a reusable development workflow.

Jun 10
16|Claude Code with Crazyrouter Series 16: Chapter 13: Reusing Documentation to Solve Similar ProblemsClaude Code

16|Claude Code with Crazyrouter Series 16: Chapter 13: Reusing Documentation to Solve Similar Problems

16|Claude Code with Crazyrouter Series 16: Chapter 13: Reusing Documentation to Solve Similar Problems. This article covers unified integration, configuration checks, and hands-on workflows for Claude Code and Crazyrouter, helping readers follow the site documentation to build reusable development workflows.

Jun 10
08|Claude Code Integration with Crazyrouter, Series 08: Chapter 5: Document Management and ProcessingClaude Code

08|Claude Code Integration with Crazyrouter, Series 08: Chapter 5: Document Management and Processing

This article covers Claude Code's unified integration with Crazyrouter, configuration checks, and a hands-on workflow, helping readers follow the site documentation to build a reusable development workflow.

Jun 10
03|Enterprise-Grade Claude Code Integration with Crazyrouter in PracticeClaude Code

03|Enterprise-Grade Claude Code Integration with Crazyrouter in Practice

03|Enterprise-Grade Claude Code Integration with Crazyrouter in Practice. This article walks through unified access, configuration checks, and hands-on workflows for Claude Code and Crazyrouter, helping readers follow the documentation to build reusable development workflows.

Jun 10
02|Engineering Practice: Integrating Claude Code with CrazyrouterClaude Code

02|Engineering Practice: Integrating Claude Code with Crazyrouter

02|Engineering Practice: Integrating Claude Code with Crazyrouter. This article covers unified integration, configuration checks, and hands-on workflows for using Claude Code with Crazyrouter, helping developers build a reusable development workflow based on the site documentation.

Jun 10