+ Reply to Thread
Results 1 to 5 of 5

count formula with row match

  1. #1
    Forum Contributor TechRetard's Avatar
    Join Date
    06-14-2009
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    202

    count formula with row match

    Looking for the best formula for a count w/ row match

    I have a table comprised of:
    header: Row 1 comprised of Dates
    Rows 2+ are values
    Function 2/1/2014 3/1/2014 4/1/2014 5/1/2014
    Function A 75% 60% 90% 100%
    Function B 75% 60% 90% 100%
    Function A 75% 100% 90% 100%
    Function C 75% 100% 90% 45%


    I want to count the number of times "100%" occurs on my table given a specific date: if date is 3/1/2014, answer = 2

    re-working my table is not an option, this is a huge table with thousands of calculations already present

    I can do this with an offset but do not think this is the most efficient, also I am want to eventually work in another match...I have 'function' in column 1, so it would be nice to have the formula look at a drop down and count the number of times 100% appears given a specific function

    if function = Function C & date = 3/1/2014, answer = 1....if function = "all functions" (note "all functions" is not in any column, it is the whole data set) & date = 3/1/2014, answer = 2
    Last edited by TechRetard; 05-09-2014 at 10:01 AM. Reason: Solved
    TechRetard.ToString();

    There are always multiple ways to do something, when it doubt, drink a beer.

    I do not care if you rep or not but please mark post as Solved if there is resolution so I stop going back and checking if anything else is needed.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: count formula with row match

    Try this...

    Data Range
    A
    B
    C
    D
    E
    1
    Function
    2/1/2014
    3/1/2014
    4/1/2014
    5/1/2014
    2
    Function A
    75%
    60%
    90%
    100%
    3
    Function B
    75%
    60%
    90%
    100%
    4
    Function A
    75%
    100%
    90%
    100%
    5
    Function C
    75%
    100%
    90%
    45%
    6
    7
    8
    3/1/2014
    100%
    2


    This formula entered in C8:

    =COUNTIF(INDEX(B2:E5,0,MATCH(A8,B1:E1,0)),B8)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: count formula with row match

    To add another criteria for a specific function:

    Data Range
    A
    B
    C
    D
    E
    1
    Function
    2/1/2014
    3/1/2014
    4/1/2014
    5/1/2014
    2
    Function A
    75%
    60%
    90%
    100%
    3
    Function B
    75%
    60%
    90%
    100%
    4
    Function A
    75%
    100%
    90%
    100%
    5
    Function C
    75%
    100%
    90%
    45%
    6
    7
    8
    3/1/2014
    100%
    Function A
    1


    This formula entered in D8:

    =COUNTIFS(INDEX(B2:E5,0,MATCH(A8,B1:E1,0)),B8,A2:A5,C8)

  4. #4
    Forum Contributor TechRetard's Avatar
    Join Date
    06-14-2009
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010
    Posts
    202

    Re: count formula with row match

    Works like a charm ... sumif works as well just because it is 100% (math wouldn't work if it was not so)... but sumifs doesn't work with the function..

    I am good to go...thank you

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: count formula with row match

    You're welcome. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Use two MATCH functions to define a range in a COUNT formula
    By sunsoar77 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-30-2013, 06:53 PM
  2. [SOLVED] Looking for formula to count and match data.
    By fulldeen in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-16-2012, 08:25 AM
  3. [SOLVED] Excel 2007 : Count formula without exact match
    By ncurran217 in forum Excel General
    Replies: 2
    Last Post: 03-28-2012, 03:50 PM
  4. Replies: 5
    Last Post: 02-29-2012, 08:51 PM
  5. macro/formula to count distinct resources and match to location
    By nikoniko in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-08-2009, 12:44 PM

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