+ Reply to Thread
Results 1 to 4 of 4

Thread: [solved]countif function help

  1. #1
    Forum Contributor
    Join Date
    01-06-2011
    Location
    cleveland
    MS-Off Ver
    Excel 2007
    Posts
    114

    [solved]countif function help

    i have columns A through columns F.

    im trying to get a running count in one cell where column F value is greater than 0 and Column A value = "A". i can do this with helper columns but is there a more efficient way with a line of code?

    thank you for your time
    Last edited by kamelkid2; 07-24-2011 at 10:44 AM.

  2. #2
    Forum Guru Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    MS Excel 2010
    Posts
    2,247

    Re: countif function help

    tRY

    =SUMPRODUCT(--($A$1:A2="A"),--($F$1:$F2>0),$F$1:$F2)

  3. #3
    Forum Contributor
    Join Date
    01-06-2011
    Location
    cleveland
    MS-Off Ver
    Excel 2007
    Posts
    114

    Re: countif function help

    thank you for your help. i was able to accomplish it using countifs function prior to reading post but i will test yours.

    thank you for time

  4. #4
    Forum Guru Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    MS Excel 2010
    Posts
    2,247

    Re: countif function help

    Quote Originally Posted by kamelkid2 View Post
    thank you for your help. i was able to accomplish it using countifs function prior to reading post but i will test yours.

    thank you for time
    If you have Excel 2007/2010, COUNTIFS is a better solution than SUMPRODUCT here.

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