Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
prom4x
 
Posts: n/a
Default Counting text in a column


I used to think I was good at Excel until this stumped me.

I have a column with a variety of text in each cell.

Example:

A1
bob
bob
ted
ted
ted
charley
charley
charley
charley, etc.

Is there a formula or way I can take the whole column of data and have
it come back with something similar to:
bob = 2
ted=3
charley=4
etc.

for all the variables in the column?

Please help, I am dying over here.


--
prom4x
------------------------------------------------------------------------
prom4x's Profile: http://www.excelforum.com/member.php...o&userid=29010
View this thread: http://www.excelforum.com/showthread...hreadid=487412

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default Counting text in a column

In B1 add = A1
In C1 add =IF(B1="","",(" = "&COUNTIF(A:A,A1)))
In B2 add
=IF(ISERROR(MATCH(0,COUNTIF(B$1:B1,$A$1:$A$20&""), 0)),"",
INDEX(IF(ISBLANK($A$1:$A$20),"",$A$1:$A$20),MATCH( 0,COUNTIF(B$1:B1,$A$1:$A$2
0&""),0)))

which is an array formula, so commit with Ctrl-Shift-Enter

Copy B2 down, and C1 down.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"prom4x" wrote in
message ...

I used to think I was good at Excel until this stumped me.

I have a column with a variety of text in each cell.

Example:

A1
bob
bob
ted
ted
ted
charley
charley
charley
charley, etc.

Is there a formula or way I can take the whole column of data and have
it come back with something similar to:
bob = 2
ted=3
charley=4
etc.

for all the variables in the column?

Please help, I am dying over here.


--
prom4x
------------------------------------------------------------------------
prom4x's Profile:

http://www.excelforum.com/member.php...o&userid=29010
View this thread: http://www.excelforum.com/showthread...hreadid=487412



  #3   Report Post  
Posted to microsoft.public.excel.misc
Gary''s Student
 
Posts: n/a
Default Counting text in a column

I would use a Pivot table. You will need a label at the top of the column,
names, for example. Just put names in the row area and count of names in the
data area.

Once you have tried a Pivot Table, you will never go back.


--
Gary's Student


"prom4x" wrote:


I used to think I was good at Excel until this stumped me.

I have a column with a variety of text in each cell.

Example:

A1
bob
bob
ted
ted
ted
charley
charley
charley
charley, etc.

Is there a formula or way I can take the whole column of data and have
it come back with something similar to:
bob = 2
ted=3
charley=4
etc.

for all the variables in the column?

Please help, I am dying over here.


--
prom4x
------------------------------------------------------------------------
prom4x's Profile: http://www.excelforum.com/member.php...o&userid=29010
View this thread: http://www.excelforum.com/showthread...hreadid=487412


  #4   Report Post  
Posted to microsoft.public.excel.misc
Ken Wright
 
Posts: n/a
Default Counting text in a column

Data / Filter / Advanced Filter - Copy to another location gets you a unique
list. COUNTIF then gets you the number of each of the elements within the
source data.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

------------------------------*------------------------------*----------------
It's easier to beg forgiveness than ask permission :-)
------------------------------*------------------------------*----------------


"prom4x" wrote in
message ...

I used to think I was good at Excel until this stumped me.

I have a column with a variety of text in each cell.

Example:

A1
bob
bob
ted
ted
ted
charley
charley
charley
charley, etc.

Is there a formula or way I can take the whole column of data and have
it come back with something similar to:
bob = 2
ted=3
charley=4
etc.

for all the variables in the column?

Please help, I am dying over here.


--
prom4x
------------------------------------------------------------------------
prom4x's Profile:
http://www.excelforum.com/member.php...o&userid=29010
View this thread: http://www.excelforum.com/showthread...hreadid=487412



  #5   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Counting text in a column


If you want to use a formula:

try this:
=COUNTIF(A1:A10,"BOB")
or
=COUNTIF(A1:A10,"*BOB*")

(adjust the range references to suit your situation)

You could also us a Pivot Table

Does that help?
Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=487412



  #6   Report Post  
Posted to microsoft.public.excel.misc
prom4x
 
Posts: n/a
Default Counting text in a column


There is about a hundred titles in this column. Is there a way to get a
count on each title in one shot?


--
prom4x
------------------------------------------------------------------------
prom4x's Profile: http://www.excelforum.com/member.php...o&userid=29010
View this thread: http://www.excelforum.com/showthread...hreadid=487412

  #7   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Counting text in a column


Then Pivot Table is the easiest way to go

Make sure there is a column heading, like "FirstName", at the top of
the data.

DataPivot Table
\Use Excel list
\Select your list (including the heading)
\Click the [Layout] button and
Drag labels into the pivot table
ROW: FirstName
DATA: Count of FirstName

Select where you want the Pivot Table and....there's your name count
table.

Does that help?

Ron


--
Ron Coderre
------------------------------------------------------------------------
Ron Coderre's Profile: http://www.excelforum.com/member.php...o&userid=21419
View this thread: http://www.excelforum.com/showthread...hreadid=487412

  #8   Report Post  
Posted to microsoft.public.excel.misc
prom4x
 
Posts: n/a
Default Counting text in a column


Ron, you are a god!
Thank you very much.


--
prom4x
------------------------------------------------------------------------
prom4x's Profile: http://www.excelforum.com/member.php...o&userid=29010
View this thread: http://www.excelforum.com/showthread...hreadid=487412

  #9   Report Post  
Posted to microsoft.public.excel.misc
Ken Wright
 
Posts: n/a
Default Counting text in a column

Ditto - Pivot table

Regards
Ken..............


"prom4x" wrote in
message ...

There is about a hundred titles in this column. Is there a way to get a
count on each title in one shot?


--
prom4x
------------------------------------------------------------------------
prom4x's Profile:
http://www.excelforum.com/member.php...o&userid=29010
View this thread: http://www.excelforum.com/showthread...hreadid=487412



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
counting text in a column ferde New Users to Excel 4 August 16th 05 02:08 AM
Arithmetical Mode of Criteria in Multiple Non-Adjacent columns Sam via OfficeKB.com Excel Worksheet Functions 4 July 14th 05 09:15 PM
match and count words David Excel Worksheet Functions 5 July 4th 05 02:24 AM
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Counting every unique text string in a column doctor rick Excel Worksheet Functions 2 December 15th 04 07:36 AM


All times are GMT +1. The time now is 12:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"