Countifs and wildcards to rank 2 criteria based on a job title in one column and Percentage in the other.

stephanini

New Member
Joined
Jul 20, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I'm trying to rank a group with varying job titles in column E, and a % in column J. Using wildcards to combine the CSR I & CSR II in the same ranked group, however, when using the following formula, it appears that the wildcards aren't working and it's still ranking them based on the 2 different job titles instead of the ranking either job title together.

=IF(E91&"*"=E91&"*",COUNTIFS($E:$E,$E91&"*",$J:$J,">"&J91)+1,"")

1626803666458.png
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
What are you trying to do with the first part?

E91&"*"=E91&"*"makes no sense because you are comparing E91 to E91 and you can't use wildcards in logical tests.

Best guess without the expected results to verify would be
Excel Formula:
=COUNTIFS($E:$E,$E91&"*",$J:$J,">"&J91)+COUNTIFS($E$91:$E91,$E91&"*",$J$91:$J91,">"&J91)
Although I should point out that the wildcards will only work one way, CSR II will be included in counts where the current row contains CSR I but not the other way around.
For that to work, you would need to split the string in E91 with something like
Excel Formula:
=COUNTIFS($E:$E,LEFT($E91,3)&"*",$J:$J,">"&J91)+COUNTIFS($E$91:$E91,LEFT($E91,3)&"*",$J$91:$J91,">"&J91)
but again depending on other characteristics of the data that may not be visible from your image, this may not work for everything.
 
Upvote 0

Forum statistics

Threads
1,214,968
Messages
6,122,506
Members
449,089
Latest member
RandomExceller01

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