+ Reply to Thread
Results 1 to 6 of 6

Xlookup with dynamic return array

  1. #1
    Registered User
    Join Date
    05-27-2022
    Location
    Toronto
    MS-Off Ver
    Office 365
    Posts
    4

    Post Xlookup with dynamic return array

    Hi all, I am trying to create a dynamic xlookup function where the return array can change based on a user imputed dropdown menu. I have everything so far in a sample workbook, but my xlookup function returns a #VALUE! error. The formula currently looks like =XLOOKUP('Data Output'!E7&'Data Output'!!A9,TABLE[#ALL],MATCH(Inbetween!F5,TABLE[#Haders],0),"",0)

    I have also attached a sample workbook that includes the scenario I am trying to fix. Many thanks 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 with dynamic return array

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-27-2022
    Location
    Toronto
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Xlookup with dynamic return array

    This worked perfectly thank you! As a follow-up question if I wanted to use the formula to generate the cell location Ex cell E5 to use in a dynamic SUM formula how would I do that.

    I have this formula but excel is saying the formula is not correct.
    Please Login or Register  to view this content.
    Also, would it work to have a SUM formula with two CELL formulas as the reference eg:
    Please Login or Register  to view this content.
    Thank you for your help!

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

    Re: Xlookup with dynamic return array

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-27-2022
    Location
    Toronto
    MS-Off Ver
    Office 365
    Posts
    4

    Re: Xlookup with dynamic return array

    That formula wasn't working for me but I adjusted it by adding a helper column through a macro to the table and a match function. It seems to work now Thank you for your help

    New Formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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

    Re: Xlookup with dynamic return array

    Glad you sorted it & 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. [SOLVED] COUNT Dynamic Array based on Date to return Dynamic Array Spill Range
    By dluhut in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-06-2022, 01:14 PM
  2. XLookup array formula will not fill down
    By botoole54 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-07-2022, 04:40 AM
  3. Replies: 7
    Last Post: 12-10-2021, 02:17 PM
  4. 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
  5. VBA determining blank cells and using XLOOKUP with dynamic values
    By atakatam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-11-2021, 03:50 PM
  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. Replies: 8
    Last Post: 07-04-2016, 02:23 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