Closed Thread
Results 1 to 2 of 2

Help with complex (to me) XLOOKUP function to create interactive table

  1. #1
    Registered User
    Join Date
    09-28-2020
    Location
    Virginia Beach, VA
    MS-Off Ver
    Excel Version 16.0.13127.20402
    Posts
    4

    Help with complex (to me) XLOOKUP function to create interactive table

    Good morning!

    I posted this originally in the General > Basics and New users forum, and haven't gotten any responses. On looking at other users' questions, I realized this forum might be more appropriate for my question. Hope this is OK!

    I am new to this forum, as I usually do not attempt anything complex enough that I can't find it by Googling. However, I am trying to create a customizable workout plan for my unit to follow at home. I have exercises, skill level, and equipment needed in one table, labeled Exercises, and then I linked checkboxes (for multiple equipment items the person might have), and a drop-down to choose a skill level, to lists in the third tab (labeled Lists). Now I am trying to have the following XLOOKUP function match the user-selected equipment and skill level, look up exercises in the Exercises table, and return them into the shell Workout Plan table on the first tab.

    =XLOOKUP(1, (Exercise_Table[SkillLevel]=WorkoutPlan!$C$4) * ((Exercise_Table[Equipment]="*"&Lists!$D$9&"*") + (Exercise_Table[Equipment]="*"&Lists!$D$10&"*") + (Exercise_Table[Equipment]="*"&Lists!$D$11&"*") + (Exercise_Table[Equipment]="*"&Lists!$D$12&"*") + (Exercise_Table[Equipment]="*"&Lists!$D$13&"*") + (Exercise_Table[Equipment]="*"&Lists!$D$14&"*") + (Exercise_Table[Equipment]="*"&Lists!$D$15&"*") + (Exercise_Table[Equipment]="*"&Lists!$D$16&"*") + (Exercise_Table[Equipment]="*"&Lists!$D$17&"*") + (Exercise_Table[Equipment]="*"&Lists!$D$18&"*") + (Exercise_Table[Equipment]="*"&Lists!$D$19&"*") + (Exercise_Table[Equipment]="*"&Lists!$D$20&"*") + (Exercise_Table[Equipment]="*"&Lists!$D$21&"*")), Exercise_Table[Monday], " ",2 )

    I am using wildcards so that I can have lists of different equipment that can be used for each exercise, and XLOOKUP can still match one equipment item with one selected by the user. By using the "+" I hoped it would function like an "OR", so that if any one equipment item selected by the user is found in the list, then that exercise will be returned. Can anyone see how to fix this? It looks like it should work according to the examples I have found on Google, but it just gives me nothing (the error state that I chose).

    I've tried everything I can think of (removing the wild cards, adding sheet references to everything, using & instead of +, etc) to get this to work. Any help would be awesome!

    Thank you all in advance!
    Attached Files Attached Files

  2. #2
    Forum Moderator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    365
    Posts
    16,436

    Re: Help with complex (to me) XLOOKUP function to create interactive table

    Administrative Note:

    Welcome to the forum.

    Unfortunately, this is a duplicate thread, and you are allowed only ONE thread per issue here.

    I will move your thread. In the future, click on Report Post and request that your thread be moved, rather that re-posting.

    Please see Forum Rule #5 about thread duplication.

    I am closing this thread, but you may continue here in the original thread

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Help with complex (to me) XLOOKUP function to create interactive table
    By frleisc in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-04-2020, 04:24 PM
  2. Can xlookup function be used in VBA?
    By jaryszek in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-22-2020, 02:20 AM
  3. Replies: 2
    Last Post: 03-22-2020, 09:05 PM
  4. Sum Function with Xlookup
    By sawaccouniting in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-07-2020, 10:10 PM
  5. Complex Search using OR/Index/Lookup ??? Trying to create new table as output
    By George Drivas in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-07-2018, 02:03 PM
  6. Replies: 0
    Last Post: 09-29-2014, 10:32 AM
  7. Embed complex interactive Excel in web page
    By inelsonom in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-17-2011, 03:50 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