• Autosum in Filtered List

    Author
    Topic
    #464036

    Stupid question of the day alert!!

    I have a filtered list amongst which are 4 columns account name, to, from and revenue. When I choose account name I would like to see a list and a total of the revenue column.

    In the main list I have tried autosum in the last revenue cell and have tried =SUM(G2:G2749) when when I filter no total shows.

    Please help put a buffoon out of his misery.

    Viewing 1 reply thread
    Author
    Replies
    • #1186491

      Insert (at least) two rows above the field names (column headers) of your data table, and place the sum formula above the data table with a blank row in between.

      BTW, the SUM function will add all cells, whether they are filtered or not. To add only the filtered cells, use SUBTOTAL:

      =SUBTOTAL(9,G4:G2751)

      (The formula takes two inserted rows into account)

      • #1186497

        Insert (at least) two rows above the field names (column headers) of your data table, and place the sum formula above the data table with a blank row in between.

        BTW, the SUM function will add all cells, whether they are filtered or not. To add only the filtered cells, use SUBTOTAL:

        =SUBTOTAL(9,G4:G2751)

        (The formula takes two inserted rows into account)

        Thanks Hans

        Right on the money as usual

        May I ask though what the 9 is in the formula?

        • #1186499

          SUBTOTAL can be used to aggregate data in several ways. The first argument specifies the operation to be used:
          1 = AVERAGE
          2 = COUNT

          9 = SUM
          etc.

          See the Excel help or SUBTOTAL.

          • #1186747

            SUBTOTAL can be used to aggregate data in several ways. The first argument specifies the operation to be used:
            1 = AVERAGE
            2 = COUNT

            9 = SUM
            etc.

            See the Excel help or SUBTOTAL.

            Thanks for the explaination Hans that is a lot clearer

    • #1186498

      The 9 is the Function Number for SUM

    Viewing 1 reply thread
    Reply To: Autosum in Filtered List

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: