Match value on another sheet and return the minimum

nuke_twidget

New Member
Joined
Apr 13, 2016
Messages
26
I have a few sheets I'm working with and I'm having a hard time adapting an index/match formula to meet my needs. On Sheet 1 is a table with a number of different numbers in the header with a number of other values in the rows below. On Sheet 2, there is a vertical row corresponding to the header values from the table on Sheet 1. I need a formula to return the minimum value from column with the matched value from Sheet 1, ignoring cells with blanks so they don't return zeroes. After that, I will need another formula to match that minimum value to a product in yet another column. Below is an example with the correct values in Sheet 2. Thanks in advance for any and all help.

Sheet 1:

Product12245248
Apple2443
Orange2656
Pear19
Grapes31424

<tbody>
</tbody>

Sheet 2:

121Pear
242Apple
4824Grapes
524Apple

<tbody>
</tbody>
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
B8: =MIN(INDEX(B$2:E$5,,MATCH(A8,B$1:E$1,)))
C8: =INDEX(A$2:A$5,MATCH(B8,INDEX(B$2:E$5,,MATCH(A8,B$1:E$1,)),))


Excel 2010
ABCDE
1Product12245248
2Apple2443
3Orange2656
4Pear19
5Grapes31424
6
7
8121Pear
9242Apple
104824Grapes
11524Apple
Sheet1
 
Last edited:
Upvote 0
Sheet1

Row\Col
A​
B​
C​
D​
E​
1​
Product
12
24
52
48
2​
Apple
2
4
43
3​
Orange
2
6
56
4​
Pear
1
2
9
5​
Grapes
3
14
24

Sheet2

Row\Col
A​
B​
C​
D​
E​
1​
2​
12
1​
Pear
3​
24
2​
ApplePear
4​
48
24​
Grapes
5​
52
4​
Apple
6​

In B2 enter and copy down:

=MIN(INDEX(Sheet1!$B$2:$E$5,0,MATCH($A2,Sheet1!$B$1:$E$1,0)))

In C2 control+shift+enter, not just enter, copy across, and down:

=IFERROR(INDEX(Sheet1!$A$2:$A$5,SMALL(IF(INDEX(Sheet1!$B$2:$E$5,0,MATCH($A2,Sheet1!$B$1:$E$1,0))=$B2,ROW(Sheet1!$A$2:$A$5)-ROW(Sheet1!$A$2)+1),COLUMNS($C2:C2))),"")
 
Upvote 0

Forum statistics

Threads
1,215,348
Messages
6,124,425
Members
449,157
Latest member
mytux

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