Comparing Values in Multiple Rows and Bringing Back Chosen Values

gazgazgazgaz

New Member
Joined
Feb 23, 2017
Messages
2
Hi Folks,

Looking for some assistance with this scenario.

IDPostPersonCheck NeededCheck in PlaceWhat I want to see
1234WW1BobLevel 1NoneHighest Check Needed (Across ALL posts) for Bob is Level 2 and Highest Level in place is Level 1.
Action to be taken.
1234WW1BobLevel 1Level 1
1234WW2BobLevel 2Level 1

2555

DR1

Jimmy

Level 3

Level 2

Highest Check Needed (Across ALL posts) for Jimmy is Level 3 and Highest Level in place is Level 2.
Action to be taken.
2555DR1JimmyLevel 3Level 2

3698

TY6

Angela

Level 1

None
Highest Check Needed (Across ALL posts) for Angela is Level 3 and Highest Level in place is Level 3.
No action to be taken.
3698TY8AngelaLevel 3Level 3

4011

EE3

Xavier

Level 3

None
Highest Check Needed (Across ALL posts) for Xavier is Level 3 and Highest Level in place is Level 2.
Action to be taken.
4011EE4XavierLevel 3Level 1
4011EE4XavierLevel 3Level 2

<colgroup><col span="5"><col></colgroup><tbody>
</tbody>

Unique ID will be the (ID) but they can have multiple differences in the other fields.

I want to bring back the desired highest check required and highest check in place values for each employee (across multiple rows) but display results in one row.

I've thought about assigning scores to the values and summing or a pivot table but I can't decipher the best options (if Excel is the best solution!)

Thank you.

Gary.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
IDPostPersonCheck NeededCheck in PlaceHELPER1HELPER2
1234WW1BobLevel 1None10
1234WW1BobLevel 1Level 111
1234WW2BobLevel 2Level 121
2555DR1JimmyLevel 3Level 232
2555DR1JimmyLevel 3Level 232
3698TY6AngelaLevel 1None10
3698TY8AngelaLevel 3Level 333
4011EE3XavierLevel 3None30
4011EE4XavierLevel 3Level 131
4011EE4XavierLevel 3Level 232
check neededcheck in place
Bob21
Jimmy32
Angela33
Xavier32
the 2 against Bob is obtained by
=SUMPRODUCT(MAX(($C$2:$C$11=C21)*$F$2:$F$11))

<colgroup><col span="3"><col><col><col><col span="3"></colgroup><tbody>
</tbody>
 
Upvote 0
I hope this helps!

Sheet1

ABCDEFGHIJK
1Data Table Maximum Values
2IDPostPersonCheck Needed LevelCheck Level in Place IDPostPersonHighest Check Needed LevelHighest Check Level in Place
31234WW1Bob1.0044.00 2555DR1Jimmy5.008.00
41234WW2Bob8.001.00 2555DR2Jimmy0.000.00
51234WW3Bob7.001.00 1234WW1Bob1.0044.00
62555DR1Jimmy5.002.00 1234WW2Bob8.001.00
72555DR1Jimmy3.008.00 1234WW3Bob7.001.00
83698TY6Angela1.000.00 3698TY6Angela1.000.00
93698TY8Angela2.003.00 3698TY8Angela2.003.00
104011EE3Xavier3.000.00 4011EE3Xavier3.000.00
114011EE4Xavier3.001.00 4011EE4Xavier3.001.00
124011EE5Xavier5.002.00 4011EE5Xavier5.002.00
13 0.000.00
14
15 Minimum Values
16 IDPostPersonHighest Check Needed LevelHighest Check Level in Place
17 Comparing Values in Multiple Rows and Bringing Back Chosen Values 2555DR1Jimmy3.002.00
18 2555DR2Jimmy0.000.00
19 1234WW1Bob1.0044.00
20 1234WW2Bob8.001.00
21 1234WW3Bob7.001.00
22 3698TY6Angela1.000.00
23 3698TY8Angela2.003.00
24 4011EE3Xavier3.000.00
25 4011EE4Xavier3.001.00
26 4011EE5Xavier5.002.00
27 0.000.00

