+ Reply to Thread
Results 1 to 12 of 12

Sumifs with visible rows after filter

  1. #1
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Bournemouth
    MS-Off Ver
    Excel 2003
    Posts
    158

    Sumifs with visible rows after filter

    Hi all

    I need some help with a formula to only show me the values if the rows are visible after filter.

    Looking for

    If DZ7:DZ100000 <> "" then count how many "Yes" values within R7:R100000

    I managed to cobble this together from the net to help me with another query but could not amend to solve the issue above.

    =SUMPRODUCT(SUBTOTAL(3,OFFSET(Data!R7:R100000,ROW(Data!R7:R100000)-MIN(ROW(Data!R7:R100000)),,1)),ISNUMBER(SEARCH("Yes",Data!R7:R100000))+0)

    Thanks for any help

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Sumifs with visible rows after filter

    please attach sample excel file with desired result
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Bournemouth
    MS-Off Ver
    Excel 2003
    Posts
    158

    Re: Sumifs with visible rows after filter

    Sorry I cant. Its on a work machine and cant upload or email out as it is monitored.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumifs with visible rows after filter

    What type of data is in column DZ? Is it text? Numeric? Could be both? Something else?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Sumifs with visible rows after filter

    pls attach a sample excel file with out sensitive data

  6. #6
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Bournemouth
    MS-Off Ver
    Excel 2003
    Posts
    158

    Re: Sumifs with visible rows after filter

    Column DZ will have date formats

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumifs with visible rows after filter

    Try this...

    =SUMPRODUCT(SUBTOTAL(3,OFFSET(Data!DZ7,ROW(Data!DZ7:DZ100000)-ROW(Data!DZ7),0)),--(Data!R7:R100000="Yes"))

  8. #8
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Bournemouth
    MS-Off Ver
    Excel 2003
    Posts
    158

    Re: Sumifs with visible rows after filter

    Great, Thanks for this it worked a treat.

    How would I amend this if column DZ needed to equal "yes" instead

  9. #9
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumifs with visible rows after filter

    Like this...

    =SUMPRODUCT(SUBTOTAL(3,OFFSET(Data!DZ7,ROW(Data!DZ7:DZ100000)-ROW(Data!DZ7),0)),--(Data!DZ7:DZ100000="Yes"))

  10. #10
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Bournemouth
    MS-Off Ver
    Excel 2003
    Posts
    158

    Re: Sumifs with visible rows after filter

    Simple- thanks

    As you done a Stirling job with this any chance you could help out with a similar issue with Subtotal here -

    HTML Code: 

  11. #11
    Forum Contributor
    Join Date
    06-07-2013
    Location
    Bournemouth
    MS-Off Ver
    Excel 2003
    Posts
    158

    Re: Sumifs with visible rows after filter

    Simple- thanks

    As you done a Stirling job with this any chance you could help out with a similar issue with Subtotal here -

    HTML Code: 

  12. #12
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sumifs with visible rows after filter

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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. 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
  2. Leave empty rows visible in a filter
    By tlacloche in forum Excel General
    Replies: 1
    Last Post: 09-18-2013, 01:25 PM
  3. delete all visible rows after a filter
    By penfold1992 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-10-2013, 07:02 AM
  4. Use visible rows from autofilter to build Pivot table. Or use visible rows to Copy/Paste
    By mwhitedesigns in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-08-2012, 10:34 AM
  5. 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

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