+ Reply to Thread
Results 1 to 4 of 4

Thread: Subtotal - only count Bold rows

  1. #1
    Registered User
    Join Date
    03-05-2009
    Location
    Vail, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    82

    Post Subtotal - only count Bold rows

    The formula below works perfectlly. It counts only the rows in column C that are not hidden from applied filters the other columns.

    The request is to show the bold and light rows, but only count the the Bold rows visible.

    Please view the attachment. It shows a small part of a big Excel report that is custom generated in Access from code.

    Code in Cell D4 (see attachment)
    =SUMPRODUCT(SUBTOTAL(3, OFFSET(C6:C5997, ROW(C6:C5997)-ROW(C6),0,1)),--(C6:C5997=C4))
    Code works perfectlly to count only the visible rows when filters are applied.
    Cell C4 (shows Navigator Header Created) is a pull-down list cell.
    Users can select a value and D4 displays the count of all visible rows.\

    A Bold row for an item is always present. The light rows can be zero to many.

  2. #2
    Forum Guru Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    5,593

    Re: Subtotal - only count Bold rows

    Hi RxMiller

    Welcome to the forum

    Where have you posted your sample?

    From Forum FAQs

    How do I attach a file to a post?

    To attach a file to your post, you need to be using the main 'New Post' or 'New Thread' page and not 'Quick Reply'. To use the main 'New Post' page, click the 'Post Reply' button in the relevant thread.

    On this page, below the message box, you will find a button labelled 'Manage Attachments'. Clicking this button will open a new window for uploading attachments. You can upload an attachment either from your computer or from another URL by using the appropriate box on this page. Alternatively you can click the Attachment Icon to open this page.

    To upload a file from your computer, click the 'Browse' button and locate the file. To upload a file from another URL, enter the full URL for the file in the second box on this page. Once you have completed one of the boxes, click 'Upload'.

    Once the upload is completed the file name will appear below the input boxes in this window. You can then close the window to return to the new post screen.

  3. #3
    Registered User
    Join Date
    03-05-2009
    Location
    Vail, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    82

    Post Re: Subtotal - only count Bold rows

    thanks - I just attached it again - but, don't see it showing. Have done it on this site befor.
    Permissions shows attachements are allowed. It is a small file.
    Will go ahead and post and see if it shows.
    Nope, did not see the attachment this time either.

  4. #4
    Registered User
    Join Date
    03-05-2009
    Location
    Vail, Colorado
    MS-Off Ver
    Excel 2010
    Posts
    82

    Re: Subtotal - only count Bold rows

    Ah, SnagIT was set to png file format - so the size would not fit - converted it over to a jpg to attach.

    example - bold and light data jpg.jpg

    example - bold and light data jpg greyscale.jpg

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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.2.0