How Excel function formulas combine multiple worksheets

Source: Internet
Author: User
Tags table name

how Excel function formulas combine multiple worksheets

For example, in the workbook shown in the following illustration, A,b,c,d is a table with 4 different rows in the same row, and the 4 tables need to be merged into the totals table.

Operation Steps:

1. Formula-Name Manager-new name-Enter the name "sh" in the new name, and then enter the formula in the Reference Location box:

=mid (get. Workbook (1), Find ("]", get. Workbook (1)) +1,99) &t (now ())

Formula Description:

Get. Workbook (1) is a macro table function, when the argument is 1 o'clock, you can get all the worksheet names in the current workbook, because the name contains the workbook name, so use Find+mid to intercept a string containing only the sheet name. The role of &t (now ()) is to have the formula automatically updated.

2. Enter the following formula in column A:

=index (Sh,int (ROW (A1)-1)/6) +1)

Formula Description:

The purpose of this formula is to automatically populate the name of a sheet in column A and fill the next name with every n row replacement. The maximum number of rows in a formula 6 is the current or future update of each table, as much as possible. To avoid future additions to the row summary table cannot update the data. SH is the name added to step 1th.

3. Enter the formula in B2 and fill it down to the right to get the data of each table.

=indirect ($A 2& "!") &address (COUNTIF ($A $: $A 2, $A 2) +1,column (A1))

Formula Description:

The purpose of this formula is to use the indirect function to get the value of the table based on the table name of column A. Where the address function generates cell addresses based on the number of rows and columns, such as the result of 1,1 is $a$1.

After the formula is set up and copied, you will find that the data for each table has been merged.

When you delete a table, the table data is automatically deleted in the summary table, and the table data is added automatically when you add a new job.

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.