Count 1 column based on condition of another

SorenN

New Member
Joined
Mar 3, 2014
Messages
22
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I think the answer to my question is something to do with COUNTIF although I can not figure this out.
The spread sheet lists various items we are track when they were purchased, purchase type, delivery status etc.
I need help figuring out how many items with purchase type "ECAT" have been delivered.
Here is the formula I am trying and can not make work: =CountIF(Table2[Purchase Type/Source]= "ECAT", COUNTA(Table2[Delivery Complete]))
I look forward to getting help and learning more of Excel!
Thanks,
Soren

Sample data:
Purchase Type/SourcePurchase Order #Delivery Complete
PCAC583-A10047Yes
PCAC583-A10038Yes
ECAT
Micro583-Q15468
ECAT583-B10050Yes
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
How about
Excel Formula:
=CountIFS(Table2[Purchase Type/Source],"ECAT",Table2[Delivery Complete],"Yes")
 
Upvote 0
Solution
Thanks that did the trick! I have not used the CountIFS before. I will explore more of how it works.
I have a tangential question, how would I count the number of purchase orders for the specific purchase types? I tried this formula although the results returned were not correct. =COUNTIFS(Table2[Purchase Type/Source],"Micro",Table2[Purchase Order],"*5")
 
Upvote 0
Try
Excel Formula:
=COUNTIFS(Table2[Purchase Type/Source],"Micro",Table2[Purchase Order],"<>")
 
Upvote 0
Thanks Fluff, what does help!
What does <> tell Excel to do? I am not familiar with what <> tells Excel to do, is it away to ignore empty cells?
 
Upvote 0

Forum statistics

Threads
1,215,467
Messages
6,124,984
Members
449,201
Latest member
Lunzwe73

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