Find smallest +Ve number from a range containing +Ve and -Ve values

awagdarikar

Board Regular
Joined
Jun 20, 2008
Messages
115
Greetings,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p></o:p>
<o:p> </o:p>
This is Aniruddha and I am a new member of this site. I need to find the smallest positive value from a range A1:D1 (containing both positive and negative values) as illustrated below.<o:p></o:p>
<o:p> </o:p>
Cell A1: 176.12 Cell B1: -26.12 Cell C1:3.88 Cell D1: 363.88<o:p></o:p>
<o:p> </o:p>
Obvious answer is Cell C1: 3.88 I have tried hard but I am not able to set a formula for this issue.<o:p></o:p>
<o:p> </o:p>
Thank you,<o:p></o:p>
<o:p> </o:p>
Aniruddha<o:p></o:p>
:confused:
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

erik.van.geit

MrExcel MVP
Joined
Feb 1, 2003
Messages
17,832
Hi, awagdarikar,
WELCOME to the BOARD!!!!!

This works for me
=SMALL(A1:D1,COUNTIF(A1:D1,"<0")+1)

kind regards,
Erik
 

dafan

Well-known Member
Joined
May 6, 2008
Messages
692
Confirm this with Ctrl-Shift-Enter, not just Enter!
Code:
=MIN(IF(A1:D1>0,A1:D1))

HTH.
 

awagdarikar

Board Regular
Joined
Jun 20, 2008
Messages
115
Hi erik.van.geit,

Thanks for prompt responce but I get 176.12 as answer when I should be getting 3.88 as the answer.

Please help,
Aniruddha
 

awagdarikar

Board Regular
Joined
Jun 20, 2008
Messages
115

ADVERTISEMENT

Thanks defan,

but this gives #Value! error,

Thanks,
Aniruddha
 

dafan

Well-known Member
Joined
May 6, 2008
Messages
692
As I said, type in the formula, then confirm with Control+Shift+Enter, NOT just Enter.
 

awagdarikar

Board Regular
Joined
Jun 20, 2008
Messages
115

ADVERTISEMENT

Hi Eric,
Thanks for the reply. i had applied it in a wrong way, now I corrected it.
Your formula works well & you are rocking,
Thanks again,
Aniruddha
 

dafan

Well-known Member
Joined
May 6, 2008
Messages
692
No worries, learned something new today and that's what counts ;)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,982
Messages
5,834,682
Members
430,310
Latest member
Excelorate3305

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
Top