'Xlookup' auto-update by Offset rule

shahinsyr

New Member
Joined
Aug 30, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,
I am struggling modify my 'Xlookup' function getting updated automatically using an Offset rule.

Here is what I'm trying to do:

As you see in the below picture, on the right side, I have a drop down menu and when I choose a product from the drop down menu the specification changes for that product based on the sources on the right side. This is the formula for this :

=XLOOKUP(G2,A2:A4,B2:D4)

Untitled.jpg


now what I want to do is that later Im gonna add more values on the right side, including more products and their specifications, and I want what I have made on the right side updates according to that. So I need to:

1- make a function to update my drop down menu automatically, which I already did with putting and Offset formula in the Data Validation section source.

2- make a function for my Xlookup formula to be updated automatically, which means when I add more products with their specs on the left side, I wouldn't need to update my Xlookup manually. I would like to do this with an Offset function rather than making tables.

I appreciate if you tell me how to do the second point.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Welcome to the MrExcel board!

Perhaps i am not understanding, but why not just make your XLOOKUP ranges big enough to cover any amount of additions you are likely to make. For example

Excel Formula:
=XLOOKUP(G2,A2:A1000,B2:D1000)
 
Upvote 0
Solution
Oh my goodness!

Many thanks Peter, how stupid of me that it didnt come to my mind to do this. Thanks a lot
 
Upvote 0
You're welcome. Thanks for the follow-up.
Yes, sometimes the simple solutions just don't come to mind. 😂
 
Upvote 0

Forum statistics

Threads
1,214,869
Messages
6,122,012
Members
449,060
Latest member
LinusJE

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