+ Reply to Thread
Results 1 to 2 of 2

Need help fixing SMALL Function that gives error with a blank data field

Hybrid View

  1. #1
    Registered User
    Join Date
    01-31-2013
    Location
    Rhode Island
    MS-Off Ver
    Excel 2007
    Posts
    27

    Need help fixing SMALL Function that gives error with a blank data field

    I have a worksheet that is looking at 6 columns with numbers in them and delivering the lowest number, then second lowest number then adding the two numbers. It works great until I have a blank cell. Is there a way to incorporate and if statement with the SMALL Function?

    What will work with the SMALL function to get rid of the error message?

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Need help fixing SMALL Function that gives error with a blank data field

    You could try this:

    =IFERROR(SMALL(A1:F1,1),0)+IFERROR(SMALL(A1:F1,2),0)

    Assuming A1:F1 is the range you are trying to add the lowest 2 values from.

    If there are at least 2 numbers in the range A1:F1, it will add the smallest 2 numbers. If there is only one number in the range, it will add that number + 0. And if there are no numbers in the range, the result will be 0.

    - Moo

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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