SOLVED

XLOOKUP IN LIST OPTION OF DATA VALIDATION

%3CLINGO-SUB%20id%3D%22lingo-sub-2776937%22%20slang%3D%22en-US%22%3EXLOOKUP%20IN%20LIST%20OPTION%20OF%20DATA%20VALIDATION%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2776937%22%20slang%3D%22en-US%22%3E%3CP%3EPC%2FWindows%2010%2FExcel%20365%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20appears%20to%20be%20a%20simple%20issue%20with%20a%20simple%20solution%20-%20then%20again%2C%20there%20may%20be%20no%20solution.%20Been%20trying%20to%20understand%20for%20some%20time%20why%20it%20doesn't%20work.%20Consequently%2C%20would%20appreciate%20it%20if%20anyone%20could%20show%20or%20explain%20to%20me%20what's%20wrong.%3CBR%20%2F%3E%3CBR%20%2F%3EBasically%2C%20when%20I%20use%20XLOOKUP%20formula%20(in%20List%20option%20of%20Data%20Validation)%20on%20an%20array%20it%20displays%20the%20%22named%20range%22%20INSTEAD%20of%20the%20data%20list%20associated%20with%20the%20%22named%20range%22%20(see%20attached%20spreadsheet).%20I%20temporarily%20solved%20the%20issue%20by%20using%20nested%20IF%20functions%2C%20however%2C%20I'm%20limited%20to%20255%20characters%20and%20I%20would%20need%20much%20more%20than%20that%20in%20my%20actual%20data%20spreadsheet.%3CBR%20%2F%3E%3CBR%20%2F%3EI've%20attached%20a%20fictitious%20simple%20spreadsheet%20to%20demonstrate%20my%20issue.%20The%20actual%20spreadsheet%20is%20a%20lot%20more%20involved.%20Once%20again%2C%20I%20would%20be%20sincerely%20grateful%20if%20you%20could%20point%20out%20the%20error%20of%20my%20way%20or%20perhaps%20suggest%20a%20different%20approach.%20Thank%20you%20for%20whatever%20insight%20you%20can%20provide.%3CBR%20%2F%3E%3CBR%20%2F%3ERegards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2776937%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2777143%22%20slang%3D%22en-US%22%3ERe%3A%20XLOOKUP%20IN%20LIST%20OPTION%20OF%20DATA%20VALIDATION%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2777143%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1164028%22%20target%3D%22_blank%22%3E%40CAROM16%3C%2FA%3E%26nbsp%3BThe%20XLOOKUP%20formula%20returns%20the%20name%20of%20the%20range%20that%20relates%20to%20the%20day%20of%20the%20week.%20Then%20you%20need%20to%20wrap%20it%20in%20an%20INDIRECT%20function%20to%20tell%20Excel%20to%20display%20the%20%3CU%3Econtent%3C%2FU%3E%20of%20that%20named%20range%20and%20%3CU%3Enot%20just%20the%20name%20itself.%3C%2FU%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEnter%20the%20following%20in%20the%20List%20box%20and%20it%20shall%20work.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DINDIRECT(XLOOKUP(%24C5%2CDOW%2CDOWM))%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2777157%22%20slang%3D%22en-US%22%3ERe%3A%20XLOOKUP%20IN%20LIST%20OPTION%20OF%20DATA%20VALIDATION%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2777157%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1164028%22%20target%3D%22_blank%22%3E%40CAROM16%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20forgot%20to%20wrap%20the%20INDIRECT()%20around%20your%20xlookup%20formula%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3DINDIRECT(XLOOKUP(%24C5%2CDOW%2CDOWM))%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2778482%22%20slang%3D%22en-US%22%3ERe%3A%20XLOOKUP%20IN%20LIST%20OPTION%20OF%20DATA%20VALIDATION%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2778482%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3E%26nbsp%3B%20%26nbsp%3BThank%20you%2C%20Thank%20you%2C%20Thank%20you%20!!!!!!!!!!!!!%26nbsp%3B%20I%20toiled%20on%20this%20for%20weeks%20knowing%20there%20had%20to%20be%20a%20simple%20solution.%26nbsp%3B%20I%20believe%20I%20did%20try%20the%20INDIRECT%20function%20at%20some%20point.%26nbsp%3B%20Obviously%2C%20I%20must%20have%20worded%20it%20wrong.%26nbsp%3B%20It%20works%20like%20a%20charm%20now.%26nbsp%3B%20Thank%20you%2C%20thank%20you%2C%20thank%20you!!!!!!!!!!!!%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

PC/Windows 10/Excel 365

This appears to be a simple issue with a simple solution - then again, there may be no solution. Been trying to understand for some time why it doesn't work. Consequently, would appreciate it if anyone could show or explain to me what's wrong.

Basically, when I use XLOOKUP formula (in List option of Data Validation) on an array it displays the "named range" INSTEAD of the data list associated with the "named range" (see attached spreadsheet). I temporarily solved the issue by using nested IF functions, however, I'm limited to 255 characters and I would need much more than that in my actual data spreadsheet.

I've attached a fictitious simple spreadsheet to demonstrate my issue. The actual spreadsheet is a lot more involved. Once again, I would be sincerely grateful if you could point out the error of my way or perhaps suggest a different approach. Thank you for whatever insight you can provide.

Regards

4 Replies
best response confirmed by CAROM16 (New Contributor)
Solution

@CAROM16 The XLOOKUP formula returns the name of the range that relates to the day of the week. Then you need to wrap it in an INDIRECT function to tell Excel to display the content of that named range and not just the name itself.

 

Enter the following in the List box and it shall work. 

 

=INDIRECT(XLOOKUP($C5,DOW,DOWM))

@CAROM16 

 

You forgot to wrap the INDIRECT() around your xlookup formula:

=INDIRECT(XLOOKUP($C5,DOW,DOWM))

 

@Riny_van_Eekelen   Thank you, Thank you, Thank you !!!!!!!!!!!!!  I toiled on this for weeks knowing there had to be a simple solution.  I believe I did try the INDIRECT function at some point.  Obviously, I must have worded it wrong.  It works like a charm now.  Thank you, thank you, thank you!!!!!!!!!!!!

 Thank you, Thank you, Thank you !!!!!!!!!!!!!  I toiled on this for weeks knowing there had to be a simple solution.  I believe I did try the INDIRECT function at some point.  Obviously, I must have worded it wrong.  It works like a charm now.  Thank you, thank you, thank you!!!!!!!!!!!!