+ Reply to Thread
Results 1 to 4 of 4

Xlookup return array problem.

  1. #1
    Registered User
    Join Date
    12-06-2011
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    26

    Xlookup return array problem.

    Hi

    See the attached Book1 with Xlookup functions in D19 & D 22 referencing the range C5:F14 and looking up ID in C19:C20 (1st Scenario) and C22 (2nd Scenario).
    I use range ID - C6:C14: to select some of the ID's (more than 1) as I did in D19 and expect an array with the #yield, #spread and #duration in a 2*3 array of the selected ID', the function only return a 2*1 array with #yield data. In D22 I select only 1 ID which is returning a 1*3 array.
    Why does both xlookup's not return x*3 arrays in both, the return array's of the xlookup function in both functions are the full 9*3 array?

    Thanks for the help in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Xlookup return array problem.

    The xlookup function will only return a 1d array, not a 2d array, however you could use index/match
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-06-2011
    Location
    South Africa
    MS-Off Ver
    Office 365
    Posts
    26

    Re: Xlookup return array problem.

    This is perfect, thanks

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Xlookup return array problem.

    You're welcome & thanks for the feedback

+ 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 function to almost replicate xlookup but return array
    By Authomas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2023, 05:17 PM
  2. xlookup with two d array lookup value
    By bets_ in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-01-2022, 04:35 PM
  3. XLOOKUP Equivalent when working with Data Model (to return array of results)
    By chris01395 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-27-2022, 10:00 AM
  4. Xlookup with dynamic return array
    By nmarcon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-01-2022, 11:26 AM
  5. Xlookup returns "-" but not the return array's value
    By immigrated4urjob in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-16-2021, 11:01 AM
  6. XLOOKUP with a dynamic return array
    By phrankndonna in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2020, 09:33 AM
  7. VB Array Return Problem
    By STr83dgeboi in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-30-2010, 01:39 AM

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