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
 
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?
Thanks let me explain a bit further the requirements apologies.

1708434297726.png


  • If Today is Monday and Worker 1 has "Off" it would ignore this and show worker 2 as the lowest score.
  • For all other workers where its not got a "Off" it would show the person with the next lowest score.
  • If now it is Tuesday it will INCLUDE worker 1 in the calculation as normal but this time EXCLUDE worker 2 as today's date is now Tuesday and he's marked off as "Off" on Tuesday.
I.e if based on today's date, it will check the schedule for that day and for anyone who is marked with "Off" or "Lead" it will exclude them for that calculation for the day. The next day when the day changes it will then use the schedule for that day.
 
Upvote 0

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, using the layout in your image in post#11 and hardcoding the "rank to return" (the last 1 in the formula) - you can try like this:

Book2
ABCDEFGHIJK
1MondayTuesdayWednesdayThursdayFriday
2Worker 1OFF
3Worker 2Worker 12Worker 1
4Worker 3Worker 23
5Worker 4OFFWorker 35
6Worker 47
Sheet1
Cell Formulas
RangeFormula
K3K3=LET(SB,SORTBY($H$3:$H$6,$I$3:$I$6),INDEX(FILTER(SB,1-ISNUMBER(MATCH(SB,FILTER($A$2:$A$5,INDEX($B$2:$F$5,0,MATCH(TEXT(TODAY(),"dddd"),$B$1:$F$1,0))="OFF"),0))),1))
 
Upvote 0
for anyone who is marked with "Off" or "Lead" it will exclude
I missed the "Lead" part - if those cells can only contain "Off" or "Lead" then you can try like this, if they can contain other text that you don't want to exclude post back and we'll have another go.

Book2
ABCDEFGHIJK
1MondayTuesdayWednesdayThursdayFriday
2Worker 1OFF
3Worker 2OFFWorker 12Worker 1
4Worker 3Worker 23
5Worker 4OFFWorker 35
6Worker 47
Sheet1
Cell Formulas
RangeFormula
K3K3=LET(SB,SORTBY($H$3:$H$6,$I$3:$I$6),INDEX(FILTER(SB,1-ISNUMBER(MATCH(SB,FILTER($A$2:$A$5,INDEX($B$2:$F$5,0,MATCH(TEXT(TODAY(),"dddd"),$B$1:$F$1,0))<>""),0))),1))
 
Upvote 1
I honestly can't thank you enough, you really are a wizard

Although the complexity of that formula is frightening thanks for your time its really appreciated- is this just through pure experience you are able to create these so seamlessly
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,958
Members
449,096
Latest member
Anshu121

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