<colgroup> <col style="width: 30px; font-weight: bold;"> <col style="width: 85.6px;"> <col style="width: 85.6px;"> <col style="width: 85.6px;"> <col style="width: 155.2px;"> <col style="width: 183.2px;"> <col style="width: 85.6px;"> <col style="width: 85.6px;"> <col style="width: 85.6px;"> <col style="width: 85.6px;"> <col style="width: 215.2px;"> <col style="width: 256px;"></colgroup> <tbody>
</tbody>

Spreadsheet Formulas
CellFormula
J3{=MAX(IF($A$3:$A$13=$G3,IF($B$3:$B$13=$H3,IF($C$3:$C$13=$I3,D$3:D$13))))}
K3{=MAX(IF($A$3:$A$13=$G3,IF($B$3:$B$13=$H3,IF($C$3:$C$13=$I3,E$3:E$13))))}
J4{=MAX(IF($A$3:$A$13=$G4,IF($B$3:$B$13=$H4,IF($C$3:$C$13=$I4,D$3:D$13))))}
K4{=MAX(IF($A$3:$A$13=$G4,IF($B$3:$B$13=$H4,IF($C$3:$C$13=$I4,E$3:E$13))))}
J5{=MAX(IF($A$3:$A$13=$G5,IF($B$3:$B$13=$H5,IF($C$3:$C$13=$I5,D$3:D$13))))}
K5{=MAX(IF($A$3:$A$13=$G5,IF($B$3:$B$13=$H5,IF($C$3:$C$13=$I5,E$3:E$13))))}
J6{=MAX(IF($A$3:$A$13=$G6,IF($B$3:$B$13=$H6,IF($C$3:$C$13=$I6,D$3:D$13))))}
K6{=MAX(IF($A$3:$A$13=$G6,IF($B$3:$B$13=$H6,IF($C$3:$C$13=$I6,E$3:E$13))))}
J7{=MAX(IF($A$3:$A$13=$G7,IF($B$3:$B$13=$H7,IF($C$3:$C$13=$I7,D$3:D$13))))}
K7{=MAX(IF($A$3:$A$13=$G7,IF($B$3:$B$13=$H7,IF($C$3:$C$13=$I7,E$3:E$13))))}
J8{=MAX(IF($A$3:$A$13=$G8,IF($B$3:$B$13=$H8,IF($C$3:$C$13=$I8,D$3:D$13))))}
K8{=MAX(IF($A$3:$A$13=$G8,IF($B$3:$B$13=$H8,IF($C$3:$C$13=$I8,E$3:E$13))))}
J9{=MAX(IF($A$3:$A$13=$G9,IF($B$3:$B$13=$H9,IF($C$3:$C$13=$I9,D$3:D$13))))}
K9{=MAX(IF($A$3:$A$13=$G9,IF($B$3:$B$13=$H9,IF($C$3:$C$13=$I9,E$3:E$13))))}
J10{=MAX(IF($A$3:$A$13=$G10,IF($B$3:$B$13=$H10,IF($C$3:$C$13=$I10,D$3:D$13))))}
K10{=MAX(IF($A$3:$A$13=$G10,IF($B$3:$B$13=$H10,IF($C$3:$C$13=$I10,E$3:E$13))))}
J11{=MAX(IF($A$3:$A$13=$G11,IF($B$3:$B$13=$H11,IF($C$3:$C$13=$I11,D$3:D$13))))}
K11{=MAX(IF($A$3:$A$13=$G11,IF($B$3:$B$13=$H11,IF($C$3:$C$13=$I11,E$3:E$13))))}
J12{=MAX(IF($A$3:$A$13=$G12,IF($B$3:$B$13=$H12,IF($C$3:$C$13=$I12,D$3:D$13))))}
K12{=MAX(IF($A$3:$A$13=$G12,IF($B$3:$B$13=$H12,IF($C$3:$C$13=$I12,E$3:E$13))))}
J13{=MAX(IF($A$3:$A$13=$G13,IF($B$3:$B$13=$H13,IF($C$3:$C$13=$I13,D$3:D$13))))}
K13{=MAX(IF($A$3:$A$13=$G13,IF($B$3:$B$13=$H13,IF($C$3:$C$13=$I13,E$3:E$13))))}
J17{=MIN(IF($A$3:$A$13=$G17,IF($B$3:$B$13=$H17,IF($C$3:$C$13=$I17,D$3:D$13))))}
K17{=MIN(IF($A$3:$A$13=$G17,IF($B$3:$B$13=$H17,IF($C$3:$C$13=$I17,E$3:E$13))))}
J18{=MIN(IF($A$3:$A$13=$G18,IF($B$3:$B$13=$H18,IF($C$3:$C$13=$I18,D$3:D$13))))}
K18{=MIN(IF($A$3:$A$13=$G18,IF($B$3:$B$13=$H18,IF($C$3:$C$13=$I18,E$3:E$13))))}
J19{=MIN(IF($A$3:$A$13=$G19,IF($B$3:$B$13=$H19,IF($C$3:$C$13=$I19,D$3:D$13))))}
K19{=MIN(IF($A$3:$A$13=$G19,IF($B$3:$B$13=$H19,IF($C$3:$C$13=$I19,E$3:E$13))))}
J20{=MIN(IF($A$3:$A$13=$G20,IF($B$3:$B$13=$H20,IF($C$3:$C$13=$I20,D$3:D$13))))}
K20{=MIN(IF($A$3:$A$13=$G20,IF($B$3:$B$13=$H20,IF($C$3:$C$13=$I20,E$3:E$13))))}
J21{=MIN(IF($A$3:$A$13=$G21,IF($B$3:$B$13=$H21,IF($C$3:$C$13=$I21,D$3:D$13))))}
K21{=MIN(IF($A$3:$A$13=$G21,IF($B$3:$B$13=$H21,IF($C$3:$C$13=$I21,E$3:E$13))))}
J22{=MIN(IF($A$3:$A$13=$G22,IF($B$3:$B$13=$H22,IF($C$3:$C$13=$I22,D$3:D$13))))}
K22{=MIN(IF($A$3:$A$13=$G22,IF($B$3:$B$13=$H22,IF($C$3:$C$13=$I22,E$3:E$13))))}
J23{=MIN(IF($A$3:$A$13=$G23,IF($B$3:$B$13=$H23,IF($C$3:$C$13=$I23,D$3:D$13))))}
K23{=MIN(IF($A$3:$A$13=$G23,IF($B$3:$B$13=$H23,IF($C$3:$C$13=$I23,E$3:E$13))))}
J24{=MIN(IF($A$3:$A$13=$G24,IF($B$3:$B$13=$H24,IF($C$3:$C$13=$I24,D$3:D$13))))}
K24{=MIN(IF($A$3:$A$13=$G24,IF($B$3:$B$13=$H24,IF($C$3:$C$13=$I24,E$3:E$13))))}
J25{=MIN(IF($A$3:$A$13=$G25,IF($B$3:$B$13=$H25,IF($C$3:$C$13=$I25,D$3:D$13))))}
K25{=MIN(IF($A$3:$A$13=$G25,IF($B$3:$B$13=$H25,IF($C$3:$C$13=$I25,E$3:E$13))))}
J26{=MIN(IF($A$3:$A$13=$G26,IF($B$3:$B$13=$H26,IF($C$3:$C$13=$I26,D$3:D$13))))}
K26{=MIN(IF($A$3:$A$13=$G26,IF($B$3:$B$13=$H26,IF($C$3:$C$13=$I26,E$3:E$13))))}
J27{=MIN(IF($A$3:$A$13=$G27,IF($B$3:$B$13=$H27,IF($C$3:$C$13=$I27,D$3:D$13))))}
K27{=MIN(IF($A$3:$A$13=$G27,IF($B$3:$B$13=$H27,IF($C$3:$C$13=$I27,E$3:E$13))))}

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0
@BillyRaySpivy
When using Excel jeanie, please use the ‘Analyse range (Forum)’ field near the top left to restrict the number of formulas generated. There is generally no need to display multiple formulas that are basically the same, it just fills up the board and makes your post and the thread hard to read/navigate.
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,334
Members
449,077
Latest member
Jocksteriom

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