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

#### awagdarikar

##### Board Regular
Greetings,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
<o> </o>
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></o>
<o> </o>
Cell A1: 176.12 Cell B1: -26.12 Cell C1:3.88 Cell D1: 363.88<o></o>
<o> </o>
Obvious answer is Cell C1: 3.88 I have tried hard but I am not able to set a formula for this issue.<o></o>
<o> </o>
Thank you,<o></o>
<o> </o>
Aniruddha<o></o>

### 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
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
Confirm this with Ctrl-Shift-Enter, not just Enter!
Code:
``=MIN(IF(A1:D1>0,A1:D1))``

HTH.

#### awagdarikar

##### Board Regular
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.

Aniruddha

#### awagdarikar

##### Board Regular

Thanks defan,

but this gives #Value! error,

Thanks,
Aniruddha

#### dafan

##### Well-known Member
As I said, type in the formula, then confirm with Control+Shift+Enter, NOT just Enter.

#### awagdarikar

##### Board Regular

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

#### awagdarikar

##### Board Regular
Confirm this with Ctrl-Shift-Enter, not just Enter!
Code:
``=MIN(IF(A1:D1>0,A1:D1))``

HTH.

Yes defan,

It works after the array thing.

Thanks again,
Aniruddha

#### dafan

##### Well-known Member
No worries, learned something new today and that's what counts

Replies
4
Views
311
Replies
7
Views
432
Replies
5
Views
354
Replies
5
Views
462
Replies
6
Views
146

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.

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.

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