Lookup value using two separate dynamic ranges.

SpirePeter

New Member
Joined
Oct 16, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have created two custom formulas that each return a two dimensional array that result in dynamic arrays that spill to adjacent fields.
The following examples are a mockup of my actual formulas as they are large.

Dynamic array 1 is on it's own sheet called "Orders" and looks like this:
Custom formula is in cell A2 and spills to A2:B4

1665937970890.png


On another sheet, "Inventory", I have Dynamic array 2.
Custom formula is in A2 and spills to A2:B3
1665938087646.png


I want a way, likely using something like vlookup, xlookup, index etc to use the PartNo in the Orders sheet to determine the Onhand from the Inventory sheet.

The result would be this:

1665938326581.png


Ideally, the results in C would also expand down dynamically, when the list of orders returned grows.
But I could manage if I had to manually extend the formula when "Orders" has been refreshed.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
How about
Excel Formula:
=VLOOKUP(INDEX(A2#,,2),Inventory!A2#,2,0)
 
Upvote 0
Solution
That's fantastic, exactly what I needed.
It even fills down when the "Orders" sheet refreshes.

Thank-you so much.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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