+ Reply to Thread
Results 1 to 2 of 2

VLOOKUP problem

  1. #1
    Forum Contributor
    Join Date
    02-14-2004
    Posts
    131

    VLOOKUP problem

    In an excel file attached I have a problem with VLookUP. In a worksheet AJE Dec 06 in Column A there is a list of Account codes ie 01-0103. I'd like a VLookup or maybe Match might be better, I'm not sure, where in Column B the matching Account Code in Worksheet COA is found and returned on the same row and In Column C the coresponding Description is returned. I have a VLookup in those 2 columns to test but I'm getting the #na and incorrect account numbers.
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    The standard formulas for B2 and C2 would be

    =VLOOKUP(A2,COA!$A$2:$B$269,2,0)

    and

    =VLOOKUP(A2,COA!$A$2:$B$269,3,0)

    copied down the columns.....

    ....but these will return #N/A in all cases because your account codes don't match. If you want to match 01-0130 in A2 with 01-130 in your other worksheet you could try removing the additional zero from the codes or try

    =VLOOKUP(REPLACE(A2,4,1,""),COA!$A$2:$B$269,2,0)

+ 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