+ Reply to Thread
Results 1 to 3 of 3

sum visible (filtered) rows only im multiple columns

  1. #1
    Registered User
    Join Date
    10-24-2011
    Location
    Orlando, FL
    MS-Off Ver
    Office 365 for Business
    Posts
    79

    sum visible (filtered) rows only im multiple columns

    Hello!
    I have a report that is generated by a macro. The macro copies another worksheet into a new worksheet, hides rows and columns to show a condensed version of the original worksheet.
    Now, I need to sum some of the columns (3 columns). I found a code in MS forum to sum one column, and every other example I find elsewhere only shows 1 column. I need 3 columns summed.
    Also, the new report is filtered, so I cannot sum the entire column, just the visible rows.

    So, to sum column U, I have:
    Please Login or Register  to view this content.
    It works great. Now, I need to sum columns Y and Z also.
    I have tried to dup this step with the additional ranges, but I get a duplicate Range error. I have also tried incorporating Y3:Y and Z3:Z into the Active.Sheet.Range, but I get an error with the range doing that.

    So, I am wondering how to add the totals for the additional 2 columns.

    Any help would be greatly appreciated! Thank you!

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: sum visible (filtered) rows only im multiple columns

    Try this (untested)

    Please Login or Register  to view this content.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    10-24-2011
    Location
    Orlando, FL
    MS-Off Ver
    Office 365 for Business
    Posts
    79

    Re: sum visible (filtered) rows only im multiple columns

    Oeldere: Thank you for the suggestion. This did not work to total the other columns.
    What I did instead was create new Macros for the next steps, and then linked them together to work all together. In that way, it does give me the result I needed.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Return all rows filtered by multiple columns
    By M_Stenton in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-27-2022, 10:15 AM
  2. Looping through visible rows in a filtered column and copying to these rows
    By vorabj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2020, 07:05 AM
  3. [SOLVED] Delete visible filtered rows
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-14-2019, 02:04 PM
  4. [SOLVED] Selecting the first x visible rows of a filtered table
    By DreamEyes in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-27-2017, 11:05 AM
  5. [SOLVED] Format Filtered Visible Rows of Table
    By Redled89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-27-2017, 12:40 AM
  6. Filter - Multiple Columns - Loop through Visible Rows issue
    By Vinod Krishna.C in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2014, 05:30 PM
  7. Resize Visible Rows based only on Visible Columns text
    By Zimbo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-22-2009, 10:55 AM

Tags for this Thread

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