Consulting

Results 1 to 4 of 4

Thread: Ignoring item in unique list formula?

  1. #1
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location

    Ignoring item in unique list formula?

    Hi all, i use this array formula for finding unique items in a list, however there is one item "No Data" that i want to ignore can anyone give a fix for it?

    {=IF(ISERR(INDEX(DataResult,SMALL(IF(MATCH(DataResult,DataResult,0)=ROW(IND IRECT("1:"&COUNTA(DataResult))),MATCH(DataResult,DataResult,0),""),ROW()-ROW(DataResult)+1))),"",INDEX(DataResult,SMALL(IF(MATCH(DataResult,DataResu lt,0)=ROW(INDIRECT("1:"&COUNTA(DataResult))),MATCH(DataResult,DataResult,0) ,""),ROW()-ROW(DataResult)+1)))}
    Regards,
    Simon
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    =IF(ISERR(INDEX(DataResult,SMALL(IF((MATCH(DataResult,DataResult,0)=ROW(IND IRECT("1:"&COUNTA(DataResult))))*(DataResult<>"No Data"),MATCH(DataResult,DataResult,0),""),ROW()-ROW(DataResult)+1))),"",
    INDEX(DataResult,SMALL(IF((MATCH(DataResult,DataResult,0)=ROW(INDIRECT("1:" &COUNTA(DataResult))))*(DataResult<>"No Data"),MATCH(DataResult,DataResult,0),""),ROW()-ROW(DataResult)+1)))

  3. #3
    Moderator VBAX Guru Simon Lloyd's Avatar
    Joined
    Sep 2005
    Location
    UK
    Posts
    3,003
    Location
    Bob as ever i'm indebted to you!, i did try this
    (DataResult<>"No Data")
    and
    (DataResult="No Data")
    but didn't use any operators like "*" i still havent grasped the use of that yet.

    BTW did you get my e-mail? what do you think...interested?

    Regards,
    Simon
    Regards,
    Simon
    Please read this before cross posting!
    In the unlikely event you didn't get your answer here try Microsoft Office Discussion @ The Code Cage
    If I have seen further it is by standing on the shoulders of giants.
    Isaac Newton, Letter to Robert Hooke, February 5, 1675 English mathematician & physicist (1642 - 1727)

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    It's an AND operator in this context Simon.

    I'll reply to you on the email today.

Posting Permissions

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