COUNTIF's calculating sum of unique values meeting one bit of criteria, no duplicates

Stellar114

New Member
Joined
Feb 24, 2022
Messages
5
Office Version
  1. 365
Platform
  1. Windows
I'm trying to find a formula that will calculate a total of orders effected based off of whether another column is yes, or no, exclude duplicate values of sales orders, and exclude blanks.

Based on the data below, i'm looking to sum the total number of sales orders (column "A") IF column B = YES, but exclude duplicate sales orders, and ignore blank cells.

I've tried manipulating a COUNTIFS formula, but no luck. Any help would be appreciated!

1645724907102.png
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hi & welcome to MrExcel.
How about
Excel Formula:
=ROWS(UNIQUE(FILTER(A2:A1000,I2:I1000="yes")))
 
Upvote 0
Solution
Hi & welcome to MrExcel.
How about
Excel Formula:
=ROWS(UNIQUE(FILTER(A2:A1000,I2:I1000="yes")))
Awesome! Thank you so much for this. This formula works perfectly! You're a life saver.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
Hi,

Can this formula be applied with another bit of criteria? Say i wanted to calculate How many times each unique value in column A occurs if "I" is yes, and "J" is "move"? If not, what would be the proper formula for that?
 
Upvote 0
You can add further criteria like
Excel Formula:
=ROWS(UNIQUE(FILTER(A2:A1000,(I2:I1000="yes")*(J2J1000="move"))))
 
Upvote 0

Forum statistics

Threads
1,214,817
Messages
6,121,720
Members
449,050
Latest member
MiguekHeka

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