+ Reply to Thread
Results 1 to 6 of 6

Thread: Probably Simple Countif but i can't figure it out

  1. #1
    Registered User
    Join Date
    11-01-2010
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    35

    Probably Simple Countif but i can't figure it out

    I've attached a dummy sheet to setup what i need. Basically, I need an easier way to do the following:

    Find any row with the weeknum in Test2 corresponding to the weeknum in Test1
    Count all of the values marked as "complete" in that row
    then Divide by the count of any cell containing something

    For 1/3/2011 it should be .92 or 92%

    I left the calc i'm current using in Test1!C3 to help you understand what i need but i want it to be more intuitive and copy and paste-able.
    Attached Files Attached Files
    Last edited by ssword; 03-12-2011 at 10:52 AM.

  2. #2
    Valued Forum Contributor jwright650's Avatar
    Join Date
    12-10-2010
    Location
    Va, USA
    MS-Off Ver
    Excel 2003, Excel 2010
    Posts
    537

    Re: Probably Simple Countif but i can't figure it out

    Quote Originally Posted by ssword View Post
    Count all of the values marked as "complete" in that row

    Why does your 1st part of the formula reference B6:AZ10....that is looking at 5 rows not a single row.

    =COUNTIF(Test2!$B6:$AZ10,C$2)/COUNTA(Test2!$B6:$AZ10)
    Life is like a roll of toilet paper. The closer it gets to the end, the faster it goes.
    John Wright

  3. #3
    Registered User
    Join Date
    11-01-2010
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Probably Simple Countif but i can't figure it out

    Currently i have it count all of the completes in the week by manually referencing the cells. I want it to do exactly this but I want it so it finds this information by using the dates listed instead of manual entry.

  4. #4
    Valued Forum Contributor scottylad2's Avatar
    Join Date
    09-03-2010
    Location
    edinburgh
    MS-Off Ver
    Office 2007 Prof & Office 2010 Student Edition
    Posts
    617

    Re: Probably Simple Countif but i can't figure it out

    Your referencing AZ10 like the last poster said, why? your data stops well short of that?
    Windows 7 using Office 2007 & 2010

    Remember your [ code ] [ /code ] tags, makes reading soooo much easier

  5. #5
    Valued Forum Contributor
    Join Date
    08-23-2009
    Location
    Hampshire, UK
    MS-Off Ver
    Excel 2003, Excel 2007
    Posts
    324

    Re: Probably Simple Countif but i can't figure it out

    I'm sure there must be a simpler formula but this works
    =COUNTIF(INDIRECT("Test2!B"&MATCH($B3,Test2!$A$6:$A$30,0)+5&":P"&MATCH($B3+6,Test2!$A$6:$A$30,1)+5),C$2)/COUNTA(INDIRECT("Test2!B"&MATCH($B3,Test2!$A$6:$A$30,0)+5&":P"&MATCH($B3+6,Test2!$A$6:$A$30,1)+5))
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-01-2010
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Probably Simple Countif but i can't figure it out

    Quote Originally Posted by scottylad2 View Post
    Your referencing AZ10 like the last poster said, why? your data stops well short of that?
    I used AZ10 because I add more columns in the future - might as well add them now. I currently use up to AQ on my non-dummy sheet.

    Quote Originally Posted by Huron View Post
    I'm sure there must be a simpler formula but this works
    =COUNTIF(INDIRECT("Test2!B"&MATCH($B3,Test2!$A$6:$A$30,0)+5&":P"&MATCH($B3+6,Test2!$A$6:$A$30,1)+5),C$2)/COUNTA(INDIRECT("Test2!B"&MATCH($B3,Test2!$A$6:$A$30,0)+5&":P"&MATCH($B3+6,Test2!$A$6:$A$30,1)+5))
    This worked with a few alterations. Thanks!

+ 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