+ Reply to Thread
Results 1 to 3 of 3

return a blank!!!

  1. #1
    Registered User
    Join Date
    01-13-2005
    Posts
    18

    return a blank!!!

    ok so my question was ansewred but now if it cant find the name i need it to return a blank cell instead. Here is what i have in the cell


    =VLOOKUP(B4,'SHEET 1'!B:C,2,FALSE)

    Thank you

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    =IF(ISNUMBER(VLOOKUP(B4,'SHEET 1'!B:C,2,FALSE)),VLOOKUP(B4,'SHEET 1'!B:C,2,FALSE),"")

    - Mangesh

  3. #3
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Hi,

    Try this: =LOOKUPV(C1,A1:B100,2,0,"")


    But first
    1. Press Alt+F11. Insert Module. Copy and Paste the below.

    Function LookupV(Lookup_Value, Table_Array As Range, Col_Index_Num,
    Range_value, Optional Error_Msg)
    LookupV = Application.VLookup(Lookup_Value, Table_Array, Col_Index_Num,
    Range_value)
    If IsError(LookupV) And Not IsMissing(Error_Msg) Then LookupV =
    Error_Msg
    End Function

    The LOOKUPV formula is Shorter and is Faster then VLOOKUP.
    Make sure the VBA code is only 4 rows!

    Regards,
    Ola

+ 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