+ Reply to Thread
Results 1 to 4 of 4

Using COUNT IF formula while SUM another for one TOTAL

Hybrid View

Ianseconds Using COUNT IF formula while... 12-11-2012, 12:35 PM
Ace_XL Re: Using COUNT IF formula... 12-11-2012, 12:45 PM
JieJenn Re: Using COUNT IF formula... 12-11-2012, 12:46 PM
Ianseconds Re: Using COUNT IF formula... 12-11-2012, 12:53 PM
  1. #1
    Registered User
    Join Date
    01-21-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003
    Posts
    40

    Using COUNT IF formula while SUM another for one TOTAL

    Good Morning,

    I'm currently working on a spreadsheet for job openings and ran into a problem.

    Cell A21 of my attached spreadsheet is titled TOTAL POSITIONS, with a numeric count to the right of positions I will be tracking. In Column A, I will have 4 text values. Open, Hold, Pending & Cancelled. I used a =COUNTIF(e6:e23,"Pending") to count only pending values. I do not want to count Cancelled. Now, the easy question, how do I add it to this formula to also count, as values, Open & Hold?

    Next, Column B of my spreadsheet is a numeric value of how many positions are actually open. Most of these values are 1, but some are 2 or 3. If all of these values were 1, my COUNT IF formula would be fine in cell B21 and I would be done, but how can I reflect the additional positions in my total count in cell B21?

    So...basically, I need cell B21 to be the total number of positions that are in column b, but filtering out all Cancelled from column A.

    Thank you for your help. I will be monitoring for quick replys to all.
    Attached Files Attached Files

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Using COUNT IF formula while SUM another for one TOTAL

    Try

    =sum(COUNTIF(e6:e23,{"On Hold","Open","Pending"})
    if all are 1

    If you have other values in column B
    =SUM(SUMIF(e6:e23,{"On Hold","Open","Pending"},b6:b23)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Using COUNT IF formula while SUM another for one TOTAL

    Enter this formula with Ctrl + Shift + Enter

    =SUM(IF(($A$2:$A$19={"Pending","On Hold","Open"}),1,0))

  4. #4
    Registered User
    Join Date
    01-21-2011
    Location
    Pittsburgh, PA
    MS-Off Ver
    Excel 2003
    Posts
    40

    Re: Using COUNT IF formula while SUM another for one TOTAL

    Thank you, Ace XL & JieJenn. The second formula that Ace provided worked perfectly. Much appreciated! You saved the day!

+ 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