=COUNTIF(S) question

stonypaul

Board Regular
Joined
Jan 4, 2008
Messages
86
I have a spreadsheet with a year's worth of dates in column A, i.e. 01-01-2011 onwards and in columns B, C, D onwards I have a set of names in each column which can fluctuate dependent on the date in column A. If I want to use =COUNTIF or =COUNTIFS to count the common names by row dependent on the date in column A how would I do this please? I've been playing around with INDEX, VLOOKUP and MATCH but with no luck. Thank you.

HTML:
	A	          B	     C	        D	  E
1	01/01/11	Petrina	Caroline	Liz	Dawn
2	02/01/11	Petrina	Caroline	Liz	Dawn
3	03/01/11	Petrina	Caroline	Liz	Dawn
4	04/01/11	Petrina	Caroline	Liz	Dawn
5	05/01/11	Petrina	Caroline	Liz	Dawn
6	06/01/11	Petrina	Caroline	Liz	Dawn
7	07/01/11	Petrina	Caroline	Liz	Dawn
8	08/01/11	Petrina	Caroline	Liz	Dawn
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
What do you mean by "count the common names by row"?
 
Upvote 0
What do you mean by "count the common names by row"?


OK sorry for the confusion. I want a formula that specifies a row based on the date in column A, and then specifies a name, and then a count is made of the occurrences of the specified name in the specified row. For instance below the name Petrina would return a count of 2 for 01/01/11, a count of 4 for 02/01/11, and so on.

PHP:
	 A	       B	      C	        D	       E
1	01/01/11	Petrina	Caroline	 Petrina	 Dawn
2	02/01/11	Petrina	Petrina	  Petrina	 Petrina
3	03/01/11	Caroline   Caroline	 Caroline	Dawn
4	04/01/11	Petrina	Dawn	     Dawn	    Dawn
 
Upvote 0
Is this what you want:

Excel Workbook
ABCDE
101/01/2011PetrinaCarolinePetrinaDawn
202/01/2011PetrinaPetrinaPetrinaPetrina
303/01/2011CarolineCarolineCarolineDawn
404/01/2011PetrinaDawnDawnDawn
5
6DateName
7Criteria01/01/2011Petrina
8
9result
102
Sheet6



?
 
Upvote 0

Forum statistics

Threads
1,224,585
Messages
6,179,706
Members
452,939
Latest member
WCrawford

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