+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : vlookup

  1. #1
    Registered User
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    40

    vlookup

    Hi
    I have problem, anyone can help give me a code for this.

    i need to lookup all cell data in column A.[lookup value is in all colum a], table array is in worksheet 2[column A,B]output value must be the "value in colum B"

    if a cell in colum A is blank then it will automatically gives a value "TBD"

    appreciate your help.

    Thank you.

  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,463

    Re: [b]vlook up[/b]

    =IF(A2="","TBD",IFERROR(VLOOKUP(A2, somewhere, a column, FALSE),"Not Found"))


    Regards, TMS
    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


  3. #3
    Registered User
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: [b]vlook up[/b]

    Hi Sir,

    hope this help.for clarifications.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    10-28-2011
    Location
    Delhi
    MS-Off Ver
    Excel 2007
    Posts
    101

    Re: vlookup

    See attachment
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: vlookup

    Hi sushil10s

    this is a great help, but how can i code this to macro.
    i need all data column A(infinity/A:A) [sheet-lookup] to be look up in column A&B(infinity/A:B) in [sheet-table array].

    thanks.

  6. #6
    Registered User
    Join Date
    02-04-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    40

    Re: vlookup

    i have code here that lookup Sheet1 col.A[no specific range], the lookup matrix is in sheet2 col A:B [with specific range].

    heres the code


    Please Login or Register  to view this content.
    but my problem is how can i run this automatically and stop to where colA sheet1 has no value already.?

    *//blankcell must also equal to "blank"
    kindly see attachment.


    Thanks
    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