Help writing an XLOOKUP formula using tables and Headers

jptmemphis63

New Member
Joined
May 18, 2023
Messages
1
Office Version
  1. 365
I need help writing an XLOOKUP formula using tables.

The issue is that I need to do this many, many times on many worksheets in many files, and I am trying to avoid rewriting the formula. I want to drag across.

I know how to deal with the absolute reference to the Lookup Criteria and Lookup Array =XLOOKUP(INV[@[SKU]:[SKU]],Items[[SKU]:[SKU]],

Where I need help is with the Return Array. I want to Return Array to be the data that matches the Column Header for the given cell.

I will be referencing data from a Master Worksheet (one worksheet for all new data) all the other worksheets will manipulate the data from the Master Worksheet. As my data grows, or as I need to grab new data, all I will need to do is Insert a Column, add a Header that matches the Master Worksheet, and copy the formula.
 

Attachments

  • Excel.PNG
    Excel.PNG
    63.6 KB · Views: 16

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi & welcome to MrExcel.
How about
Excel Formula:
=INDEX(Items,MATCH(inv[@[SKU]:SKU]],Items[[SKU]:SKU]],0),MATCH(INV[[[#Headers],[Product]]],Items[#Keaders],0)
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top