+ Reply to Thread
Results 1 to 7 of 7

VLOOKUP not giving apt results....

  1. #1
    Forum Contributor lifeisaspreadsheet's Avatar
    Join Date
    10-04-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    208

    VLOOKUP not giving apt results....

    Hi All,

    I need to fetch data related to quantity of products bought.

    Workbook 1: Has list of products say from Column A2 cell to A1669. B2 has quantities.

    Let's say A15 to A23 has "Apple" and B15 to B23 has a quantity value for it.

    Workbook 2: Has "Apple" in Column H again H2 to H10.

    How can I look-up the quantity of A15 in B15 from workbook 1 to column G cell G2 in workbook 2, similarly from A16 in B16 to G3...?

    Also, the data at time isn't in a chrono order. I don't have another identifier (unique) between the sheets.

    The Vlookup I'm using is picking the quantity for B15 only and pasting it all across G2 to G10 in workbook 2

    Please suggest...
    Experience is not what happens to you; it's what you do with what happens to you.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: VLOOKUP not giving apt results....

    if you are looking to add together all the "apple" quantities, use sumif() or sumifS().

    if this is not what you want, i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, what your expected outcome is, and how you arrived at that

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor lifeisaspreadsheet's Avatar
    Join Date
    10-04-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    208

    Re: VLOOKUP not giving apt results....

    Quote Originally Posted by FDibbins View Post
    if you are looking to add together all the "apple" quantities, use sumif() or sumifS().

    if this is not what you want, i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, what your expected outcome is, and how you arrived at that

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    I don't need to sumif or sumifs - just the quantity for each cell from workbook 1 to Workbook 2 is to be populated.

    I'll upload the file shortly.

    Thanks!

  4. #4
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: VLOOKUP not giving apt results....

    vlookup always return the first matching cell only. You need to use supporting column to generate your output.

  5. #5
    Forum Contributor lifeisaspreadsheet's Avatar
    Join Date
    10-04-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    208

    Re: VLOOKUP not giving apt results....

    Quote Originally Posted by Sindhus View Post
    vlookup always return the first matching cell only. You need to use supporting column to generate your output.
    Hmmm...I thought as much. Is there anyother way without a supporting column?

    If not, then I guess I have the solution in place.

    Please suggest.

    Thanks for your inputs:-)

  6. #6
    Valued Forum Contributor
    Join Date
    08-14-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    573

    Re: VLOOKUP not giving apt results....

    Or you can try array formula like this..
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ColA refers to your Worksheet1 column a
    ColB refers to worksheet1 column b
    A1 is worksheet2 lookup value

    The formula should be entered with Ctrl+Shift+Enter

  7. #7
    Forum Contributor lifeisaspreadsheet's Avatar
    Join Date
    10-04-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    208

    Re: VLOOKUP not giving apt results....

    Quote Originally Posted by Sindhus View Post
    Or you can try array formula like this..
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ColA refers to your Worksheet1 column a
    ColB refers to worksheet1 column b
    A1 is worksheet2 lookup value

    The formula should be entered with Ctrl+Shift+Enter
    Thank you sir!

    I'll apply this and get back either to close the thread as "Solved" or with any query. In all likelyhood it will be the former, Im sure:-)

    Have a good Sunday:-)

+ 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