# 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

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

#### 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
7
Views
141
Replies
43
Views
637
Replies
11
Views
964

1,171,518
Messages
5,875,976
Members
433,162
Latest member
AULGC

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