Which function suits this scenerio best?

Bpfrankl

New Member
Joined
Dec 15, 2012
Messages
7
Hi I am confused as to which function would be best suited for the following situation. I have tried using vlookup, indirect, index, match and max with no success. I havent used excel since college in 2005. I have a feeling this is a fairly simple funtion but I have exhausted my brain digging through step by step books and watching you tube videos. I feel that if I had a good starting point with some tips that I could disect myself I would have a much better understanding of what is required and where.
My immediate goal is have row B3:B13 automatically display the coresponding row categories for the greatest values column. I can use the max function just fine to locate the greatest number.... I dont know how to properly forward the numeric value to read as the text.
Thanks,
Brad

Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
Week Totals
1
damaged blue seal on rack
0
1
2
0
0
0
4
7
2
damaged worm
0
1
1
0
0
10
0
12
3
Dropped Gear or Component
1
2
2
4
1
1
0
11
4
High Pressure Smashed Poppet
5
9
4
6
1
0
0
25
5
incorrect assembly
1
1
1
0
0
0
0
3
6
misc unknown
0
0
2
0
2
0
6
10
7
missing sector plug
1
1
6
0
1
4
4
17
8
missing shipping components
1
1
1
1
0
0
0
4
9
preload set incorrectly
1
0
1
0
0
0
0
2
10
Stranded gear
0
0
2
0
0
0
7
9
11
Stripped Threads
1
1
1
5
0
4
0
12
12
Total Avoidable Rejects/Day:
11
17
23
16
5
19
21
112
13
Main Issue:
High Pressure Smashed Poppets
Dropped Gear or Component
Missing Sector Plug
Stripped Threads
misc unknown
damaged worm
stripped threads
High-pressure/Smashed Poppet

<colgroup><col style="width: 60pt; margin-left: 40px; mso-width-source: userset; mso-width-alt: 2925;" width="80"> <col style="width: 132pt; margin-left: 40px; mso-width-source: userset; mso-width-alt: 6436;" width="176"> <col style="width: 153pt; margin-left: 40px; mso-width-source: userset; mso-width-alt: 7460;" width="204"> <col style="width: 128pt; margin-left: 40px; mso-width-source: userset; mso-width-alt: 6253;" width="171"> <col style="width: 95pt; margin-left: 40px; mso-width-source: userset; mso-width-alt: 4608;" width="126"> <col style="width: 80pt; margin-left: 40px; mso-width-source: userset; mso-width-alt: 3876;" width="106"> <col style="width: 68pt; margin-left: 40px; mso-width-source: userset; mso-width-alt: 3291;" width="90"> <col style="width: 72pt; margin-left: 40px; mso-width-source: userset; mso-width-alt: 3510;" width="96"> <col style="width: 76pt; margin-left: 40px; mso-width-source: userset; mso-width-alt: 3693;" width="101"> <col style="width: 143pt; margin-left: 40px; mso-width-source: userset; mso-width-alt: 6985;" width="191"> <tbody>
</tbody>
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
My immediate goal is have row B3:B13 automatically display the coresponding row categories for the greatest values column.

I meant "range c13:j13" ,not "row B3:B13" oops..
 
Upvote 0
A formula like =INDEX($B1:$B$12, MATCH(MAX(C1:C12), C1:C12, 0), 1) , dragged right, should do what you want.
 
Upvote 0
Welcome to the MrExcel board!

What do you want to happen if 2 (or more) items have the equal maximum number?

Note that in that circumstance, Mike's solution would return the first one in the column.

(Also note that for the layout shown I think you would need to change all the "12"s in Mike's formula to "11"s as it appears row 12 is a total row.)
 
Upvote 0
Hey thanks guys, your help is greatly appreciated. Thanks pete for the warm welcome. I have been neglecting my office programs for the past couple years. I am getting ready to go back to school so this is a good refreshment. :D

What do you want to happen if 2 (or more) items have the equal maximum number?

Well Pete that had crossed my mind as well... :/ Would it be possible to include a logical constraint that displays the multiple max names in that same cell separated with "\" or maybe "+". For Example: "Damaged Worm\Dropped Component"

My goal is to have a few charts that automatically display long and short term correlations that our quality engineers can use as tools to diagnose manufacturing issues.
Thanks,
Brad :D
 
Upvote 0
Sorry to double dip again, but I did some research and brain storming and I think I am closing in on the solution... lol....
Feel free to show me how far off I am actually. :P
=INDEX(SUMIF(V4:V14,"=MAX(V4:V14)",[U4:U14]),(($U4:$U$14,MATCH(MAX(V4:V14),V4:V14,0),1)

SIDE NOTE: These are my actual row\column values. Just offset the scale from the example above: Columns:V=B, Row:4=1.

(Also note that for the layout shown I think you would need to change all the "12"s in Mike's formula to "11"s as it appears row 12 is a total row.)
Pete you are correct. :D
 
Upvote 0
Would it be possible to include a logical constraint that displays the multiple max names in that same cell separated with "\" or maybe "+". For Example: "Damaged Worm\Dropped Component"
Brad

I think asking a formula solution in a single cell producing that would be extremely difficult. See if you can make any use of the formula suggestions below. If it really needs to be in a single cell, then you could look at concatenating the values in each column but you would have to allow for the fact that all 11 values might occur an equal number of times in a column. Alternatively, a macro solution may be better. Post back if you want to go down that path.

Formulas in V15 and V16 copied across.
Formula in V17 is an array formula so should be entered without the {} but confirmed with Ctrl+Shift+Enter, not just Enter. If confirmed correctly, Excel will insert the {}.
The formula can then be copied across and down as far as you might ever need.

Excel Workbook
UVWXYZAAABAC
1MondayTuesdayWednesdayThursdayFridaySaturdaySundayWeek Totals
2damaged blue seal on rack01400049
3damaged worm0110010012
4Dropped Gear or Component12201107
5High Pressure Smashed Poppet594010019
6incorrect assembly11100003
7misc unknown004020612
8missing sector plug513014418
9missing shipping components11100003
10preload set incorrectly1010017019
11Stranded gear00200079
12Stripped Threads11100407
13Total Avoidable Rejects/Day:151724053621118
14
15Max Value5940217719
16Max Count213111112
17Main Issue(s):High Pressure Smashed PoppetHigh Pressure Smashed Poppetdamaged blue seal on rackmisc unknownpreload set incorrectlyStranded gearHigh Pressure Smashed Poppet
18missing sector plugHigh Pressure Smashed Poppetpreload set incorrectly
19misc unknown
20
Main Issues
 
Upvote 0
Thanks Pete you are a life saver. :D I ended up using your suggested formulas and concatenating the cells. Thanks again!
 
Upvote 0

Forum statistics

Threads
1,215,378
Messages
6,124,603
Members
449,174
Latest member
ExcelfromGermany

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