Most common text with matched criteria

DipDip

Board Regular
Joined
Jan 23, 2015
Messages
76
Office Version
  1. 2016
Platform
  1. Windows
Hi Everyone!
I hope you are keeping safe and well. I have a problem that I can't figure out and am looking for some help please.

I have created an excel tracker for recording our new employee of the month nominations and the top votes.

It looks like this...

Payroll NoNominee NameNominated ByClinical DaysClinical NightsNon-Clinical
123456Joe BloggsCarl Coxx
234567Jim BobFerry Corstenx
345678Karen SmithJudge Julesx

Then to the right I have another table which has the following:

CategoryNominee NameNumber of Votes
Clinical Days{=IFERROR(INDEX(B3:B100,MODE(IF(D3:D100="X",MATCH(B3:B100,B3:B100,0)))),"No Overall Winner")}=COUNTIF(B$3:B$100,Q3)
Clinical Nights{=IFERROR(INDEX(B3:B100,MODE(IF(E3:E100="X",MATCH(B3:B100,B3:B100,0)))),"No Overall Winner")}=COUNTIF(B$3:B$100,Q4)
Non Clinical{=IFERROR(INDEX(B3:B100,MODE(IF(F3:F100="X",MATCH(B3:B100,B3:B100,0)))),"No Overall Winner")}=COUNTIF(B$3:B$100,Q5)

The issue I am having is that if there is more than one person with the same number of votes, the person who appears on the list first is shown, as opposed to saying something like "No Overall Winner".

I'm hoping someone can help push me in the right direction.

Thanks for your help :)


Dip
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
What version of Excel are you using?
Please update your account details to show this, as it affects which functions you can use.
 
Upvote 0
In that case how about
+Fluff v2.xlsm
ABCDEFGHIJKLM
1
2Payroll NoNominee NameNominated ByClinical DaysClinical NightsNon-ClinicalCategoryNominee NameNumber of VotesWith LET
3123456Joe BloggsCarl CoxxxClinical DaysJoe Bloggs2Joe Bloggs
4234567Jim BobFerry CorstenXClinical NightsJim Bob2Jim Bob
5345678Karen SmithJudge JulesXNon ClinicalNo Overall Winner0No Overall Winner
6123456Joe BloggsCarl Coxxx
7234567Jim BobFerry CorstenxX
8345678Karen SmithJudge JulesX
9
10
Data
Cell Formulas
RangeFormula
J3J3=IF(COUNT(MODE.MULT(IF(D3:D100="X",MATCH(B3:B100,B3:B100,0))))=1,INDEX(B3:B100,MODE.MULT(IF(D3:D100="X",MATCH(B3:B100,B3:B100,0)))),"No Overall Winner")
K3:K5K3=COUNTIF(B$3:B$100,J3)
J4J4=IF(COUNT(MODE.MULT(IF(E3:E100="X",MATCH(B3:B100,B3:B100,0))))=1,INDEX(B3:B100,MODE.MULT(IF(E3:E100="X",MATCH(B3:B100,B3:B100,0)))),"No Overall Winner")
J5J5=IF(COUNT(MODE.MULT(IF(F3:F100="X",MATCH(B3:B100,B3:B100,0))))=1,INDEX(B3:B100,MODE.MULT(IF(F3:F100="X",MATCH(B3:B100,B3:B100,0)))),"No Overall Winner")
M3M3=LET(Winner,MODE.MULT(IF(D3:D100="X",MATCH(B3:B100,B3:B100,0))),IF(COUNT(Winner)=1,INDEX(B3:B100,Winner),"No Overall Winner"))
M4M4=LET(Winner,MODE.MULT(IF(E3:E100="X",MATCH(B3:B100,B3:B100,0))),IF(COUNT(Winner)=1,INDEX(B3:B100,Winner),"No Overall Winner"))
M5M5=LET(Winner,MODE.MULT(IF(F3:F100="X",MATCH(B3:B100,B3:B100,0))),IF(COUNT(Winner)=1,INDEX(B3:B100,Winner),"No Overall Winner"))


The formula in col M is if you have got the new LET function.
 
Upvote 0
Solution
FLUFF you are awesome! Yes I do have the new LET function and that worked a treat. Cheers :)
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0
Just for the hell of it, you could also return the names of all those who were top like
Payroll NoNominee NameNominated ByClinical DaysClinical NightsNon-ClinicalCategoryNominee NameNumber of Votes
123456Joe BloggsCarl CoxxxClinical DaysJoe Bloggs2
234567Jim BobFerry CorstenXClinical NightsJim Bob2
345678Karen SmithJudge JulesXNon ClinicalJoe Bloggs, Karen Smith0
123456Joe BloggsCarl Coxxx
234567Jim BobFerry Corstenxx
345678Karen SmithJudge JulesX
Cell Formulas
RangeFormula
J3J3=IFERROR(TEXTJOIN(", ",,INDEX(B3:B100,MODE.MULT(IF(D3:D100="X",MATCH(B3:B100,B3:B100,0))))),"No Overall Winner")
K3:K5K3=COUNTIF(B$3:B$100,J3)
J4J4=IFERROR(TEXTJOIN(", ",,INDEX(B3:B100,MODE.MULT(IF(E3:E100="X",MATCH(B3:B100,B3:B100,0))))),"No Overall Winner")
J5J5=IFERROR(TEXTJOIN(", ",,INDEX(B3:B100,MODE.MULT(IF(F3:F100="X",MATCH(B3:B100,B3:B100,0))))),"No Overall Winner")
 
Upvote 0

Forum statistics

Threads
1,214,954
Messages
6,122,461
Members
449,085
Latest member
ExcelError

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