+ Reply to Thread
Results 1 to 3 of 3

criteria formula will not return data with blank cells

  1. #1
    Registered User
    Join Date
    07-14-2012
    Location
    Walkerton, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    29

    criteria formula will not return data with blank cells

    I've created a advanced filter with a criteria range. My problem is, the formula evaluates if a given condition is met. If the condition is empty (blank), I want all the any all data retrieved. But it seems the blank condition returns a 0. I thought I could overcome this by stating if the condition is blank, return all using "<>". This isnt working for me either. I tried to return "", this dosen't work either. I also tried "*". No work

    Here's the criteria formula I'm using.

    =IF(Query!D12="","<>",INDEX(trailerdata,MATCH(TEXT(Query!D12,0),Lookup!B1:B99,0),1))

    The data in this column is numeric. Don't bother with the false condition as this is working properly...it's only the true condition that's an issue.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: criteria formula will not return data with blank cells

    seems a strange criteria,normally there is no need for IF at all just something that returns true/ false
    like =OR(D13="",D13>2) as i have no idea what the rest of that function does use true or false
    =IF(Query!D12="",true,INDEX(trailerdata,MATCH(TEXT(Query!D12,0),Lookup!B1:B99,0),1))
    Last edited by martindwilson; 02-19-2013 at 12:09 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-14-2012
    Location
    Walkerton, Ontario
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: criteria formula will not return data with blank cells

    I've attached a file so you can understand what I'm trying to accomplish.
    Attached Files Attached Files

+ 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