+ Reply to Thread
Results 1 to 4 of 4

Struggling with COUNTIFS formula - help!

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    Louisville, KY
    MS-Off Ver
    Excel 2010
    Posts
    2

    Struggling with COUNTIFS formula - help!

    I've never had a formula I couldn't work out, but between lack of sleep and lots of work my brain just isn't working. Using the sample data below:

    rcar 1/1/2014 45 12
    rlou 2/1/2014 55 55
    rcar 1/5/2014 33 33

    I need to count the number of times column A has RCAR, column B is greater than 0 and column C and D are the same value. I'm good on the COUNTIFS until I get to the part where I only want it counted if the two numerical values match. Help! Thanks in advance.

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Struggling with COUNTIFS formula - help!

    Are you good at SUMPRODUCT? Forget COUNTIF(S) in this case.

    =SUMPRODUCT((A1:A10="rcar")*(B1:B10>0)*(C1:C10=D1:D10))
    Quang PT

  3. #3
    Registered User
    Join Date
    02-27-2013
    Location
    Louisville, KY
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Struggling with COUNTIFS formula - help!

    I'm an idiot. As soon as I posted this I realized the workbook was on manual calculation and solved it by have a fifth column essentially that subtracted column D from C so if it equaled zero, I knew to count it, but thank you for that suggestion. I ended up going with:

    =COUNTIFS(A:A,"RCAE",B:B,">0",E:E,"=0")

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Struggling with COUNTIFS formula - help!

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. I'm struggling to get a formula to populate a list
    By Macjay22 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-30-2013, 07:37 PM
  2. Struggling with using OFFSET formula for rolling averages
    By greykitten in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-30-2013, 10:31 AM
  3. struggling with lastrow formula
    By skalaima in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-16-2013, 02:05 PM
  4. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  5. Struggling With How to Create A Formula for Desired Result...
    By oxyron in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-01-2007, 03:36 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