+ Reply to Thread
Results 1 to 6 of 6

Filter

  1. #1
    Spammer
    Join Date
    02-12-2007
    Posts
    22

    Filter

    hi all i am new to this so please forgive any mistakes,
    i have a couple of problems i want some help with.
    first problem, in column h i have set a filter to show names of employees and in row g either the answer yes, or no,i have also set up a count to count the yeses this works a treat but if i filter the names then the number of visible yeses on the sheet (25) change to (12) but not the result of the formula it still shows 25 not 12 , how do i get it to count only the visible yeses ?.
    and my second problem is can this be done with a chart as well IE only using the text visible?
    i am using excel 2007

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    This might help with the formula part

    Assumes Yes in Col B and there are entries in Col A

    =SUMPRODUCT((B1:B13="Yes")*(SUBTOTAL(3,OFFSET(A1:A13,ROW(A1:A13)-MIN(ROW(A1:A13)),,1))))

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Spammer
    Join Date
    02-12-2007
    Posts
    22

    Smile cheers

    thanks for the formula i do not understand it but will give it a try

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    This example might help you

    VBA Noob
    Attached Files Attached Files

  5. #5
    Spammer
    Join Date
    02-12-2007
    Posts
    22

    Smile thanks

    it works great thank you, will post a new prob in a min or so for you to solve i hope , again cheers.

  6. #6
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Glad it helped

    VBA Noob

+ 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