Count Unique Values with and without Criteria

jedilefty

New Member
Joined
Nov 14, 2017
Messages
46
Office Version
  1. 365
Platform
  1. Windows
Hello all! I'm having trouble counting the number of times a value appears and how many times based on criteria from another cell. I want to calculate how many times a Sales Order is listed. And I also want to calculate how many Sales Order are affected by Inventory Lvl being at "0." Some Sales Orders could have multiple items with 0 inventory. Any help would be awesome! (I have the data stored in a table if that matters at all)

Here is how my spreadsheet looks:


Sales OrderPartInventory Lvl
1a0
1b2
2c0
3e0
2f5
3g0
4f5
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
Try
Book1.xlsm
ABCDEFGH
1Sales OrderPartInventory LvlSales OrderCountInventory Lvl
21a0121
31b2221
42c0322
53e0410
62f5
73g0
84f5
9
Sheet6
Cell Formulas
RangeFormula
E2:E5E2=UNIQUE(A2:A8)
F2:F5F2=COUNTIF(A2:A8,E2#)
G2:G5G2=COUNTIFS(A2:A8,E2#,C2:C8,0)
Dynamic array formulas.
 
Upvote 0
Solution

Forum statistics

Threads
1,215,132
Messages
6,123,227
Members
449,091
Latest member
jeremy_bp001

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