+ Reply to Thread
Results 1 to 5 of 5

Convert an array (text string) to an array (usable form) for Lookup (H/Vlookup)

  1. #1
    Registered User
    Join Date
    04-25-2017
    Location
    Vietnam
    MS-Off Ver
    2013
    Posts
    3

    Convert an array (text string) to an array (usable form) for Lookup (H/Vlookup)

    Dear all,

    Please help with below case:

    Assume I have different ranges of data, then I marked them as:
    (Col.1) (Col.2)
    (Row.1) 1 $A$1:$D$7
    (Row.2) 2 $B$14:$E$21

    Then I use Vlookup function, with target to auto-change the array of condition:
    =VLOOKUP(1,VLOOKUP(1,$E$9:$F$10,2,FALSE),2,FALSE) -> result = #VALUE!

    The problem is:
    VLOOKUP(1,$E$9:$F$10,2,FALSE) return the exact results, yet in text format
    Then the "mother" VLOOKUP cannot detect the range and show error

    I want to convert the text array into usable array, any solution?

    Pls see attachments for more details

    Picture1.jpgPicture2.jpg

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Convert an array (text string) to an array (usable form) for Lookup (H/Vlookup)

    It appears that you want to nest your inner VLOOKUP() inside of an INDIRECT() function: https://support.office.com/en-us/art...1-92b6306fa261
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Convert an array (text string) to an array (usable form) for Lookup (H/Vlookup)

    Try using the INDIRECT function...

  4. #4
    Registered User
    Join Date
    04-25-2017
    Location
    Vietnam
    MS-Off Ver
    2013
    Posts
    3

    Re: Convert an array (text string) to an array (usable form) for Lookup (H/Vlookup)

    Sorry, not yet clear enough

    I don't want to put array one by one, but auto detect from existing referent table

    I tried INDIRECT but the description is too short

    Anyway, thanks for comment

  5. #5
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: Convert an array (text string) to an array (usable form) for Lookup (H/Vlookup)

    Something like =VLOOKUP(1,INDIRECT(VLOOKUP(1,$E$9:$F$10,2,FALSE)),2,FALSE) is what I had in mind.

+ 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. VBA Find Partial String in String Array and Output the Found String Array Value
    By scherich in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2014, 11:20 AM
  2. [SOLVED] VLOOKUP using dynamic table_array, EXCEL adding quotes, viewing as text string not array
    By littleredd1968 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-29-2014, 05:42 PM
  3. [SOLVED] A re-usable Form with a listbox filled with an array defined when .SHOW - how to define?
    By Skotzmun in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-16-2013, 10:20 AM
  4. Replies: 8
    Last Post: 08-07-2012, 10:15 AM
  5. Search lookup array to find lookup value contained within text string
    By Cookstein2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2011, 09:42 AM
  6. Convert text string to lookup array
    By jmt73 in forum Excel General
    Replies: 9
    Last Post: 06-15-2009, 10:10 AM
  7. Using Vlookup to lookup array, return array
    By jcampbell in forum Excel General
    Replies: 5
    Last Post: 11-16-2007, 01:13 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