count if unique value only based on date

ADAMC

Well-known Member
Joined
Mar 20, 2007
Messages
1,169
Office Version
  1. 2013
Platform
  1. Windows
Hi all,

Thanks in advance as always for any help.

Is it possible to say in a formula:

Count all the unique values in column B if the date in column H is less than today date?

Column B contains an invoice number but can appear many times in the column. Column H is the processing date formatted DD/MM/YYYY I only need to know the number of unique invoices older than todays date (The ones I need to deal with)

Thanks!
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
You could add a helper column I which checks for duplicate invoices with dates before today's date. I've assumed today's date is in A1 and your data starts in row 2. Copy the following formula down column I, starting in I2:

=IF(COUNTIFS($B$2:$B2,B2,$H$2:$H2,"<"&$A$1)>1,"Duplicate","Unique")


The number of unique invoices before today's date is then:

=COUNTIFS($H:$H,"<"&A1,$I:$I,"Unique")
 
Upvote 0

Forum statistics

Threads
1,215,438
Messages
6,124,873
Members
449,192
Latest member
MoonDancer

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