Results 1 to 10 of 10

Can I use LEFT function in VLOOKUP?

Threaded View

  1. #1
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    Can I use LEFT function in VLOOKUP?

    Hi,

    Due to privacy policy, I am only able to upload a tiny part of my spreadsheet but I hope it is enough for one of you clever people to help me. Basically, I need to return the name of the area code in the spreadsheet 'table'. I am trying to only look up the first 4 digits of column j because if I try to convert it in the document before using vlookup it doesn't seem to work because I am lookinp up a formula rather than an actual value in the cell.

    Does anyone know if it is possible to use this calculation? (cell A2 on the attached)

    =IF(ISERROR(VLOOKUP(LEFT(J2,4),'Area Codes'!A:B,2,FALSE)=TRUE),"n/a",VLOOKUP(LEFT(J2,4),'Area Codes'!A:B,2,FALSE))

    Thanks in advance and thank god for this forum.
    Attached Files Attached Files
    Last edited by greyscale; 01-19-2012 at 08:57 PM.

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