+ Reply to Thread
Results 1 to 4 of 4

Unable to fetch list of values using vlookup

  1. #1
    Registered User
    Join Date
    11-26-2020
    Location
    Kea
    MS-Off Ver
    2010
    Posts
    1

    Unable to fetch list of values using vlookup

    Hi,

    I would like to seek your help. In the attached example, I have two sheets - sheet 1 and sheet 2.

    Sheet 2 - contains the types and variety of fruits and vegetables available in my shop
    Sheet 1 - is a selection where I can select the type (either fruit or vegetable) and the list is expected to list all the fruits or vegetables available

    I tried to use VLOOKUP formula to fetch the values but it is only fetching the last value and displaying in the list. I would like to list all the items.

    Can please help me with this to provide me a simple formula to list all the items. Thank you very much.

    1606445393403.png
    1606445345778.png
    1606445314944.png
    1606445289211.png
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,862

    Re: Unable to fetch list of values using vlookup

    I used Power Query to create a lookup (parameter query) and return the values selected for that query. Select your category, then click on the Refresh Icon in Power Query to udpate.

    See the attached file for review.



    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,862

    Re: Unable to fetch list of values using vlookup

    crossposted: https://www.mrexcel.com/board/thread...ample.1154385/

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Unable to fetch list of values using vlookup

    In A4 then pull down

    =IFERROR(INDEX(Sheet2!$C$2:$C$13,AGGREGATE(15,6,ROW(Sheet2!$C$2:$C$13)/(Sheet2!$B$2:$B$13=$B$1),ROWS($A$4:$A4))-ROW($C$1)),"")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Unable to use index and match function to fetch values
    By vivektripathy20 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-29-2020, 03:42 AM
  2. [SOLVED] Unable to fetch data from another SHeet
    By kdraghu in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-30-2020, 07:56 AM
  3. Unable to fetch data from Website through VBA Code
    By JigneshBavishi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-14-2018, 07:26 AM
  4. Replies: 3
    Last Post: 04-07-2016, 01:15 AM
  5. Replies: 8
    Last Post: 02-09-2015, 11:52 AM
  6. Unable To fetch Data
    By vipul520 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-14-2013, 05:16 AM
  7. Fetch values from one table to another using VLOOKUP
    By Henrik_ in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-16-2012, 11:29 AM

Tags for this Thread

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