+ Reply to Thread
Results 1 to 3 of 3

Trouble with count if formula

Hybrid View

  1. #1
    Registered User
    Join Date
    04-05-2012
    Location
    MCKEESPORT, PA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Trouble with count if formula

    I am trying to write a formula for this: if cell in column H equals PD and if cell in column I equals C then count C's I tried using COUNTIF but can't get it to work

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Trouble with count if formula

    You've hit the limitation of COUNTIF() with XL 2003 which is solved with the COUNTIFS() function in later versions.

    You have a choice
    =SUMPRODUCT((H1:H20="PD")*(I1:I20="C"))
    change the range 1:20 as necessary

    or use a helper column which concatenates column H & I and then you can use a COUNTIF looking for "PDC" in the helper column.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-05-2012
    Location
    MCKEESPORT, PA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Trouble with count if formula

    wesome, 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.6.0 RC 1