Counting Unique text and numeric values with date range

successken

New Member
Joined
Oct 3, 2011
Messages
27
I am finding many posting on this topic with unique numeric values and have not come across one in regards to a text value. The essence of the formula is looking through a list for unique email addresses and now I need to up it to a date range and eventually a store # range

I am using the following array formula to establish an overall count:
=SUM(IF(FREQUENCY(IF(LEN('[Data - Deliverables.xlsb]orders'!A2:A5000)>0,MATCH('[Data - Deliverables.xlsb]orders'!A2:A5000,'[Data - Deliverables.xlsb]orders'!A2:A5000,0),""), IF(LEN('[Data - Deliverables.xlsb]orders'!A2:A5000)>0,MATCH('[Data - Deliverables.xlsb]orders'!A2:A5000,'[Data - Deliverables.xlsb]orders'!A2:A5000,0),""))>0,1))
Ctrl+Shift+Enter

The date column is E:E.
The store number column is G:G
Thank you for any input.
 

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.
Substitute

'[Data - Deliverables.xlsb]orders'

for X in the following:

Rich (BB code):
=SUM(IF(FREQUENCY(IF(X!A2:A5000<>"",
   IF(X!E2:E5000>=J2,IF(X!E2:E5000<=K2,
    IF(X!G2:G5000=L2,MATCH(X!A2:A5000,X!A2:A5000,0))))),
     ROW(X!A2:A5000)-ROW(X!A2)+1),1))
where J2 and K2 houses date criteria of interest with J2 <= K2 and L2 a store of interest.

You could also do a SQL query to obtain the required result (The board has some posts by Fazza on this.).
 
Upvote 0
The more I work on this project the more I realize I need to learn SQL query.

Thank you that does appear to work very well.

How much of a burden will I put on excel if I were to change the end of range number from 5000 to 500000?

Again thank you.
 
Upvote 0
The more I work on this project the more I realize I need to learn SQL query.

Thank you that does appear to work very well.

You are welcome. Thanks for providing feedback.

How much of a burden will I put on excel if I were to change the end of range number from 5000 to 500000?
...

That would be considerable indeed given the number of conditions involved.
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,459
Members
452,915
Latest member
hannnahheileen

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