Count no of Lines by Date

VbaHell

Well-known Member
Joined
Jan 30, 2011
Messages
1,220
Hello Excel World, I am looking for a way to count the number of lines received by day and name.

IE: 20/6/2011 John
20/6/2011 John
20/6/2011 Fred
22/6/2011 John
22/6/2011 Jane

= 20/6/2011 John 2
= 20/6/2011 Fred 1
= 22/6/2011 John 1
= 22/6/2011 Jane 1

Any help will be welcomed
 

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)
Try a Pivot Table

Excel Workbook
ABCDEFGH
1DateWhoCount of WhoColumn Labels
220/06/2011JohnRow LabelsFredJaneJohnGrand Total
320/06/2011John20/06/2011123
420/06/2011Fred22/06/2011112
522/06/2011JohnGrand Total1135
622/06/2011Jane
Sheet8
 
Upvote 0
Hello Excel World, I am looking for a way to count the number of lines received by day and name.

IE: 20/6/2011 John
20/6/2011 John
20/6/2011 Fred
22/6/2011 John
22/6/2011 Jane

= 20/6/2011 John 2
= 20/6/2011 Fred 1
= 22/6/2011 John 1
= 22/6/2011 Jane 1

Any help will be welcomed
You could do something like this...

Raw data:

Book1
AB
26/20/2011John
36/20/2011John
46/20/2011Fred
56/22/2011John
66/22/2011Jane
Sheet1

Summary Table:

Book1
DEFG
1_JohnFredJane
26/20/2011210
36/22/2011101
Sheet1

Formula entered in E2:

If you're using Excel 2007 or later:

=COUNTIFS($A$2:$A$6,$D2,$B$2:$B$6,E$1)

This one will work in any version of Excel:

=SUMPRODUCT(--($A$2:$A$6=$D2),--($B$2:$B$6=E$1))

Copy across to G2 then down to E3:G3.
 
Upvote 0

Forum statistics

Threads
1,224,518
Messages
6,179,254
Members
452,900
Latest member
LisaGo

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