Counting unique text values

candymycandy

New Member
Joined
Jun 14, 2022
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Hi,

Briefly, I have an excel tab that has events (Conferences, training etc), people attending and what company they are from.
I need:
  • a formula that will pull unique text values (for the company) from the list and display them in another sheet's cell (not the "unique" function as this doesn't allow me to sort by a-z).
  • a formula that will count the number of unique events that each company has booked onto to display in the same sheet as above
This forms part of a wider dashboard and for various reasons a pivot isn't working for what I need. I have uploaded an example of what I need.

Hope this is clear and many thanks in advance!
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Maybe:
example data.xlsx
ABCDE
1I need formula to pull unique values from Data Tab Col C to go in colA belowFormula to calculate how many events each company has booked
2CompanyTraining BudgetUsedRemainingEvents Booked
3Asda5000100040003
4Big Co Shops10005005001
5Chems400040036003
6Etsy3000200010001
7Home Stores10009001002
8Londis10000121087901
9OnlineTrading4400212122792
10Smiths5000100040001
11Tesco150014001001
Formula here
Cell Formulas
RangeFormula
A3:A11A3=LET(s,SORT(UNIQUE(Data!C:C)),FILTER(s,(s<>"")*(s<>"Company")))
E3:E11E3=COUNTIF(Data!C:C,'Formula here'!A3#)
D3:D11D3=B3-C3
Dynamic array formulas.
 
Upvote 1
Hi and thank you!

The LET formula is working perfectly, thanks :biggrin:

I don't think I explained myself properly for:
  • a formula that will count the number of unique events that each company has booked onto to display in the same sheet as above
I am not sure if its possible, but I need to count how many events each Company has signed up for, rather than how many attendees they sent.
E.G. Amazon sent 2 staff to "X event", and 3 staff to "Z event". So the result I need to see is that Amazon have signed up to 2 events.

There is a strong chance that I'm not using the formula correctly!
Many thanks!
 
Upvote 0

Forum statistics

Threads
1,223,264
Messages
6,171,081
Members
452,377
Latest member
bradfordsam

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