+ Reply to Thread
Results 1 to 3 of 3

MS2013: Adding a text array into a lookup formula

  1. #1
    Registered User
    Join Date
    11-27-2012
    Location
    Copenhagen
    MS-Off Ver
    Excel 2010
    Posts
    4

    MS2013: Adding a text array into a lookup formula

    Hi guys hope you can help me,

    I find my array from the following formula: (dont worry about the formula but look at the output)

    ="$B$" & MATCH("MAB",INDIRECT("'[Test TYCTrackingsheet2014.xlsx]"&LEFT($B35,7)&"'!$A$1:$A$102"),0)&":$M$"&MATCH("TMAE",INDIRECT("'[Test TYCTrackingsheet2014.xlsx]"&LEFT($B35,7)&"'!$A$1:$A$102"),0)-1

    The out put from the formula is:

    $B$35:$M$57 (my array)

    This array I wanna add in my vlookup formula but I get an error:

    =VLOOKUP(B34,"$B$" & MATCH("MAB",INDIRECT("'[Test TYCTrackingsheet2014.xlsx]"&LEFT($B33,7)&"'!$A$1:$A$102"),0)&":$M$"&MATCH("TMAE",INDIRECT("'[Test TYCTrackingsheet2014.xlsx]"&LEFT($B33,7)&"'!$A$1:$A$102"),0)-1,1,FALSE)

    I was thinking that maybe my array is a text and needs to be transfered to an array???

    Can anyone help me?
    Last edited by Master_A; 09-29-2014 at 09:25 AM.

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,843

    Re: MS2013: Adding a text array into a lookup formula

    If you post a sample workbook it will be much easier to help you.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: MS2013: Adding a text array into a lookup formula

    Quote Originally Posted by Master_A View Post
    Hi guys hope you can help me,

    I find my array from the following formula: (dont worry about the formula but look at the output)

    ="$B$" & MATCH("MAB",INDIRECT("'[Test TYCTrackingsheet2014.xlsx]"&LEFT($B35,7)&"'!$A$1:$A$102"),0)&":$M$"&MATCH("TMAE",INDIRECT("'[Test TYCTrackingsheet2014.xlsx]"&LEFT($B35,7)&"'!$A$1:$A$102"),0)-1

    The out put from the formula is:

    $B$35:$M$57 (my array)
    Assuming that's all correct, you need to put all of that inside an INDIRECT function:

    INDIRECT("$B$" & MATCH("MAB",INDIRECT("'[Test TYCTrackingsheet2014.xlsx]"&LEFT($B35,7)&"'!$A$1:$A$102"),0)&":$M$"&MATCH("TMAE",INDIRECT("'[Test TYCTrackingsheet2014.xlsx]"&LEFT($B35,7)&"'!$A$1:$A$102"),0)-1)

    Note that the referenced file must be open for the formula to work.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Can I make the row lookup array/range part in an array formula variable?
    By OLLY-7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-18-2014, 09:06 AM
  2. Dynamic Row Lookup Array within Array formula
    By OLLY-7 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-17-2014, 04:55 PM
  3. Change date into text if <today and adding text if cell isblank... into an Array.
    By JasonNeedsHelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-29-2013, 12:06 PM
  4. 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

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