COUNTING THE NUMBER OF A CERTAIN TEXT IN A COLUMN

jbyrne

Board Regular
Joined
Feb 22, 2002
Messages
178
I have a column of dates listed as text as the following, 20020402 standing for April 4 2002. I would like to count in the column next to the date column,how many of that date there are.

For example
column A column B
20020402 1
20020402 2
20020402 3
20020403 1
20020403 2
20020404 1
20020404 2
20020404 3
20020404 4

Any help would be greatly appreciated.
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
On 2002-04-02 10:49, jbyrne wrote:
I have a column of dates listed as text as the following, 20020402 standing for April 4 2002. I would like to count in the column next to the date column,how many of that date there are.

For example
column A column B
20020402 1
20020402 2
20020402 3
20020403 1
20020403 2
20020404 1
20020404 2
20020404 3
20020404 4

Any help would be greatly appreciated.

In B1 enter and copy down:

=COUNTIF($A$1:A1,A1)
 
Upvote 0
Thanks....It worked great!. Is there a way I can put the results on a seperate sheet. For example,

COLUMN A COLUMN B
TOTAL FOR 20020411 10654
TOTAL FOR 20020415 165

etc...
 
Upvote 0
On 2002-04-02 19:19, jbyrne wrote:
Thanks....It worked great!. Is there a way I can put the results on a seperate sheet. For example,

COLUMN A COLUMN B
TOTAL FOR 20020411 10654
TOTAL FOR 20020415 165

etc...

Do you mean by "TOTAL FOR 20020411" how many times 20020411 occurs in the data area or something else that must be totaled?
 
Upvote 0
Hi

If you ensure your data has a heading, select your data and go to Data>Pivot Table you can drag this one field to both the "Data" area and the "Row" area. This way you will get a nice table set up for you, you could even use a dymamic range so it updates automatically.

If you would like me to do this for you email me and I'll set it up for you.
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,174
Members
448,870
Latest member
max_pedreira

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