How to make an Excel datasheet with a page subtotal

Source: Internet
Author: User
Tags numeric value

  How to make an Excel datasheet with a page subtotal

Similar print style in some financial software has been implemented, so we can use Excel with the function to achieve this effect.

Already have a master with VBA code or small tools to achieve. But for most cousins, using VBA code is a bit tricky.

The following figure, for example, assumes that we need to print 40 lines of content per page.

First, create secondary columns

Right-click a column label, select Insert in the Drop-down list, and insert a blank column.

A1 input column heading "auxiliary", A2 input formula:

=int (ROW (A40)/40)

Double-click the fill handle in the lower-right corner of the A2 cell to quickly fill the formula to the last row in the data area.

40 of the formula can be determined based on the actual number of rows printed per page. The formula is used to generate 40 1, 40 2, 40 3 ... Such a cyclic sequence.

Copy the contents of column A, and right-click to paste as a numeric value.

Ii. Use of subtotals

Click any cell in the data source, and then click Data, and then subtotal.

In the Subtotals dialog box that pops up:

Category field to select Secondary.

Summarize by selecting Sum.

Select Totals to check the amount (principal).

Subtotal dialog box, select each group of data pagination, and click OK.

The finished effect is shown in the following illustration:

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.