+ Reply to Thread
Results 1 to 4 of 4

Using VLOOKUP for multiple results

  1. #1
    Registered User
    Join Date
    12-09-2020
    Location
    Scotland
    MS-Off Ver
    2010
    Posts
    13

    Using VLOOKUP for multiple results

    Good afternoon all,

    This is a sort of follow up thread to one I post a few months back so I would first like to thank everyone who responded to that thread for their help / assistance / guidance. I once again prostrate myself before you as I look to smarten up the Maintenance Planner I am developing (with your help).

    Please see the attached Spreadsheet. Again, it is a mocked up version of the final planner but the basic principles are the same.

    As you can see I have 4 work sheets within the Workbook. Basically I am trying to "automate", if that's the right term, the Planner tab within the workbook.

    Tabs 1 to 3 show different types of assets and their previous and next service dates. What I have been trying to achieve, unsuccessfully so far, is when a week number is entered into column E2 on the Planner tab it pulls through from all the other tabs the assets that are due service on that particular week. So if I were to type in '11' into column E2 on the Planner tab, then under the Sheet 1 heading on the Planner tab any asset that is due service on the Sheet1 tab gets pulled through, the same for Sheet 2 and Sheet 3.

    I have managed to get it to work if its just the one asset that is due in that particular week, the problem I have is getting it to show if there is more than one result expected. I hope that makes sense. Of course feel free to ask any questions and i'll do my utmost to answer them as clear as possible.

    Much obliged.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-16-2021
    Location
    Centurion, South Africa
    MS-Off Ver
    2019
    Posts
    9

    Re: Using VLOOKUP for multiple results

    Hi,

    Without looking at your file I can suggest that you have a look at using INDEX & MATCH combo function instead of VLOOKUP, which is very limited.

    Good luck

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

    Re: Using VLOOKUP for multiple results

    Here is a VBA solution for you

    Please Login or Register  to view this content.

    How to install your new code
    • Copy the Excel VBA code
    • Select the workbook in which you want to store the Excel VBA code
    • Press Alt+F11 to open the Visual Basic Editor
    • Choose Insert > Module
    • Edit > Paste the macro into the module that appeared
    • Close the VBEditor
    • Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)


    To run the Excel VBA code:
    • Press Alt-F8 to open the macro list
    • Select a macro in the list
    • Click the Run button
    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

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,408

    Re: Using VLOOKUP for multiple results

    worksheet name : Planner

    cell A2 array formula ,Drag down and across

    HTML Code: 
    Last edited by wk9128; 07-16-2021 at 06:46 PM.

+ 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. [SOLVED] Vlookup for multiple results
    By Karnik in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-26-2016, 01:47 PM
  2. [SOLVED] Vlookup with multiple results and multiple sheets in Excel
    By Philangr8 in forum Excel General
    Replies: 6
    Last Post: 11-29-2016, 07:01 PM
  3. [SOLVED] VLookUP with multiple results.
    By vetrox in forum Excel General
    Replies: 9
    Last Post: 03-16-2016, 11:17 PM
  4. Help using vlookup to return multiple results for one vlookup value
    By Akmon in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-27-2015, 06:00 AM
  5. [SOLVED] using Vlookup with multiple results and averaging the results.
    By xatomicx in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-12-2015, 10:19 AM
  6. vlookup - multiple results
    By 007juk in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-03-2014, 09:14 AM
  7. [SOLVED] Vlookup with Multiple Results
    By Fletch74 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-18-2013, 09:01 PM

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