# Using the MIN IF Function

#### aware073

##### Board Regular
Hi! I'm not an excel newbie but just learning all about the different functions that can make my job a lot easier.. In the spreadsheet I'm working on I know I need to use a MIN IF formula but I cant seem to get it to work. I have a list of Part Numbers in Column A, repeated multiple times according to how many different purchase prices there have been. Column D has those purchase prices listed. I need column E to be the lowest purchase price for each part number. Any suggestions?

My example:
A D E(Desired)
2000007 8.49 7.27
2000007 7.36 7.27
2000007 8.24 7.27
2000007 7.27 7.27
2000009 8.47 4.85
2000009 4.85 4.85
2000008 3.21 3.21

Last edited:

### Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

#### gaz_chops

##### Well-known Member
Welcome to the forum.

Try this entered as an array.
=MIN(IF(\$A\$1:\$A\$100=A1,\$D\$1:\$D\$100))

#### aware073

##### Board Regular
Thanks for the response. I tried that but I'm getting the lowest of rows 1-100 in every box

#### gaz_chops

##### Well-known Member
Because you didn't enter as an array. You must enter using Ctrl, Shift & Enter, if done correctly you'll see curly brackets either side in the formula bar.

#### aware073

##### Board Regular
Because you didn't enter as an array. You must enter using Ctrl, Shift & Enter, if done correctly you'll see curly brackets either side in the formula bar.

Ah that worked perfect. Thank you so so much!

You're welcome.

Replies
7
Views
592
Replies
2
Views
433
Replies
11
Views
963
Replies
3
Views
122
Replies
2
Views
221

1,171,504
Messages
5,875,898
Members
433,160
Latest member
Tmoff

### 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.

### Which adblocker are you using?

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

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