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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi, awagdarikar,
WELCOME to the BOARD!!!!!

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

kind regards,
Erik
 
Upvote 0
Confirm this with Ctrl-Shift-Enter, not just Enter!
Code:
=MIN(IF(A1:D1>0,A1:D1))

HTH.
 
Upvote 0
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
 
Upvote 0
As I said, type in the formula, then confirm with Control+Shift+Enter, NOT just Enter.
 
Upvote 0
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
 
Upvote 0

Forum statistics

Threads
1,213,534
Messages
6,114,185
Members
448,554
Latest member
Gleisner2

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