+ Reply to Thread
Results 1 to 2 of 2

Excel Formula: Values for XLOOKUP are not coming through consistently

  1. #1
    Registered User
    Join Date
    06-23-2021
    Location
    Mexico
    MS-Off Ver
    Microsoft 365 MSO - Version: 2106
    Posts
    1

    Excel Formula: Values for XLOOKUP are not coming through consistently

    Hi Everyone!

    First time posting here.. so wish me luck

    So, I am working on creating charts and what not for my job. I've already built a Dashboard-like workbook which looks spectacular btw... Anyways, I am only having issues with one particular section of my Dashboard, when using XLOOKUP. For some reason, my formula does give me data correctly when switching between 'Sales List', 'Year' and 'Months'... However, when the Month is 'Nov' - for November, the formula results in an Error.

    I've tried what I know, but I have not been able to find a work-around, or a way to fix this. So I am coming to you all for help :D

    I've attached a Sample Excel Workbook - the Data there has been modified and scrambled to protect my companies data, however, I replicated the tables and the formulas - which I still get the same issue.

    Description of Issue:

    When selecting the following 'filters' - (Any Selection Sales), 2020, Dec.

    The table I have with the XLOOKUPs, results in this:

    Month ACV
    Aug #N/A
    Sep $2,933,280
    Oct $9,940,320
    Nov #N/A
    Dec $8,277,120

    We see that both for Aug and Nov I get an Error - However, Aug is fine since Aug does not exist within the range selected for the XLOOKUP... but Nov is. When I have the above filters, Nov provides no data. However, when the filters change to - (Any Selection Sales), 2020, Nov, I get the following:

    Month ACV
    Jul #N/A
    Aug #N/A
    Sep $2,933,280
    Oct $9,940,320
    Nov $4,989,600

    We see that Aug and Jul are now showing Errors - which is fine. But Nov now returns the correct value.

    Question: Why does Nov return value on the second instance, but not on the first?

    Thanks in advanced!
    Last edited by lopsan; 06-23-2021 at 07:16 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Excel Formula: Values for XLOOKUP are not coming through consistently

    Hi. The way you have created those dates is a bit messy. They have caused your formulae to be FAR more complicated than was needed. Use real dates and format them to look like months and (I suggest) years, for clarity. Those cosmetic changes are shaded purple.

    L37, copied down:
    =INDEX($I$9:$AF$24,MATCH($K37,$H$9:$H$24,0),MATCH($K$31,$I$8:$AF$8,0))

    M37, copied down:
    =3*INDEX($Y$34:$AN$57,MATCH($K$31,$X$34:$X$57,0),MATCH(K37,$Y$33:$AN$33,0))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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. Finding Duplicate Values with Xlookup
    By aksaunders in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-23-2021, 10:14 PM
  2. [SOLVED] XLookup returning wrong values when using two conditions
    By Einrastor in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-03-2020, 07:38 AM
  3. Replies: 14
    Last Post: 09-28-2019, 10:32 PM
  4. Coming unstuck with Formula using multiple values
    By MichaelH2912 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-28-2014, 03:32 AM
  5. SUM of cells with values coming from a if formula
    By Tiago Sousa in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 09-28-2013, 06:07 PM
  6. Update Values dialog box not appearing consistently
    By myorns in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-06-2011, 10:38 AM
  7. Values not coming in few cell but coming in rest all cells
    By rashmib in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2009, 11:19 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