Index and match formula that ignores dynamic value

harshilrks

New Member
Joined
Feb 12, 2024
Messages
7
Office Version
  1. 365
Hi all

I have the following sheet and I'm trying to use an index and match fomrula but it ignores a dynamic value. In colum O13, I'm using the index and match to return the person with the lowest value.

This works as intended but I need a way to continue this but to ignore the name/person from cell M1. How can I do this?

Lead analyst triage.xlsm
ACEGIJKLMNOPQSU
1Lead analystDJ
2TypePriorityBounce back?ReviewAssigneeScoreAnalyst HealthDays workingWeighting for days offCurrent scoreTotal scoreOpenPendingOn Hold
3SIEMLowNoNoHarshil3Harshil5106000
4SIEMLowNoNoHarshil3Andres510.53.5020
5SophosHighNoYesGrad3Yulia510.252.25010
6MDEHighNoYesShreyash4DJ5120002000000
7SIEMHighNoYesYulia2Arun510.751.75030
8SIEMNormalNoYesAndres1Shreyash5104000
9SIEMNormalNoYesArun1Craig511.252.25130
10SIEMNormalNoYesCraig1Gradrgrgrgr5108000
11NCCNormalNoNoAndres2Matt30.619991999020
12NCCHighNoYesArun0Next person to assign tooAnalyst
13NCCHighNoYesArun01Arun
Lead allocation
Cell Formulas
RangeFormula
O3:O5,O7:O10O3=SUM($R3+$T3+$V3)
N3:N11N3=IF($M3=5,"1",IF($M3=4,"0.8",IF($M3=3,"0.6",IF($M3=2,"0.4",IF($M3=1,"0.2",IF($M3=0,"0"))))))
P3P3=(SUMIF($I$3:$I$459,"Harshil",$J$3:$J$459)*$N3)+$O3
P4P4=(SUMIF($I$3:$I$459,"Andres",$J$3:$J$459)*$N4)+$O4
P5P5=(SUMIF($I$3:$I$459,"Yulia",$J$3:$J$459)*$N5)+$O5
P6P6=(SUMIF($I$3:$I$459,"DJ",$J$3:$J$459)*$N6)+$O6
P7P7=(SUMIF($I$3:$I$459,"Arun",$J$3:$J$459)*$N7)+$O7
P8P8=(SUMIF($I$3:$I$459,"Shreyash",$J$3:$J$459)*$N8)+$O8
P9P9=(SUMIF($I$3:$I$459,"Craig",$J$3:$J$459)*$N9)+$O9
P10P10=(SUMIF($I$3:$I$459,"Grad",$J$3:$J$459)*$N10)+$O10
P11P11=(SUMIF($I$3:$I$459,"Matt",$J$3:$J$459)*$N11)+$O11
J3:J13J3=SUM($B3+$D3+$F3+$H3)
O13O13=INDEX($L$3:$L$11,MATCH(SMALL($P$3:$P$11,$L13),$P$3:$P$11,0))
Cells with Data Validation
CellAllowCriteria
I3:I13List=$L$3:$L$11
M1List=$L$3:$L$11
C3:C13List=Values!$B$3:$B$6
A3:A13List=Values!$A$3:$A$7
E3:E13List=Values!$C$3:$C$4
G3:G13List=Values!$D$3:$D$4
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi, welcome to the forum!

What version of Excel are you using? If it's XL365, you could try:

Excel Formula:
=LET(SB,SORTBY($L$3:$L$11,$P$3:$P$11),INDEX(FILTER(SB,SB<>$M$1),L13))
 
Upvote 1
Thank you that's amazing and is working

Can you explain how this formula is working?

Also is there a way to to filter out two cells, say M1 as well as N1 too?

Hi, welcome to the forum!

What version of Excel are you using? If it's XL365, you could try:

Excel Formula:
=LET(SB,SORTBY($L$3:$L$11,$P$3:$P$11),INDEX(FILTER(SB,SB<>$M$1),L13))
 
Upvote 0
Thank you that's amazing and is working

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Can you explain how this formula is working?

Hi, it uses the SORTBY() function to sort the list of names in column L by the numbers in column P, it then FITERS() the sorted list of names to exclude any that equal what is in cell M1 and then it uses the INDEX() function to retrieve the row number of the filtered list that is in cell L13.

Also is there a way to to filter out two cells, say M1 as well as N1 too?

You could try:
Excel Formula:
=LET(SB,SORTBY($L$3:$L$11,$P$3:$P$11),INDEX(FILTER(SB,(SB<>$M$1)*(SB<>$N$1)),L13))
 
Upvote 1
Solution
Hi, it uses the SORTBY() function to sort the list of names in column L by the numbers in column P, it then FITERS() the sorted list of names to exclude any that equal what is in cell M1 and then it uses the INDEX() function to retrieve the row number of the filtered list that is in cell L13.



You could try:
Excel Formula:
=LET(SB,SORTBY($L$3:$L$11,$P$3:$P$11),INDEX(FILTER(SB,(SB<>$M$1)*(SB<>$N$1)),L13))

Thank you so much for your help. Your help has been faboluous
 
Upvote 0
Hi, it uses the SORTBY() function to sort the list of names in column L by the numbers in column P, it then FITERS() the sorted list of names to exclude any that equal what is in cell M1 and then it uses the INDEX() function to retrieve the row number of the filtered list that is in cell L13.



You could try:
Excel Formula:
=LET(SB,SORTBY($L$3:$L$11,$P$3:$P$11),INDEX(FILTER(SB,(SB<>$M$1)*(SB<>$N$1)),L13))
Sorry one more build if you are able to help

Instead of filtering out values if its not a value with INDEX(FILTER(SB,(SB<>$M$1) can we filter using a IF condition where if the value in column B is a specific value, then we filter out value of column A

For example:

Column AColumn B
TestOff
Test2Off
Test 3

Filter out column a value if column b is "off"

Thanks!
 
Upvote 0
Hi, something like this maybe.

Book2
ABCKLMNOP
1
2Name 1OFF
3Name 2Name 11
4Name 3Name 212
5Name 4OFFName 313
6Name 5Name 42
7Name 6OFFName 54
8Name 7Name 63
9Name 8Name 712
10Name 820
11
12
131Name 5
Summary
Cell Formulas
RangeFormula
M13M13=LET(SB,SORTBY($L$3:$L$11,$P$3:$P$11),INDEX(FILTER(SB,ISNA(MATCH(SB,FILTER($A$2:$A$9,$B$2:$B$9="OFF"),0))),L13))
 
Upvote 0
Your a real wizard! That works when searching one column e.g "Column B", if I want to extend the same logic but to multiple columns e.g if Column C also contains "Off" , would I just copy the same formula but change to values for column C?
 
Upvote 0
So exclude the names in column A where the same row in column B or column C is "OFF"? Or exclude the names in column A where the same row in column B and C is "OFF"? Or something else?

Any other variants that need to be considered?
 
Upvote 0

Forum statistics

Threads
1,224,808
Messages
6,181,072
Members
453,020
Latest member
mattg2448

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