+ Reply to Thread
Results 1 to 10 of 10

Vlookup

  1. #1
    Registered User
    Join Date
    05-26-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    39

    Vlookup

    Hi,

    Am trying to do a vlookup Sheet1(MIS) A2 with Sheet2 (Working) C2:C5 and return value available in M,N,O,P,Q to Sheet 1 (MIS) at J,K,L,M,N. Since there are some #N/A available in sheet 2(Working) it is returning as #N/A in sheet 1(MIS) also. Please help in solving this issue.

    I have attached the sample data for reference.

    Warm regards,
    Vinoth
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Vlookup

    Your formula is all wrong

    =VLOOKUP(A8,Working!C2:C403,10,0)

    the value A8 is current pointing at an empty cell. This is the value you should be looking up. I assume this should be cell A2
    C2:C404 is the look up range, but this is a single column. Vlookup is designed to look up a table with multiple columns. The next value (10 in our forumula) tells the Vlookup which column to use in the table. You you are saying look in column 10, but you only have 1 column.

    Fix these problems and your issue will go away

  3. #3
    Registered User
    Join Date
    05-26-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    39

    Re: Vlookup

    Hi,

    Sorry i have corrected the formula, but now the returned value as "0", but there is a value as "SME" available in M4 which is not getting returned. Kindly help in fixing this, have attached sample data.

    Regards,
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Vlookup

    OK, good progress. Now you should do the following.

    1. Change your data on sheet "working" to a table. Click in the table and then select INSERT\TABLE. This will turn the table to an EXCEL TABLE. This has extra features that allows you to refer to the table rather than the range. When the table has new rows added, all your formulae will be updated automatically
    2. Go and change your formula in cell J2 to point to the table. Go into edit mode, select the part of the formula "Working!C2:Q403", then press F5, and select the table you added in step 1. From now on, the formula will update when ever you add extra cells to the 'working' table.


    Regarding your sample sheet, it has a lot of linked cells, so I can't check what is happening. Please save the data in the working table as values, then post again
    Regarding the lookup, your sheet p

  5. #5
    Registered User
    Join Date
    05-26-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    39

    Re: Vlookup

    Hi,

    I have attached the revised file with all the reference data provided from where the data for Sheet (working) is being linked.

    Please help in solving the issue, am not able to do change the sheet into table. Am not getting it can you please change in the attachment.

    Warm regards,
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Vlookup

    Your vlookup is working correctly now. Here is how to format as a table
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-26-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    39

    Re: Vlookup

    Hi,

    I have converted the sheet (MIS & Working) as Table, but still the am getting as 0 instead of SME. Can you please help me in solving this. Am using excel MS office professional edition 2003.

    I have attached the sample file.

    Warm regards,
    vinoth
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Vlookup

    The reason you are getting 0 is that 0 is the right answer based on your current formula. Your formula is looking up the value "ADSORBENT CARBONS (P) LTD." This value can be found in cell B2 on sheet working. The 10th column (as determined by the 10 in your formula) is column L. Therefore the returned value is what is in cell L2. To prove it, change the value in cell L2 and see what happens.

  9. #9
    Registered User
    Join Date
    05-26-2010
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    39

    Re: Vlookup

    Hi,

    Sorry i had made changes in the formula, actualy the value should be returned is matching A1 (MIS sheet) with C2 to C5 of (Working sheet). There would be three #N/A matching but formula should ignore that and should return value SME (as in M4 of working sheet).

    Please suggest a formula for the same. I have attached the corrected sheet,

    Warm regards,
    Vinoth
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor
    Join Date
    06-16-2006
    Location
    Sydney, Australia
    MS-Off Ver
    2013 64bit
    Posts
    1,394

    Re: Vlookup

    There is nothing wrong with your vlookup. it is correctly returning the value in cell M2 which is now #N/A. If you want it to return SME, then you need to change the formula in cell M2 so that it shows SME and not #N/A. I have no idea what that formula does, as it is pointing to another sheet that I can't see.

+ 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