Index/Match Large with Criteria

Celticfc

Board Regular
Joined
Feb 28, 2016
Messages
153
Hi Mr Excel,

I've literally spent 3+ hours on Google but still can't solve the query below.


The code below works perfect, it gives me all the employee names ranked by salary.

Current Code:

Code:
=INDEX(Table1[Employee],MATCH(1,INDEX((Table1[Salary]=LARGE(Table1[Salary],ROWS(K$1:K1)))*(COUNTIF(K$1:K1,Table1[Employee])=0),),0))

I just can't figure out where to put these 2 criteria within the code above which will allow me to list my active female employees only:

Code:
if(Table1[Gender]="F")*(table1[Status]="Active")
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hi Aladin,

Yes absolutely,

I still couldn't find a solution so your support is much appreciated, thanks.


Book1
ABCDKL
1EmployeeSalaryGenderStatus3
2linda40000FInactiveemployeesalary
3jon31990MActivescarlet60000
4karen25000FInactivehenriette25000
5henriette25000FActivewing yu25000
6dave38905MActive
7nate29626MInactive
8wing yu25000FActive
9brian43381MInactive
10scarlet60000FActive
11mete60000MActive
Sheet1


In K1 just enter:

=COUNTIFS(Table1[Gender],"F",Table1[Status],"Active")

In K3 control+shift+enter, not just enter, and copy down:

=IF($L3="","",INDEX(Table1[Employee],SMALL(IF(Table1[Gender]="F",IF(Table1[Status]="Active",IF(Table1[Salary]=$L3,ROW(Table1[Employee])-ROW(INDEX(Table1[Employee],1,1))+1))),COUNTIFS($L$3:L3,L3))))

In L3 control+shift+enter, not just enter, and copy down:

=IF(ROWS($L$2:L2)>$K$1,"",LARGE(IF(Table1[Gender]="F",IF(Table1[Status]="Active",Table1[Salary])),ROWS($L$2:L2)))
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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