Count most common text value in a specified date range.

WhiteNoiseMaker

New Member
Joined
Jan 23, 2015
Messages
23


My first post and I’m desperately in need of help!


I have a list of dates running from 01/01/2015 to 31/12/2015 in column A. This is followed by the task performed that day, and how much has been processed e.g.


ABC
05/01/2015Project 1100
06/01/2015Project 1150
07/01/2015Project 190
08/01/2015Project 250
09/01/2015Project 260
10/01/2015
11/01/2015

<tbody>
</tbody>



I need to be able to count the most common task performed for each week. In the example above the answer I would expect is Project 1, as the majority of the week was spent working on this project.


The example I’ve found below works but I need to specify the date range I want to check, which is too time consuming.


=INDEX(B16:B22,MATCH(MAX(COUNTIF(B16:B22,B16:B22)),COUNTIF(B16:B22,B16:B22),0))


I’m trying to combine the formula above with a formula i have working for counting the totals for each week but I just can’t get it to work.


=SUMIFS($C$16:$C$406,$A$16:$A$406,">="&$O3,$A$16:$A$406,"<="&$O3+6) (O3 contains my list of Monday dates)

Any help would be greatly appreciated :)
 
Try this - use CTRL + SHIFT + ENTER when entering the formula ;)

Code:
=INDEX(B$16:B$406,MODE(IFERROR(IF(A$16:A$406>=O3,IF(A$16:A$406<o3+7,match(b$16:b$406,b$16:b$406,0)*{1,1})),"")))[ code][="" quote]


What is the missing bit off the end of this formula? I tried adding </o3+7,match(b$16:b$406,b$16:b$406,0)*{1,1})),"")))[>[FONT=Lucida Grande]<[/FONT][COLOR=#AB30D6][FONT=Lucida Grande]O3[/FONT][/COLOR][FONT=Lucida Grande]+7,0) but that didn't work.[/FONT]
 
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Sometimes > or < signs are interpreted as HTML tags and the formula gets cut off at that point, you can leave a space at the open end and it should display correctly, i.e.

=INDEX(B$16:B$406,MODE(IFERROR(IF(A$16:A$406>=O3,IF(A$16:A$406< O3+7,MATCH(B$16:B$406,B$16:B$406,0)*{1,1})),"")))
 
Upvote 0

Forum statistics

Threads
1,215,420
Messages
6,124,803
Members
449,190
Latest member
cindykay

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