column of items - determining frequency

V

vnl

I have a column of items as follows:

car
car
car
car
truck
boat
boat

How can I create a formula that will determine the frequency that each item
occurs in the list. I seem to recall that the frequency function does
something like this. I want the end result to be something like this:

car 4 times
truck 1 times
boat 2 times

Any idea how to accomplish this?

Thanks.
 
D

Dave Peterson

=countif(a1:a100,"Car")
or if b1 held car:
=countif(a1:a100,b1)

If your list of items can vary a lot, you may want to look at Data|pivottable.

It can create these summaries really quickly--once you're comfortable with them.
 
G

gdselva

Please try these formula:

="Car " & COUNTIF(A1:A7,"car") & " times"
="Truck " & COUNTIF(A1:A7,"truck") & " times"
="Boat " & COUNTIF(A1:A7,"Boat") & " times
 
A

Albert

Also use the "concatenate" formula to add the word times to the "countif" result i.e.
=concatenate(Countif(a1:a100,"Car") ," times")
 
V

vnl

Dave Peterson said:
=countif(a1:a100,"Car")
or if b1 held car:
=countif(a1:a100,b1)

If your list of items can vary a lot, you may want to look at
Data|pivottable.

It can create these summaries really quickly--once you're comfortable
with them.

Thanks. I just realized that what I need to do is to not only record the
individual occurances (i.e. counting the number) but also check the
frequency of a range of numbers in another column. For example, say that
I have the following column:

1
1
1
5
5
5
12
12
13
13
14

I need the end result to have something like below:

Frequency of #1-4: 3 times
Frequency of #5-9: 3 times
Frequency of #10-15: 5 times

Any ideas?

Thanks.
 
D

Dave Peterson

Take a look at =Frequency() in excel's help.

You can have "bins" that sound like what you want.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top