• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Counting how many occurences with multiple columns.

LBROWN9

New Member
I need to create a formula to count 1, if Column A has "WH" and a number greater than zero in Column B or Column C.


I currently have
=COUNTIFS(Table1[ColumnA],"WH",Table1[ColumnB],">0") and it populates correctly, but some lines will have data in both and I don't want them to add.

=COUNTIFS(Table1[ColumnA],"WH",Table1[ColumnB]:Table1[ColumnC],">0") gives me an error.
 
change
=COUNTIFS(Table1[ColumnA],"WH",Table1[ColumnB]:Table1[ColumnC],">0")

to
=COUNTIFS(Table1[ColumnA],"WH",Table1[ColumnB],">0",Table1[ColumnC],">0")
 
I'm trying to count how many of a specific code has a number greater than zero in either one of the columns. For Category "WH", it's saying 1, when it should say 2, but it's only pulling data from the [RT] column. When I tried to get it to pull for both [RT] and [OT], I get zeros.
 

Attachments

  • EXCEL HELP.xlsx
    37.2 KB · Views: 6
Back
Top