+ Reply to Thread
Results 1 to 3 of 3

Creating a dynamic VLOOKUP using INDIRECT based on the contents of a cell + additional txt

  1. #1
    Registered User
    Join Date
    11-06-2017
    Location
    Australia
    MS-Off Ver
    EXCEL 365
    Posts
    4

    Creating a dynamic VLOOKUP using INDIRECT based on the contents of a cell + additional txt

    Hi guys and girls,

    I'm in the process of updating a bunch of excel spread sheets for my company and have hit a brick wall building a dynamic vlookup that uses indirect to take the contents of a cell and add to it additional text to dynamically navigate to other sheets within the same workbook.

    So Currently my formula in cell H97 looks like this:
    Please Login or Register  to view this content.
    Everything works well and dandy, but what I am after is changing the 'COSTCO RAW DATA' to an INDIRECT using cell A1 which contains "COSTCO" and adding the rest to the formula, so it will look something like this as a wild guess:

    Please Login or Register  to view this content.
    ^ Obviously this is wrong and throws a #REF once i remove the IFERROR Clause - Please let me know where and what i'm doing wrong as i'll be playing with dynamic lookups for a couple of weeks. Thanks in advance!
    Last edited by Typirious; 11-15-2017 at 09:26 PM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Creating a dynamic VLOOKUP using INDIRECT based on the contents of a cell + additional

    hi there. the only problem with your INDIRECT formula is that you shouldn't need to end the A1 formula with a single quote (that is already after the RAW DATA) and there is no space for RAW DATA. so:
    =IFERROR(VLOOKUP($A96,INDIRECT("'"&$A$1&" RAW DATA"&"'!$A:$GC"),COLUMN(),0),0)

    wont do any harm, but for INDIRECT, there's no need to fix the column.
    =IFERROR(VLOOKUP($A96,INDIRECT("'"&$A$1&" RAW DATA"&"'!A:GC"),COLUMN(),0),0)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    11-06-2017
    Location
    Australia
    MS-Off Ver
    EXCEL 365
    Posts
    4

    Re: Creating a dynamic VLOOKUP using INDIRECT based on the contents of a cell + additional

    Worked a treat! Thank you, and thanks for the info about not needing to fix the column when using an INDIRECT!

    Regards,

    Typirious

+ 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. Dynamic References Based on Two Criteria (INDIRECT OR VLOOKUP?)
    By hotelguy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-08-2015, 09:52 PM
  2. Replies: 5
    Last Post: 02-16-2015, 03:31 AM
  3. [SOLVED] Creating a Dynamic Attendance Tracker with Additional Data Items
    By Caleb952 in forum Excel General
    Replies: 3
    Last Post: 01-12-2013, 01:41 AM
  4. Replies: 4
    Last Post: 10-18-2012, 10:43 AM
  5. Dynamic cell contents based on an other numeric cell value.
    By lapator in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-03-2009, 02:30 PM
  6. Dynamic Save to Folder Based on Cell Contents
    By dthhal in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-25-2009, 05:42 PM
  7. Replies: 3
    Last Post: 01-31-2007, 03:34 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