+ Reply to Thread
Results 1 to 11 of 11

Formula is giving me data input of #NUM when a blank cell is in the range

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

    Formula is giving me data input of #NUM when a blank cell is in the range

    I have 6 columns, each has a number in them. I am looking to put the lowest number in column 7, the next lowest number in column 8 and the total of 7 & 8 in column 9. The problem I am having is when the data that is input into this spreadsheet is a blank field it gives me the error #num and the total in column 9 looks like #####.

    This is the formula I have in column 7: =SMALL(F3:G3,1)
    This is the formula I have in column 8: =SMALL(F3:G3,2)

    The whole worksheet works perfectly until on of the 6 columns has a blank field.

    What can I do to fix this?

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Formula is giving me data input of #NUM when a blank cell is in the range

    See

    http://www.techonthenet.com/excel/formulas/small.php
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,466

    Re: Formula is giving me data input of #NUM when a blank cell is in the range

    A blank cell in the (two cell) range F3:G3?

    What is the formula in column 9?

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


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

    Re: Formula is giving me data input of #NUM when a blank cell is in the range

    The link you gave me tells me why the formula is returning that error. My questions is how can I fix my worksheet so that the rows that have blanks will return the lowest number and second lowest number?

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

    Re: Formula is giving me data input of #NUM when a blank cell is in the range

    The Range is for 6 data values F3:k3.

    the formula for column 9 is: =SUM(L3:M3)

    How can I fix this so it won't give me the error when there is a blank cell?

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

    Re: Formula is giving me data input of #NUM when a blank cell is in the range

    The Range is for 6 data values F3:k3.

    the formula for column 9 is: =SUM(L3:M3)

    How can I fix this so it won't give me the error when there is a blank cell?

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,466

    Re: Formula is giving me data input of #NUM when a blank cell is in the range

    The Range is for 6 data values F3:k3
    Not according to your original post:

    This is the formula I have in column 7: =SMALL(F3:G3,1)
    This is the formula I have in column 8: =SMALL(F3:G3,2)
    And this formula in column 9 ...

    the formula for column 9 is: =SUM(L3:M3)
    seems to bear no relationship to anything.


    I think it would help a lot if you post a sample workbook with some typical data and the formulae you want to use.

    Alternatively, you can just use IFERROR to return a zero value rather than #NUM: =IFERROR(SMALL(F3:G3,2),0)


    Regards, TMS

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

    Re: Formula is giving me data input of #NUM when a blank cell is in the range

    =SMALL(IF(F3:K3<>0,F3:K3),$A$4) (CRTL-SHIFT-ENTER)

    I fixed the issue of the smallest number going into the column and not counting the zero. This is the formula that I am using for the second lowest number. It works fine until there is only 1 number that is not a zero. then I get an error. I only have data in two columns but in the future I will be adding the other four columns, until then I would like to see the two lowest numbers in each column or if there is only one column with a data value to leave the second lowest blank. Is there a way to do this?

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,466

    Re: Formula is giving me data input of #NUM when a blank cell is in the range

    I'm pleased that you have overcome the blank entry issue, at least, where you have two non-blank cells.

    But, I'm not entirely sure you're following the information being provided.

    I explained in my last post how to overcome an error using IFERROR.


    Regards, TMS

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

    Re: Formula is giving me data input of #NUM when a blank cell is in the range

    I tried the IFERROR but I could not get it to work, Is there a way to incorporate the IFERROR function with the Small funciton that I am using that is working to insure I will n ot get an error message but still get valid data when available?

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,466

    Re: Formula is giving me data input of #NUM when a blank cell is in the range

    =iferror(small(if(f3:k3<>0,f3:k3),$a$4),0) (crtl-shift-enter)

+ 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