Results 1 to 8 of 8

Thread: Excel 2010 - Vlookup question

  1. #1

    Excel 2010 - Vlookup question



    Register for a FREE account, and/
    or Log in to avoid these ads!

    I have created a table as follow:

    Cost Center Title Cost Center Code ........................................

    xxxxxxxxxxxxxxxxx 12345

    I cannot get the value of the Cost center Title based on the cost center Code because the expected data is in column that is prior than the researched code. Why would Vlookup refuse to have a negative column number? or is there any other formula that I could use to get the title found at the left hand side of the code? When I change the position of the column of the cost center to be placed prior the Title then vlookup would work.

    Regards,

    Chuck

  2. #2
    Super Moderator Pecoflyer's Avatar
    Join Date
    Oct 2011
    Location
    Brussels Belgium
    Posts
    1,463
    Articles
    0
    Excel Version
    2010 on Xubuntu
    Try an INDEX/MATCH combination instead of VLOOKUP
    A left VLOOKUP is doable but we need to see the layout first ( in a sheet not pasted or a pic)

  3. #3

    Excel 2010 - Vlookup question

    Pecoflyer,

    Thank you for replying. I was wondering how to attach a workbook in your web site. I could not find the icon to enclose my workbook. Would be able to point me to the right direction.

    Regards,

    Note: I hope that the file has been uploaded. Yes I checked and it worked.


    Chuck
    Attached Files Attached Files
    Last edited by chamdan; 2013-12-07 at 03:24 PM. Reason: For attaching a workbook

  4. #4
    Super Moderator Pecoflyer's Avatar
    Join Date
    Oct 2011
    Location
    Brussels Belgium
    Posts
    1,463
    Articles
    0
    Excel Version
    2010 on Xubuntu
    Perhaps
    Code:
     =VLOOKUP($E$4,CHOOSE({1,2},Table1[CC Nbr],Table1[CC Title]),2,0)
    or
    Code:
    =INDEX(Table1[CC Title],MATCH('141000'!$E$4,Table1[CC Nbr],0))

  5. #5

    Solved - Excel 2010 - Vlookup question

    Pecoflyer,

    Excellent works fine! 2 Thumb Up!!!!!

    Cheers!

    Chuck

  6. #6
    Pecoflyer,

    Can you please explain how the VLOOKUP using choose works? Choose{1,2}

    Thanks

  7. #7
    Super Moderator Pecoflyer's Avatar
    Join Date
    Oct 2011
    Location
    Brussels Belgium
    Posts
    1,463
    Articles
    0
    Excel Version
    2010 on Xubuntu
    You can find a nice explanation here

  8. #8

    Solved - Excel 2010 - Vlookup question

    Quote Originally Posted by Pecoflyer View Post
    You can find a nice explanation here
    Thanks for the link Pecoflyer. Excellent!

    Cheers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •