+ Reply to Thread
Results 1 to 3 of 3

When a cell is left blank the formula returns results

  1. #1
    Registered User
    Join Date
    10-30-2014
    Location
    Dublin
    MS-Off Ver
    2013
    Posts
    1

    When a cell is left blank the formula returns results

    Hi,

    I have created the following spreadsheet.
    MySheet.png

    The user inputs a list of dates in column I6 to I22 (highlighted in blue). The results are then displayed in columns L M N O P but as you can see when there is no data in column I it is returning results and I don't understand why?

    Formula

    =IFERROR(INDEX($B$7:$B$3000,SMALL(IF(($I$6>=$C$7:$C$3000)*($I$6<=$D$7:$D$3000)+($I$6=$E$7:$E$3000)+($I$6=$F$7:$F$3000),MATCH(ROW($B$7:$B$3000),ROW($B$7:$B$3000))),ROW(A1))),"" )

    A kick in the right direction would be greatly appreciated.
    Last edited by jendore; 11-13-2014 at 12:04 PM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: When a cell is left blank the formula returns results

    Empties cells for Excel means zero(0)!

    To test it type 0 in a cell(LETS SAY Q1). Then compare this cell with an emtty cell(let's say P1) . =q1=p1 Gives A TRUE as result.

    So try to add an if in front of your formula.

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

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: When a cell is left blank the formula returns results

    Hi.

    Your criteria for determining the returns effectively consists of an "OR" statement:

    IF(($I$6>=$C$7:$C$3000)*($I$6<=$D$7:$D$3000)+($I$6=$E$7:$E$3000)+($I$6=$F$7:$F$3000)

    which means that a row will be considered for return if any of the following three statements is true:

    1) The value in column C is <= the value in I6 AND the value in column D is >= the value in I6

    2) The value in column E is = the value in I6

    3) The value in column F is = the value in I6

    Since the value in I6 is currently blank, and there are also rows for which the column E (or F) entries are blank, there will be some rows which satisfy your conditions.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

+ 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. [SOLVED] When my formula encounters a blank cell it returns a 0, I need it to return a blank
    By stretch99 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-27-2014, 07:52 PM
  2. Replies: 11
    Last Post: 02-01-2013, 04:48 PM
  3. [SOLVED] Drop-down list connected to functions returns #N/A when left blank
    By m_buskirk in forum Excel General
    Replies: 3
    Last Post: 03-13-2012, 07:15 PM
  4. Replies: 12
    Last Post: 03-03-2012, 10:31 AM
  5. Find first cell with formula that returns blank
    By daveIrwin in forum Excel General
    Replies: 1
    Last Post: 02-04-2005, 12:56 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