Index and match to identify lowest answer from a range

Sprinter99

New Member
Joined
Mar 11, 2021
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
Hi ,
I have a requirement to lookup open cases that a user may have with the helpdesk, some users have multiple cases over a period of time and that could be 1,2,3 or 4 (Priority 1 being the highest importance and priority 4 being the lowest priority).

I am trying to user index and match against a username which is unique on both reports to identify the highest priority (or lowest number) for that user and ignore all other cases that they may have opened.

I am no longer sure that Index and Match is the way to go, so any assistance would be very much appreciated.

Question.xlsx
ABCD
1usernameLowest priority caseNotes
2User_12the answer I am looking for is "1" as that is the lowest
3User_20
4User_32
5User_40
6User_50
7User_60
8User_74the answer I am looking for is "3" as that is the lowest
9User_80
10User_90
11User_100
12User_110
13User_120
14User_130
15User_140
16User_150
17User_160
18User_170
19User_180
20User_190
21User_200
22User_210
23User_220
24User_230
25User_240
26User_250
27User_260
28User_270
29User_280
30User_290
31User_300
report
Cell Formulas
RangeFormula
B2:B31B2=INDEX(Incidents!B:B,MATCH(report!A2,Incidents!A:A,0))


and here is the sheet that contains the values i would like to lookup (very simplified of course)
Question.xlsx
ABCD
1username
2User_12
3User_2
4User_32
5User_4
6User_5
7User_6
8User_74
9User_8
10User_9
11User_10
12User_11
13User_12
14User_13
15User_11Answer I am looking for
16User_211
17User_16
18User_17
19User_73Answer I am looking for
20User_19
21User_20
22User_21
23User_22
24User_23
25User_24
26User_25
27User_26
28User_27
29User_28
30User_29
31User_30
32User_14
33User_15
34User_18
Incidents
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Depending on your Excel version the MINIFS function is available. Don't forget to add a condition for empty cells !
 
Upvote 0
How about
+Fluff 1.xlsm
AB
1usernameLowest priority case
2User_11
3User_20
4User_32
5User_40
6User_50
7User_60
8User_73
9User_80
10User_90
11User_100
12User_110
13User_120
14User_130
15User_140
16User_150
17User_160
18User_170
19User_180
20User_190
21User_200
22User_210
23User_220
24User_230
25User_240
26User_250
27User_260
28User_270
29User_280
30User_290
31User_300
Report
Cell Formulas
RangeFormula
B2:B31B2=MIN(IF(Incidents!$A$2:$A$100=A2,Incidents!$B$2:$B$100,""))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Solution
Yes, that worked perfectly, after some poking about with the data, unfortunately the case priority is text rather than as i stated so where i had a simple number if the Incidents I.E. 1,2 or 3, its actually "3 - Medium", so i needed too create a new column and add "=NUMBERVALUE(LEFT(H20,1))", once i did the lookup on that cell/column it worked a treat.

That could probably be converted into a single process/formula, but its working which is fine.

Thanks you
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0
You could also use this which won't need the helper column
Excel Formula:
=MIN(IF(Incidents!$A$2:$A$100=A2,IFERROR(VALUE(LEFT(Incidents!$B$2:$B$100)),0),""))
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

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