+ Reply to Thread
Results 1 to 4 of 4

adding columns in a filter

  1. #1
    Forum Contributor
    Join Date
    12-13-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    149

    adding columns in a filter

    In a large data base can i filter by the invoice number and add only the invoice amounts for those lines appearing in the filter?
    Last edited by mojobaabby; 12-05-2012 at 09:44 PM.
    Southwest Granite & Glass
    Quality, It's what we do
    http://www.swgg.ca

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: adding columns in a filter

    not sure you can sum that way. do you have a long list of invoices you want to add? perhaps sumifs() or sumproduct() would work better for you?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,814

    Re: adding columns in a filter

    Yes, instead of using SUM(range) you would use:

    =SUBTOTAL(9,range)

    and this adds only the visible values. I like to insert a couple of blank rows above the row with the filter on it and put the formula there at the top of the sheet, so that you can apply the filter and then see the effect without having to scroll down to the bottom of the list.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    12-13-2009
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: adding columns in a filter

    nailed it pete TY

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1