Formula to find smallest number in a list

sobrien1234

Board Regular
Joined
May 10, 2016
Messages
175
Office Version
  1. 365
Platform
  1. Windows
I have a list of horses names in column G with their race times in column AD. There are multiple entries for the horses (i.e. they have up to 6 races and times. There are also multiple races. In column X I have managed to get the horse name listed just once with blanks for all the other entries. I want a formula that gives me their lowest time in column AB so it is in the same row as in column X.

Thanks in advance!!

Seamus
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Try to post a small sample (input) along with the desired output.
ee below

See below but there are hundreds of different horses names in G - I need something to copy down in AB to get the lowest number for Jack from column AD


<colgroup><col style="width:48pt" span="4" width="64"> </colgroup><tbody>
[TD="class: xl65, width: 64"]G[/TD]
[TD="class: xl65, width: 64"]X[/TD]
[TD="class: xl65, width: 64"]AB[/TD]
[TD="class: xl65, width: 64"]AD[/TD]

[TD="class: xl65"]Name[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]

[TD="class: xl65"]Jack[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"]3[/TD]

[TD="class: xl65"]Jack[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"]4[/TD]

[TD="class: xl65"]Jack[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"]7[/TD]

[TD="class: xl65"]Jack[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"]8[/TD]

[TD="class: xl65"]Jack[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"]1[/TD]

[TD="class: xl65"]Jack[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"]8[/TD]

[TD="class: xl65"]Jack[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"]9[/TD]

[TD="class: xl65"]Jack[/TD]
[TD="class: xl65"]Jack[/TD]
[TD="class: xl65"]1[/TD]
[TD="class: xl65"]20[/TD]

[TD="class: xl65"]Jack[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"]16[/TD]

[TD="class: xl65"]Jack[/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"] [/TD]
[TD="class: xl65"]14[/TD]

</tbody>
 
Upvote 0
What is X?

What is that 1 in AB?

What is the expected result? If it's 1, why is this posted in the row in X with Jack?
 
Upvote 0
All the letters at the top are the columns. The 1 in AB is hopefully the result of the formula I can drag down the entire column for all horses. It will search all numbers in row AD corresponding to Jack in column G and then put the result in column X in the same row that Jack is isolated in column X.

I know it's confusing!
 
Upvote 0
If MINIFS is available on your system...

In AB2 just enter and copy down:

=IF($X2="","",MINIFS($AD$2:$AD$11,$G$2:$G$11,$X2))

Otherwise, in AB2 control+shift+enter, not just enter, and copy down:

=IF($X2="","",MIN(IF($G$2:$G$11=$X2,$AD$2:$AD$11)))
 
Upvote 0
If MINIFS is available on your system...

In AB2 just enter and copy down:

=IF($X2="","",MINIFS($AD$2:$AD$11,$G$2:$G$11,$X2))

Otherwise, in AB2 control+shift+enter, not just enter, and copy down:

=IF($X2="","",MIN(IF($G$2:$G$11=$X2,$AD$2:$AD$11)))

This doesn't appear to work - note there are about 2000 rows and over 100 different horses - also some horse may have 5 entries, some 10, some 3 (i.e. all different). Currently it's just giving me the lowest number in row AD not the lowest number corresponding to each horses name.
 
Upvote 0
This doesn't appear to work - note there are about 2000 rows and over 100 different horses - also some horse may have 5 entries, some 10, some 3 (i.e. all different). Currently it's just giving me the lowest number in row AD not the lowest number corresponding to each horses name.


Sorry it is working!! Got the columns wrong - thanks a million!!1
 
Upvote 0
This doesn't appear to work - note there are about 2000 rows and over 100 different horses - also some horse may have 5 entries, some 10, some 3 (i.e. all different). Currently it's just giving me the lowest number in row AD not the lowest number corresponding to each horses name.

Did you test it at all? If you did, which formula have you picked out?
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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