frequency of string

flyonthewall

New Member
Joined
Jul 24, 2006
Messages
44
i don't know of an elegant/dynamic way to handle the below (simplified) problem. col A will be different dates, sometimes the same dates but i doubt that matters. the focus is col B which can have any number of different names.

the goal, if possible, would be to dynamically output the frequency of a string in col b.

is this possible or can someone think of a crafty way to accomplish it?

<blockquote>
DATA (csv)
-----------------
date1, joe
date2, sally
date3, rick
date4, sally
date5, sally
date6, joe
date7, sally
etc...

DESIRED OUTPUT
----------------------
sally, 4
joe, 2
rick, 1
</blockquote>
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
You could apply an advanced filter to column B to identify all the unique values and then next to that a COUNTIF function against your original data to count the frequencies
 
Upvote 0
BIG thanks.

for anyone coming to this later, exactly what was said above is what i needed to do.

col b was the data with any number of random strings
col c i created a filter seperating the unique values in column b
col d was =countif(b:b, c1) etc to match the unique string against the full list.

thanks so much.
 
Upvote 0

Forum statistics

Threads
1,224,595
Messages
6,179,798
Members
452,943
Latest member
Newbie4296

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