+ Reply to Thread
Results 1 to 8 of 8

XLookup array formula will not fill down

  1. #1
    Registered User
    Join Date
    02-22-2021
    Location
    Ontario, Canada
    MS-Off Ver
    365
    Posts
    2

    XLookup array formula will not fill down

    I used Xlookup to create an array formula to return 5 columns of data. The formula works fine, but I can't get it to fill down. If I change the Xlookup formula to return just 1 column of data, then I can double-click the bottom right corner, and the formula fills down all 44,000 rows.
    Attached Files Attached Files

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: XLookup array formula will not fill down

    Array formula, will auto expand to range, but formula is only held within first cell (top left). So, you need to select G2, then drag down. Not K2.

    EDIT: Note you can't double click, but click on the bottom right of G2 and drag down.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    02-22-2021
    Location
    Ontario, Canada
    MS-Off Ver
    365
    Posts
    2

    Re: XLookup array formula will not fill down

    Hi, thanks for looking at this! I know that I can drag and/or copy the formula from G2, but most of my files have a lot of rows. Is there any way to auto-fill when I use the array formula?

  4. #4
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: XLookup array formula will not fill down

    If you select F2:K2, you can double click on the fill handle in K2 to fill down. At least that worked for me just now in web Excel. I don't have access to O365 at the moment to test with that.

    I figure this is just the new semantics of spilled formulas. If your formula spills across columns in a single row, you have to fill the entire spilled range rather than just work with the 1st cell in which you'd edit the formula. Maybe that changes over time, so it may be worth using the Feedback app to request that MSFT change this to allow intelligent filling when clicking on the leftmost cell of a spilled formula's range.

  5. #5
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: XLookup array formula will not fill down

    Autofill via double click is disabled on purpose. Since array result can span more than one row/column.
    I'm afraid, you can only drag down.

    If you break it down into component parts, you could. But then that defeats the purpose of using array

    Alternate method.
    Copy G2. Select F2 and CTRL + DOWN. Hit RIGHT. Then CTRL + SHIFT + UP. Paste.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: XLookup array formula will not fill down

    I would do this from the name box (where you usually see the cell ID- upper left)
    Click in the name box and write over what's there. Enter your range including the cell where your formula is
    i.e. G2:G44210
    Then CNTRL+D to fill down
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  7. #7
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: XLookup array formula will not fill down

    In your formula in F2, you can change it to address the whole array so you only have the formula in one cell and it will SPILL down:

    =XLOOKUP(D2:D11,Table3[Vendor Name],Table3[[Full Name]:[Full Name]],"not found",0)

  8. #8
    Registered User
    Join Date
    02-07-2022
    Location
    Sydney, Australia
    MS-Off Ver
    Microsoft 365 - Excel, Word, PowerPoint, Visio, Outlook
    Posts
    1

    Re: XLookup array formula will not fill down

    I have found a workaround for this. If you make the lookup value in the first row one that will return an #N/A, then you can double click to autofill down. That's weird. I don't know why you cannot double click to autofill down or why my workaround works. I have named it the Tanya Workaround in honour of the student in my Excel class who found it.

+ 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. Using Dropdown Menu to adjust Xlookup formula
    By Tim418 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-22-2020, 11:10 PM
  2. XLOOKUP with a dynamic return array
    By phrankndonna in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-04-2020, 09:33 AM
  3. [SOLVED] Using IF, Xlookup and Match/search, to find value in array.
    By Lee_of_Excel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-16-2020, 12:09 AM
  4. [SOLVED] Fill down array formula with VBA coding
    By uroy67640 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2015, 08:50 PM
  5. [SOLVED] Array formula won't let me fill down or anything!
    By zookeepertx in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-02-2014, 01:45 PM
  6. Help to fill down array formula, in intervals
    By LAR23 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2013, 06:59 PM
  7. Fill array formula
    By tone640 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-25-2011, 05:51 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