返回

Tables Part 3: The Beauty of Tables, Continued (Pt. 3) Using Formulas with Tables

Excel技巧

Tables are a powerful new feature in Excel 2007. They provide a number of advantages over traditional ranges, including the ability to use formulas with tables. This makes it much easier to perform calculations on data in tables, and to create reports and charts that are based on table data.

In this article, I will show you how to use formulas with tables. I will also provide some examples of how you can use formulas to perform calculations on table data, and to create reports and charts that are based on table data.

Using Formulas with Tables

To use a formula with a table, you simply need to enter the formula in the formula bar. The formula will automatically refer to the table range, and you can use the table headers to identify the columns that you want to use in the formula.

For example, the following formula calculates the total sales for the North region:

=SUM(Table1[Sales])

In this formula, "Table1" is the name of the table, and "Sales" is the name of the column that contains the sales data.

You can also use formulas to perform calculations on individual rows or columns in a table. For example, the following formula calculates the average sales for the North region:

=AVERAGE(Table1[Sales])

In this formula, "Table1" is the name of the table, and "Sales" is the name of the column that contains the sales data.

Examples of Using Formulas with Tables

Here are some examples of how you can use formulas to perform calculations on table data, and to create reports and charts that are based on table data:

  • Calculate the total sales for a region:
=SUM(Table1[Sales])
  • Calculate the average sales for a region:
=AVERAGE(Table1[Sales])
  • Create a report that shows the sales for each region:
Table1[Region]
  • Create a chart that shows the sales for each region:
CHART(Table1[Region], Table1[Sales])

Conclusion

Tables are a powerful new feature in Excel 2007. They provide a number of advantages over traditional ranges, including the ability to use formulas with tables. This makes it much easier to perform calculations on data in tables, and to create reports and charts that are based on table data.

In this article, I have shown you how to use formulas with tables. I have also provided some examples of how you can use formulas to perform calculations on table data, and to create reports and charts that are based on table data.

I encourage you to experiment with formulas and tables to see how they can help you to improve your productivity.