+ Reply to Thread
Results 1 to 3 of 3

hi:hello

  1. #1
    Registered User
    Join Date
    08-03-2011
    Location
    mumbai
    MS-Off Ver
    Excel 2003
    Posts
    1

    hi:hello

    Hi..

    Problem:
    column A has dates in m/d/yyyy format. iam applying auto filter on A
    and counting each of the filtered rows.

    I wanted the sum of column B(contains nos) filtered rows.. in to some other column.

    suppose my filterd result contains 7 values. i want the sum of all 7 values of colum B.
    next time filtered result may contain 15 values. i want the sum of all 15 values of colum B.
    iam using the SUBTOTAL macro code to get the result. but failing...

    i need macro code.

    ActiveSheet.Range("$k$1:$k$" & iRow).AutoFilter Field:=1, Criteria1:= _ (((( Auto filter here)))
    "<=" & Cell_a_value

    RangeToCount = "T51:T999" & iRow
    On Error Resume Next
    VisibleRows = Range(RangeToCount).SpecialCells(xlCellVisible).count (((( Counting the filtered rows))))


    i need code for sum of the filtered rows.


    help..
    Last edited by c14; 08-03-2011 at 09:24 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    re: hi:hello

    Welcome to the forum.

    Please take a few minutes to read the forum rules, and then amend your thread title accordingly.

    Thanks.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    re: hi:hello

    And edit to add code tags
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ 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