+ Reply to Thread
Results 1 to 3 of 3

Counting # of rows with negative values and also changes when apply the filter

  1. #1
    Registered User
    Join Date
    05-18-2010
    Location
    Boston
    MS-Off Ver
    365
    Posts
    3

    Counting # of rows with negative values and also changes when apply the filter

    I am trying to create formula that will return # of rows with negative values and also changes when I apply the filter. I also attached the example file. I would like them to return

    6 in cell F2 when filter (All)
    2 in cell F2 when filter CT
    2 in cell F2 when filter MA
    2 in cell F2 when filter NY

    Could anyone help me?

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    12-03-2009
    Location
    Providence RI
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    260

    Re: Counting # of rows with negative values and also changes when apply the filter

    Put =SUBTOTAL(102,C4) in D4 and copy down. Then for the total put =SUMIF(C4:C21,"<0",D4:D21)

    You can hide D after if needed.

  3. #3
    Registered User
    Join Date
    05-18-2010
    Location
    Boston
    MS-Off Ver
    365
    Posts
    3

    Re: Counting # of rows with negative values and also changes when apply the filter

    Thank you!

+ 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