+ Reply to Thread
Results 1 to 5 of 5

Making the small function only look for positive numbers

  1. #1
    Forum Contributor
    Join Date
    02-20-2017
    Location
    Indiana
    MS-Off Ver
    2016
    Posts
    101

    Making the small function only look for positive numbers

    I'm making an array formula that looks for the lowest positive number in a column, then index matches the description associated with the value.

    =INDEX(Sheet5!B:B,MATCH(SMALL(Sheet5!E:E,ROW(1:1)),Sheet5!E:E,0),1)

    The formula is pretty much done, I just need the K value in the small formula to look for the smallest positive value. Right now it's returning lowest value, which is negative.

    Thanks

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Making the small function only look for positive numbers

    =INDEX(Sheet5!B:B,MATCH(SMALL(if(Sheet5!E:E>0,Sheet5!E:E),ROW(1:1)),Sheet5!E:E,0),1)
    as array formula
    PS the whole column as an argument is not good idea

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: Making the small function only look for positive numbers

    Have you tried this?

    =INDEX(Sheet5!B:B,MATCH(-SMALL(Sheet5!E:E,ROW(1:1)),Sheet5!E:E,0),1)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Making the small function only look for positive numbers

    Hi,

    One way would the the similar formula but as an array formula entered with Ctrl SHift Enter

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Contributor
    Join Date
    02-20-2017
    Location
    Indiana
    MS-Off Ver
    2016
    Posts
    101

    Re: Making the small function only look for positive numbers

    The if formulas win this round.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Making VBA calculate sum of specific positive numbers in a range
    By cartman.333 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-23-2016, 06:25 PM
  2. Convert negative numbers to positive numbers using Excel "Find and Replace" Function
    By FoodieJoan In LA in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-05-2015, 09:40 PM
  3. IF SMALL function to ignore a date within a rage of other numbers
    By jamiegfinch in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-18-2014, 05:37 PM
  4. [SOLVED] Function for set of numbers being all positive or negative
    By Brennen81 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-12-2014, 08:56 AM
  5. Replies: 12
    Last Post: 04-24-2011, 05:45 PM
  6. adding positive and negative numbers all as positive
    By tomvh444 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-18-2009, 04:08 PM
  7. [SOLVED] Erf (the error function) for both negative and positive numbers
    By Kara in forum Excel General
    Replies: 0
    Last Post: 02-06-2005, 10:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1