Want to ask, nearly hundreds of different types of Excel table imported to get the data solution?

Source: Internet
Author: User
Keywords Php excel
There are hundreds of Excel tables with different style styles. Each different Excel table uploads, in addition to the table header, to get the data of the indeterminate row, the code to write is not all the same? Write a different code for each Excel table?

Oh, yes, not at the same time import ...
(It seems a bit around ...) )

Reply content:

There are hundreds of Excel tables with different style styles. Each different Excel table uploads, in addition to the table header, to get the data of the indeterminate row, the code to write is not all the same? Write a different code for each Excel table?

Oh, yes, not at the same time import ...
(It seems a bit around ...) )

Phpexcel just follow the ranks to get the content. If you have a variable content, you can make a dynamic operation. For example:
Load the Excel content first, and then list it. Then manually select which column corresponds to which data you need and then import it ~ ~

Of course, certain specific rules can be automatically imported, such as phone numbers, names and other specific characteristics of the field can be judged.
or fixed header content, etc.

You can refer to the GUI program import method, first import the first row header, manually specify which column corresponds to which field and then perform the import

  • 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.