+ Reply to Thread
Results 1 to 4 of 4

use Match value to modify my Vlookup Array

  1. #1
    Registered User
    Join Date
    06-30-2015
    Location
    Virginia
    MS-Off Ver
    2010
    Posts
    6

    use Match value to modify my Vlookup Array

    I am trying to modify my Vlookup code based on a match value. The column of data includes a cost type value (1-10) which only has one occurrence with cost codes 1500-25000 that can occur multiple times. Vlookup only pulls that first occurrence of the cost code. When I use match( 5, 'Report'!A1:A150, 0) excel outputs 68. I want to use that value to modify my Vlookup code from (A6, 'Report'! A8:M150, 3, false) to (A6, 'Report'!A68:M150, 3, false).

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: use Match value to modify my Vlookup Array

    I think you mean this:

    =VLOOKUP(A6,INDIRECT("'Report'!A" & MATCH(5, 'Report'!A1:A150, 0) &":M150"), 3, FALSE)

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    06-30-2015
    Location
    Virginia
    MS-Off Ver
    2010
    Posts
    6

    Re: use Match value to modify my Vlookup Array

    It took a little debugging but it did exactly as I wanted. Thanks for your help.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: use Match value to modify my Vlookup Array

    JonLanguasco, if you had to modify Pete's formula to get it to work for you, please post the final solution.

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    If a member helped you solve your problem, consider adding to their reputation by clicking on the star icon below their name.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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] Array, VLOOKUP - or- Match/index with a Countif.
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-15-2015, 05:38 PM
  2. [SOLVED] Index Match Vlookup Array or Similar
    By djm601 in forum Excel General
    Replies: 3
    Last Post: 10-27-2014, 04:39 PM
  3. [SOLVED] Can you set array for Vlookup or Index/Match using Offset?
    By inincubus in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-16-2014, 12:52 PM
  4. index, match, vlookup, array ....combining all these?
    By hog77 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-05-2012, 12:29 PM
  5. Match look up Array from Vlookup.
    By jrodri14 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-23-2010, 12:43 AM
  6. [SOLVED] Vlookup / Match / Hlookup / Array fundtion or What?
    By Winger in forum Excel General
    Replies: 5
    Last Post: 11-22-2005, 04:25 PM
  7. [SOLVED] Match / Vlookup within an Array formula
    By Hari Prasadh in forum Excel General
    Replies: 3
    Last Post: 02-03-2005, 01:06 PM

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