+ Reply to Thread
Results 1 to 6 of 6

COUNTIF? IF(COUNTIF())? Help!

  1. #1
    Registered User
    Join Date
    11-05-2013
    Location
    Hornell, NY
    MS-Off Ver
    Excel 2010
    Posts
    3

    COUNTIF? IF(COUNTIF())? Help!

    Thanks for taking a peek!

    Okay, here is the deal. I have a very large spreadsheet full of parts that I need to perform a general "%complete" type analysis. I have a seemingly simple problem that I just cannot get to work. I need the formula to first check one column to see if it is a "purchase" part, then I need it to count certain parts based on there status. So to explain it a little better, I need the formula to check if it is a certain type of part in one column, then if it falls into a certain set of criteria, count it, in another column.

    I have multiple "%complete" sections, so first check of it being "puchase" is from on column continually. The criteria for the subsequent columns will change, per project, but the parts are the same throughout it. It is difficult to explain, if I'm not clear please ask.

    My initial attempt was like so... IF(cell="purchase", (COUNTIF(range, "criteria 1" + COUNTIF(same range, "criteria 2"...etc)), "")
    ...it failed.

    HELP! haha

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: COUNTIF? IF(COUNTIF())? Help!

    Try

    =IF(cell="purchase",SUM(COUNTIF(Range,{"criteria1","criteria2"})),"")

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: COUNTIF? IF(COUNTIF())? Help!

    Hi,

    maybe a sample file could be very helpful.


    You could try COUNTIFS

    something to be adjusted like

    =COUNTIFS(A:A,"PURCHASE",B:B,"STATUS",C:C,"CRITERIA2")

    Just an attempt


    Edit: sorry Jonmo1, I did not mean to overlap. Regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  4. #4
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: COUNTIF? IF(COUNTIF())? Help!

    Try using COUNTIFS instead of COUNTIF.

    If(A1="purchase",COUNTIFS(range1,criteria1,range2,criteria2,range3,criteria3)),"") etc.


    It seems I'm a day late and a dollar short.
    Last edited by BeachRock; 11-05-2013 at 11:55 AM. Reason: Saw there were other answers that weren't there before.
    -------------
    Tony

  5. #5
    Registered User
    Join Date
    11-05-2013
    Location
    Hornell, NY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: COUNTIF? IF(COUNTIF())? Help!

    The purchase part just checks the cell, the countif criteria are through the range, so I'm running into problems with that.

    And I can't really put this online because it has some private info on it. I don't know what would be private really but I'm new so I'm not risking it haha.

  6. #6
    Registered User
    Join Date
    11-05-2013
    Location
    Hornell, NY
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: COUNTIF? IF(COUNTIF())? Help!

    adsfasdf.JPG



    This is what I'm working with. Column "1" (between the blacked out areas) is the column that I first have to check to see if it is a purchase part. So basically what I want to happen, is for the specific part number in the far left column for the %complete (circled in black) of the first project (first column to the right of the bigger blacked out area), I want the formula to follow the red arrow. I know this is confusing but for each specific part, first check it is purchase, if not do nothing...if it is, check to see if it follows a certain criterion (different codes on the page...X,R,NA). So, if it is purchase, and then X for that part, return 1. At the end, sum the 1's, divide by the total, and I have my %complete.

    Confusing to explain - actually pretty simple, which is what irks me about this problem.

    Thanks again!
    Attached Images Attached Images

+ 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] =Subtotal(countif,Range); Subtotal and countif in 1 formula [SOLVED]
    By thomas.mapua in forum Excel General
    Replies: 5
    Last Post: 01-06-2012, 11:33 AM
  2. Combining a Date Range COUNTIF and a general COUNTIF
    By jacobtom in forum Excel General
    Replies: 1
    Last Post: 09-15-2011, 05:06 PM
  3. Adding a CountIF to a formula that is already Countif
    By Cmorgan in forum Excel General
    Replies: 4
    Last Post: 06-01-2011, 09:34 AM
  4. [SOLVED] COUNTIF or not to COUNTIF on a range in another sheet
    By Ellie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-15-2005, 05:06 PM
  5. Countif w/ Multiple Criteria-How do I use countif
    By Patrick_KC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2005, 05: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