Results 1 to 6 of 6

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

Threaded View

  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 evening! 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).

    Thank you all in advance!
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Can xlookup function be used in VBA?
    By jaryszek in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-22-2020, 02:20 AM
  2. Replies: 2
    Last Post: 03-22-2020, 09:05 PM
  3. Sum Function with Xlookup
    By sawaccouniting in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-07-2020, 10:10 PM
  4. 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
  5. Replies: 0
    Last Post: 09-29-2014, 10:32 AM
  6. Function to interpolate a complex table
    By rustbucket11 in forum Excel General
    Replies: 4
    Last Post: 06-13-2012, 12:45 PM
  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

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