Unique text values times two

wyrm76

New Member
Joined
Oct 20, 2020
Messages
7
Office Version
  1. 2013
Platform
  1. Windows
Hello to all,

I just stumbled on this site in desperation because I am fighting with Excel all morning. I hope someone can help me.

I have a huge datasheet from which I am trying to make some graphs. Here's the challenge I am facing:

Column AZ holds the name of a customer, column BC the location of the customer. Names of the customers can be listed multiple times, and I am searching for a way in which I can see how many customers there are for a location. This would lead me to a graph that shows the ammount of active customers per location.

customer| location
a | New york
a | New York
b | New York
c | New York
d | Paris
d | Paris
e | Amsterdam

The Result should be:
New York: 3
Paris: 1
Amsterdam: 1

To make it even more difficult. Some fields contain just Amsterdam, others Amsterdam-west. So searching for texts containing Amsterdam would be great.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
It would be easier to help if you could use the XL2BB add-in (icon in the menu) to attach a screenshot (not a picture) of your sheet. Alternately, you could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary). In your description, should New York=4 and Paris=2?
 
Upvote 0
Thank you for replying. I know it's difficult to help when you don't actually see the sheet. I have uploaded an example here: customer.xlsx

The text in red should be the calculated result by exel.
 
Upvote 0
Hi & welcome to MrExcel.
How about
customer.xlsx
ABCDEFGH
1CustomerLocation of customer
2asdAmsterdam WestNumber of unique customers
3PietersParisAmsterdam3
4JansenAmsterdamBarcelona1
5WillemsenBarcelonaNew York2
6JansenAmsterdamParis3
7FreriksNew York
8PietersParis
9JansenAmsterdam
10VeenstraParis
11BoonstraNew York
12KampermanAmsterdam
13Van HalenParis
14
Blad1
Cell Formulas
RangeFormula
G3:G6G3=SUM(--(FREQUENCY(IF(LEFT($B$2:$B$13,LEN(F3))=F3,MATCH($A$2:$A$13,$A$2:$A$13,0)),ROW($A$2:$A$13)-ROW($A$2)+1)>0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
That's it! Thank you!!! Now I have to translate it to my Dutch version of Excel 2013. I have used an online formula translator for that. Until now without any luck, but I think I'll get there.

Thanks again!
 
Upvote 0
In Dutch it's
Excel Formula:
=SOM(--(INTERVAL(ALS(LINKS($B$2:$B$13;LENGTE(F3))=F3;VERGELIJKEN($A$2:$A$13;$A$2:$A$13;0));RIJ($A$2:$A$13)-RIJ($A$2)+1)>0))
I use this site for translating formulae when needed.
 
Upvote 0
You need to get rid of the colon (and extra spaces) from the values in col F
 
Upvote 0
Ofcourse! Stupid me! Thsnks

Tried it, no luck yet however...
 
Upvote 0
Did you confirm it with Ctrl Shift Enter?
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,317
Members
449,081
Latest member
tanurai

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