Consulting

Results 1 to 9 of 9

Thread: Solved: Advanced Filter with empty cells

  1. #1
    VBAX Contributor
    Joined
    Aug 2006
    Posts
    120
    Location

    Solved: Advanced Filter with empty cells

    Hi,

    This is not a VBA post, but I hope someone can help me.

    I want to filter all cells by an "empty" criteria. I have been trying in the cells, ="=""", ="""", etc. but nothing works, I have attached a workbook and my result should be $450. The data base has multiple lines and in the only one that has TYPE = "" DBSUM should add the value under VALUE. Thanks

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    =SUMPRODUCT(--(A2:A10=""),--(B2:B10="Davolio"),C2:C10)
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Contributor
    Joined
    Aug 2006
    Posts
    120
    Location

    Advanced Filter

    Thanks, Im actually using it (the sumproduct function but it actually makes the calculation really slow) but what Im really trying to do is an advanced filter, the dbsum was only to skip all the procedure to execute the filter by cheking the value of the line i should get. Thanks

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    How about using * in E3 and then

    =SUMIF(B:B,F3,C:C)-(DSUM(A2:C10,C2,E2:G3))
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    VBAX Contributor
    Joined
    Aug 2006
    Posts
    120
    Location

    Advanced Filter

    I just created a button to show you what Im trying to do, I want to extract the registries that have nothing under a certain title ( type in this case )

  6. #6
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    A different tack
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  7. #7
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    Put this in the criteria for Type '<>?* and the DSUM returns $450.00

    the ' is to make Excel read it as text

    <>?* is wildcard speak for "not (any character followed by anything)" i.e. "empty cell"

  8. #8
    VBAX Contributor
    Joined
    Aug 2006
    Posts
    120
    Location
    Thanks, <>?* is the kinda' trick i was looking for, works with the advanced filter also. Is there anywhere i can find tips like this?

  9. #9
    Mac Moderator VBAX Guru mikerickson's Avatar
    Joined
    May 2007
    Location
    Davis CA
    Posts
    2,778
    Quote Originally Posted by makako
    I used the '<>?* on columns that have text only but when I use it on columns with values (money) it doesnt work. I have also tried "<>0", "=0", etc. My problem is I have a value that should be paid and in the next column the paid value, I want to filter the ones that have not paid. Any ideas? thanks
    I'm answering your PM in the forum so future searchers can find the response.

    Filtering a column of numbers with the criteria >0 showed only the positive numbers for me, hiding the blanks, text and negative number entries.

    For a more complicated situation, you might try using the a custom formula criteria.
    Eg. if want to show only those rows where the column B entry is a number, but hide rows where that row holds text or a number, use a criteria range with a blank for the header and the formula =ISNUMBER(B2) for the criteria.

    Attach a workbook if needed.

Posting Permissions

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