+ Reply to Thread
Results 1 to 6 of 6

count if help

  1. #1
    Registered User
    Join Date
    09-11-2013
    Location
    Houston, Tx
    MS-Off Ver
    Excel 2010
    Posts
    21

    count if help

    I attached aexample of what i am trying to look for. i am trying to come up with an equation where if it says home run on sheet 2 column B it will add up the hom eun total in column c of sheet 2. there are two sheets so please look at both. and thanks fo rthe hlp in advance!sample.xlsx

  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 if help

    First...

    In your Type of hit data there are space characters at the end of every cell that contains Home run. Remove those space characters!

    Then...

    On Sheet1:

    A2 = 6/1/2014
    B2 = 6/10/2014
    C2 = Home Run

    Formula in D2:

    =SUMIFS(Sheet2!C2:C11,Sheet2!A2:A11,">="&A2,Sheet2!A2:A11,"<="&B2,Sheet2!B2:B11,C2)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: count if help

    Try this..
    Definitely help you...



    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Use ctrl + shift + enter to enter the formula..

    Don't forget to click *
    Attached Files Attached Files
    Last edited by Vikas_Gautam; 07-17-2014 at 09:22 PM.

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

    Re: count if help

    Quote Originally Posted by Vikas_Gautam View Post
    =SUM(IF(Sheet2!$B$2:$B$11="Home Run ",Sheet2!C2:C11))
    Looks like you're missing the date conditions.

  5. #5
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: count if help

    But OP has provided the data.. From 1 June to 10 june..
    I think there is no need for that...

    I he wants that we will definitely be providing that..



    Don't forget to click *

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

    Re: count if help

    In that case a simple SUMIF will do:

    =SUMIF(Sheet2!B2:B11,"Home Run",Sheet2!C2:C11)

    Although, I think the OP does intend to use a specific date range.

    Don't forget to remove those trailing space characters!

+ 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] Filtering macro, count number of rows and include count in last column.
    By Folshot in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-12-2012, 07:17 AM
  2. Range.columns.count property returns wrong count after union operation
    By gopinan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-13-2008, 04:48 AM
  3. [SOLVED] Count Intervals of Filtered TEXT values in Column and Return Count across a Row
    By Domenic in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 07:05 AM
  4. [SOLVED] Count Intervals of Filtered TEXT values in Column and Return Count across a Row
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  5. Count Intervals of Filtered TEXT values in Column and Return Count across a Row
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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