Non-Array, Non-Pivot Solution Needed (Formula) for Counting Distinct Combination of Text Values in Two Separate Columns

Aimee S.

Board Regular
Joined
Sep 28, 2010
Messages
236
Office Version
  1. 365
Platform
  1. Windows
Hello Folks!!

I am working with some very big data that needs to be in a shared mode format to allow for both Tableau to access as a data source and for file admins to get into it and update occasionally.

Shared mode is disallowed in Excel where pivot tables are concerned, and array solutions, while available, would crash the file given there are thirty thousand rows of purchasing data to comb through.

I am looking for a clever non-array, non-pivot table-driven formula that would:

For all instances where text in F2 appears in range F2:F30001 count the number of distinct corresponding instances of unique values in column AF2:AF30001.
For example, let's say the value that appears in F2 occurs 50 times in range F2:F30001, and 49 cells in the corresponding rows for range AF2:AF30001 contain 'apple', but one contains 'orange.'
The output for this solution would be 2 (number of distinct text strings that appears in the AF range for all instances in the F range where F2's value appears).

Am I up a creek with this without arrays or pivots? I figured if anyone could think outside the box on this one it would be my friends here!!

Warm Regards,
Aimee
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
What version of Excel are you using?
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Very sorry Fluff!! All done. It's been a minute since I was here :) 365 thankfully!
 
Upvote 0
Thanks for that.
How about
Excel Formula:
=ROWS(UNIQUE(FILTER(AF2:AF30001,F2:F30001=F2)))
 
Upvote 1
Solution
This works wonderfully, and I have even given you credit in the data source ;D THANK YOU!!!!!!!!!!!!!!

Purchase Order IDWBS Prefix Tied to This PO Line ItemFluff's Magical Unique Value Count of Project WBS Elements Tied to This PO ID
4502460980TC-2106400213
4502460980TC-2106400223
4502460980TC-2106400233
4502458057TC-2200280273
4502458057TC-2200280283
4502458057TC-2200280293
4502458057TC-2200280293
4502383685TC-2230060213
4502383685TC-2230060233
4502383685TC-2230060243
4502383685TC-2230060273
4502373810TC-2209260213
4502373810TC-2209260223
4502373810TC-2209280213
4502373810TC-2209270213
4502373810TC-2209280223
3800004723TC-2209300213
3800004723TC-2209310223
3800001087MC-2205450343
3800001087MC-2205450363
3800001087MC-2205450363
3800001087MC-2205450363
3800001087MC-2205450363
3800001087MC-2205450363
3800001087MC-2205450363
3800001087MC-2205450363
3800001053TC-2108850603
3800001053TC-2108850603
3800001053TC-2108850713
3800001053TC-2108850713
3800001053TC-2108850713
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,189
Messages
6,129,408
Members
449,509
Latest member
ajbooisen

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