Excel file has the following data, no database, how to do data statistics?

Source: Internet
Author: User
ID Band (brand) num (sales quantity) Price (unit)
1 Samsung 7677 2300
2 Huawei 9877 1699
3 Apples 24552 6799
... More brands, the number is unknown, consider the large amount of Excel inside the situation

Problem:
If you are going to count the top 3 brands with the largest total amount of sales (database not available)
Next idea, thank you.

Reply content:

ID Band (brand) num (sales quantity) Price (unit)
1 Samsung 7677 2300
2 Huawei 9877 1699
3 Apples 24552 6799
... More brands, the number is unknown, consider the large amount of Excel inside the situation

Problem:
If you are going to count the top 3 brands with the largest total amount of sales (database not available)
Next idea, thank you.

PHP Gets the execl content, each cell will be a key to the array, according to the brand key cumulative sales (quantity * price), the final sort of the top three.

Thank you for inviting me. You can use the Excel file to read a program to organize the array, and then sort the price of the array. Personal understanding

Problems with Excel?

    • Create a new column to calculate the total sales for each row;

    • Turn on filtering

    • To sort

PHP Implementation method:


  
   
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.