Frequency formula with Countif

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,860
Office Version
  1. 365
Platform
  1. Windows
Hello All,

I would like to count frequency of values in column A, so when I drag the formula down it should count the number of times the valued in column A appears up to the point where the formula is.
This is how I want.
[TABLE="width: 155"]
<tbody>[TR]
[TD]VALUES[/TD]
[TD]FREQUENCY[/TD]
[/TR]
[TR]
[TD]H&M[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]H&M[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]H&M[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]DJ[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]DJ[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]H&M[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]TEXAS[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]PINNER[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Sweden[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]USA[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]UK[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Denmark[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Netherland[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Sweden[/TD]
[TD="align: right"]2[/TD]
[/TR]
</tbody><colgroup><col><col></colgroup>[/TABLE]


Thanks
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Try:


Excel 2013/2016
AB
1VALUESFrequency
2H&M1
3H&M2
4H&M3
5DJ1
6DJ2
7H&M4
8TEXAS1
9PINNER1
10USA1
11USA2
12Sweden1
13USA3
14UK1
15USA4
16UK2
17Denmark1
18Netherland1
19Sweden2
Sheet1
Cell Formulas
RangeFormula
B2=COUNTIF($A$2:A2,A2)
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,250
Members
452,623
Latest member
Techenthusiast

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