InquisitiveFrog
New Member
- Joined
- Apr 20, 2024
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
I have a large list of citizen names that are associated with eleven different attributes. I'm trying to find the best fit job for them based on each job having two defining attributes. This is what the 'Citizens Stats' tab looks like:
L4 =LARGE(Adaptability,L3)
L5 =COUNTIF(Adaptability,">="&L4)
Rank =IF(ROWS('Citizens Stats'!$A$41:A46)>COUNTIF(Adaptability,">="&LARGE(Adaptability,$L$3)),"",ROWS('Citizens Stats'!$A$41:A46))
Adaptability =IF(K8="","",LARGE(Adaptability,K8))
Name =IF(K8="","",INDEX(Name,AGGREGATE(15,6,(ROW(Name)-ROW('Citizens Stats'!$A$2)+1)/(Adaptability=Ranks!L8),COUNTIF(Ranks!$L$8:L8,Ranks!L8))))
I created a 'Ranks' tab where I first determined how many jobs needed a primary stat. In this case, four jobs ("Top") require a high "Adaptability" score. Then I determined what the highest score for Adaptability was 40, using the Large function. In order to account for duplicates I figured out how many scores matched the top score. For the Rank column I wanted it to change based on how many top scores I needed for jobs. I then added the top 4 scores, which all happened to be 40 in this instance and matched their name with their score taking duplicates into account. I am now trying to search the citizen tab based on the Name criteria to find their second highest score and attribute name. I was able to accomplish this on another sheet, but it requires that all 150 names are in alphabetical order since it is a row based search (2nd Score =LARGE('Citizens Stats'!B2:L2, 2), 2nd Stat =INDEX('Citizens Stats'!$B$1:$L$1,MATCH(LARGE('Citizens Stats'!B2:L2,2),'Citizens Stats'!B2:L2,0)) - although there was a problem with duplicates getting ignored which led me to trying the method outlined at the start of this paragraph. I just want to be able to give them their best job...based on their two highest scores. No rush, this is just me having fun in excel....
L4 =LARGE(Adaptability,L3)
L5 =COUNTIF(Adaptability,">="&L4)
Rank =IF(ROWS('Citizens Stats'!$A$41:A46)>COUNTIF(Adaptability,">="&LARGE(Adaptability,$L$3)),"",ROWS('Citizens Stats'!$A$41:A46))
Adaptability =IF(K8="","",LARGE(Adaptability,K8))
Name =IF(K8="","",INDEX(Name,AGGREGATE(15,6,(ROW(Name)-ROW('Citizens Stats'!$A$2)+1)/(Adaptability=Ranks!L8),COUNTIF(Ranks!$L$8:L8,Ranks!L8))))
I created a 'Ranks' tab where I first determined how many jobs needed a primary stat. In this case, four jobs ("Top") require a high "Adaptability" score. Then I determined what the highest score for Adaptability was 40, using the Large function. In order to account for duplicates I figured out how many scores matched the top score. For the Rank column I wanted it to change based on how many top scores I needed for jobs. I then added the top 4 scores, which all happened to be 40 in this instance and matched their name with their score taking duplicates into account. I am now trying to search the citizen tab based on the Name criteria to find their second highest score and attribute name. I was able to accomplish this on another sheet, but it requires that all 150 names are in alphabetical order since it is a row based search (2nd Score =LARGE('Citizens Stats'!B2:L2, 2), 2nd Stat =INDEX('Citizens Stats'!$B$1:$L$1,MATCH(LARGE('Citizens Stats'!B2:L2,2),'Citizens Stats'!B2:L2,0)) - although there was a problem with duplicates getting ignored which led me to trying the method outlined at the start of this paragraph. I just want to be able to give them their best job...based on their two highest scores. No rush, this is just me having fun in excel....