Unique Countifs

Pestomania

Active Member
Joined
May 30, 2018
Messages
292
Office Version
  1. 365
Platform
  1. Windows
Hello,

I am trying to identify how to do a countif using only unique values that show up in the "Work Center" column. I used a few different forums to try and figure out without luck.

Prestons Playground for Modeling.xlsx
ABCDEFG
1ToolCode# of Equipment DownActual NumberUDF_DATEUDF_WORKCENTERCurrent Down Time
2GRP212/20/2024 0:00GRP6Yes
3BSA112/28/2024 0:00BSA1Yes
4CRB003/1/2024 0:00PCK2Yes
5DG003/2/2024 0:00GRP6Yes
6IMP002/18/2020 0:00CRB2No
7PCK222/18/2020 0:00CRB3No
8OVEN002/25/2024 0:00PCK4Yes
9
10
11I am trying to get the "actual number" which is how many "unique" work center records are listed as "yes" for current down time. So I only want to count GRP6 one time instead of twice.
12
13
14
Sheet6
Cell Formulas
RangeFormula
B2:B8B2=COUNTIFS($F$2:$F$8,A2&"*",$G$2:$G$8,"Yes")
G2:G8G2=IF(AND(E2>=TODAY(),E2<TODAY()+30),"Yes","No")
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
How about
Excel Formula:
=IFERROR(ROWS(UNIQUE(FILTER($F$2:$F$8,(LEFT($F$2:$F$8,LEN(A2))=A2)*($G$2:$G$8="Yes")))),0)
 
Upvote 0
Solution
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,068
Messages
6,122,950
Members
449,095
Latest member
nmaske

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top