Find Item Code Then Min value in same row

crzytimes

New Member
Joined
Oct 28, 2016
Messages
22
Office Version
  1. 365
Platform
  1. Windows
Hi :) I have a database that I export every week from SAP. I'm trying to set up a vlookup or index match with a MIN function to return the minimum value in a row, but am really struggling for some reason. Can I get a bit of help? Once I get assistance with finding the Min value, I'm pretty sure I'll be able to research how to find the Header Name the Min value is located under.

Thanks!


Question.JPG
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
How about
+Fluff New.xlsm
ABCDEFG
1Wk 27Wk 28Wk 29Wk 30Wk 31Wk 32
2Item A100554875247
3Item B931573548523
4Item C303354114
5
6
7
8Min
9Item A4
10Item B15
11Item C1
12
Data
Cell Formulas
RangeFormula
B9:B11B9=AGGREGATE(15,6,$B$2:$G$4/($A$2:$A$4=A9),1)


Also please update your account details to show what version of Excel you are using, as this affects which functions you have got. Thanks
 
Upvote 0
How about
+Fluff New.xlsm
ABCDEFG
1Wk 27Wk 28Wk 29Wk 30Wk 31Wk 32
2Item A100554875247
3Item B931573548523
4Item C303354114
5
6
7
8Min
9Item A4
10Item B15
11Item C1
12
Data
Cell Formulas
RangeFormula
B9:B11B9=AGGREGATE(15,6,$B$2:$G$4/($A$2:$A$4=A9),1)


Also please update your account details to show what version of Excel you are using, as this affects which functions you have got. Thanks

Wow :) I've never used the Aggregate formula before. I'm about to go into a rabbit hole of youtube videos :) Thanks! I also updated my profile per your request. Didn't know about that feature!
 
Upvote 0
Using Fluff's layout, this formula also works:

B9: =MIN(INDEX($B$2:$G$4,MATCH(A9,$A$2:$A$4,0),0))

This works as well :) I was trying to put my min function inside my Index / Match. Thank you :)
 
Upvote 0
To get the column header you can use either the formula in col C or D if you have the new functions
+Fluff New.xlsm
ABCDEFG
1Wk 27Wk 28Wk 29Wk 30Wk 31Wk 32
2Item A10055487447
3Item B931573548523
4Item C303354114
5
6
7
8MinIndexFilter
9Item A4Wk 29Wk 29Wk 31
10Item B15Wk 28Wk 28
11Item C1Wk 31Wk 31
Data
Cell Formulas
RangeFormula
B9:B11B9=AGGREGATE(15,6,$B$2:$G$4/($A$2:$A$4=A9),1)
C9:C11C9=INDEX($B$1:$G$1,MATCH(B9,INDEX($B$2:$G$4,MATCH(A9,$A$2:$A$4,0),),0))
D9:E9,D10:D11D9=FILTER($B$1:$G$1,FILTER($B$2:$G$4,$A$2:$A$4=A9)=B9)
Dynamic array formulas.
 
Upvote 0
To get the column header you can use either the formula in col C or D if you have the new functions
+Fluff New.xlsm
ABCDEFG
1Wk 27Wk 28Wk 29Wk 30Wk 31Wk 32
2Item A10055487447
3Item B931573548523
4Item C303354114
5
6
7
8MinIndexFilter
9Item A4Wk 29Wk 29Wk 31
10Item B15Wk 28Wk 28
11Item C1Wk 31Wk 31
Data
Cell Formulas
RangeFormula
B9:B11B9=AGGREGATE(15,6,$B$2:$G$4/($A$2:$A$4=A9),1)
C9:C11C9=INDEX($B$1:$G$1,MATCH(B9,INDEX($B$2:$G$4,MATCH(A9,$A$2:$A$4,0),),0))
D9:E9,D10:D11D9=FILTER($B$1:$G$1,FILTER($B$2:$G$4,$A$2:$A$4=A9)=B9)
Dynamic array formulas.

Also - Fantastic :) I truly appreciate your time with my issue. I manage roughly 300 sku's of varying complexity. It normally takes me about 3-4 days each month to do my planning by looking at each individual sku to ensure proper coverage in all of my markets. If I can manipulate the export, I should be able to cut that 3-4 days down to an afternoon by highlighting my shortfalls. This is exciting!
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,409
Members
448,959
Latest member
camelliaCase

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