Formula for SMALLEST VALUE not working

hrayani

Well-known Member
Joined
Jul 23, 2010
Messages
1,516
Office Version
  1. 2016
Platform
  1. Windows
Hello friends,


I am using this formula to
=SMALL(IF(orders_ref=$C$1,orders_po,""),1)

to get the smallest value in the range. Like 1st to 5th Smallest value.

Here is a sample data

[TABLE="width: 171"]
<tbody>[TR]
[TD]95822[/TD]
[TD]123[/TD]
[/TR]
[TR]
[TD]95825[/TD]
[TD]123[/TD]
[/TR]
[TR]
[TD]95828[/TD]
[TD]123[/TD]
[/TR]
[TR]
[TD]95830[/TD]
[TD]123[/TD]
[/TR]
[TR]
[TD]95831[/TD]
[TD]123[/TD]
[/TR]
[TR]
[TD]40041541[/TD]
[TD]127[/TD]
[/TR]
[TR]
[TD]40043227[/TD]
[TD]127[/TD]
[/TR]
[TR]
[TD]40042045[/TD]
[TD]129[/TD]
[/TR]
[TR]
[TD]12943122 A[/TD]
[TD]130[/TD]
[/TR]
[TR]
[TD]12943122 B[/TD]
[TD]130
[/TD]
[/TR]
</tbody>[/TABLE]

I am getting the result for Ref # 123 or 127... But the formula is not giving the result for
Ref # 130..... May be coz the Numbers in Column A against Ref # 130 contains some
alphabets with them...

Pls if anyone can let me know how to solve this issue???

Regards,

Humayun
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Thanks for the reply Aladin

For REF # 130 i am getting #NUM!
 
Upvote 0
Are you wanting a list of 5 bottom (smallest) values (numbers) and corresponding items?


Yes Exactly....

Like i will enter a Ref # (130 in this case) in Cell # C1 and i would want the formula to show all the ( Max five Numbers ) from Column A Starting from the lowest in D1 to D5....

Let me know if its still not clear
 
Last edited:
Upvote 0
Let's set C1 to 130.

What will be the output, given the sample you posted?

From D1 To D5 we need to enter a formula... All The cells from D1:D5 will look into Cell C1 and return values from Column A
Starting from the lowest.
 
Upvote 0
Will enter 130 in C1

Answer should be (12943122 A) in D1 & (12943122 B) in D2.... Rest D3:D5 should show blank as there are only two values against Ref # 130

 
Last edited:
Upvote 0
Try =IFERROR(INDEX($A$1:$A$10,SMALL(IF(C$1=$B$1:$B$10,ROW($A$1:$A$10),""),ROW())),"") in D1 entered as an array formula and then copied down till D5
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,271
Members
452,628
Latest member
dd2

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