+ Reply to Thread
Results 1 to 2 of 2

VLOOKUP to display a blank cell for certain criteria

  1. #1
    Forum Contributor
    Join Date
    12-15-2005
    MS-Off Ver
    Office 2007
    Posts
    346

    VLOOKUP to display a blank cell for certain criteria

    I am using a VLOOKUP

    =IFERROR(VLOOKUP($C$1,Patrons!$A$1:$J$500,3,FALSE),"")

    What I would like to do is if Cell C1 has the word "All" it would cancel the lookup process and just display a blank cell.

    A name will selected in C1, but if the name selected is "All" the response will need to be blank.

    I appreciate any help.

    Thank you,
    Nick

  2. #2
    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,364

    Re: VLOOKUP to display a blank cell for certain criteria

    =IF($C$1="ALL","",IFERROR(VLOOKUP($C$1,Patrons!$A$1:$J$500,3,FALSE),""))


    Regards
    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


+ 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