Counting unique values in a range/table.

john62290

New Member
Joined
Dec 15, 2021
Messages
30
Office Version
  1. 365
Platform
  1. Windows
I am looking for a formula that counts the unique number of accounts in column B that are also marked as Yes in Column C whose order dates are greater than or equal to 4/1/2024 and less than or equal to 4/7/2024. The formula would result in an answer of 4. thanks!
4/1/2024Jones accountYes
4/1/2024
Jones AccountYes
4/2/2024MatthewYes
4/2/2024ABCNo
4/2/2024BruceYes
4/3/2024Jones AccountNo
4/5/2024ECLNo
4/4/2024JHMYes
4/6/2024JHMNo
4/7/2024Jones AccountNo
4/9/2024BlairYes
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Try:
Book2
ABCDEF
1
24/1/2024Jones accountYes4/1/20244/7/2024
34/1/2024Jones AccountYes4
44/2/2024MatthewYes
54/2/2024ABCNo
64/2/2024BruceYes
74/3/2024Jones AccountNo
84/5/2024ECLNo
94/4/2024JHMYes
104/6/2024JHMNo
114/7/2024Jones AccountNo
124/9/2024BlairYes
Sheet4
Cell Formulas
RangeFormula
E3E3=ROWS(UNIQUE(FILTER(A2:B12,(C2:C12="Yes")*(A2:A12>=E2)*(A2:A12<=F2))))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,711
Messages
6,174,025
Members
452,542
Latest member
Bricklin

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