+ Reply to Thread
Results 1 to 4 of 4

Formula to Sum & Count the Visible numbers

  1. #1
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Formula to Sum & Count the Visible numbers

    Hi,
    Can someone help me out with a couple formula's

    I Need some help to count all the "YES" in a column that are visible.

    Somthing along the lines of:
    Please Login or Register  to view this content.
    The problem with the formula above it counts the "NO" as well.

    I also need a formula to sum up the numbers in column (M20:50000) if the Column(L20:L50000) Has a "YES") and are visible.

    Thanks for any help, Mike
    Last edited by realniceguy5000; 03-22-2010 at 09:57 AM.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Formula to Sum & Count the Visible numbers

    Have a look here: http://www.contextures.com/xlFunctions04.html#Visible

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Formula to Sum & Count the Visible numbers

    These would be the formula:

    =SUMPRODUCT(SUBTOTAL(3,OFFSET(L20:L50000,ROW(L20:L50000)-MIN(ROW(L20:L50000)),,1)), --(L20:L50000="Yes"))

    =SUMPRODUCT(SUBTOTAL(3,OFFSET(L20:L50000,ROW(L20:L50000)-MIN(ROW(L20:L50000)),,1)), --(L20:L50000="Yes"),(M20:M50000))

    Dom

  4. #4
    Valued Forum Contributor realniceguy5000's Avatar
    Join Date
    03-20-2008
    Location
    Fl
    MS-Off Ver
    Excel 2003 & 2010
    Posts
    951

    Re: Formula to Sum & Count the Visible numbers

    Quote Originally Posted by Domski View Post
    These would be the formula:

    =SUMPRODUCT(SUBTOTAL(3,OFFSET(L20:L50000,ROW(L20:L50000)-MIN(ROW(L20:L50000)),,1)), --(L20:L50000="Yes"))

    =SUMPRODUCT(SUBTOTAL(3,OFFSET(L20:L50000,ROW(L20:L50000)-MIN(ROW(L20:L50000)),,1)), --(L20:L50000="Yes"),(M20:M50000))

    Dom
    Thanks so much, Works Great...

    Thanks Again!!! Mike

+ 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