Nested Xlookups? - Can't format data to make multiple criteria give desired output

Warren76

New Member
Joined
Aug 29, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Below is my example of a configurator-type setup I am trying to create. I feel as though I likely do not have my data organized the right way, and I cannot figure out a formula to get my desired output.
I was leaning towards nested Xlookups, but that may require my data set to change format all together, or it may be the totally wrong strategy from the start. Any help would greatly appreciated.

1693345460826.png


I have more "Base" codes, and even more extensions (ie. C, D, E, F, G) to add, so the data will grow in both X and Y directions. But, I think if I can get A and B figured out, I can mange the rest.

Thanks,
-W
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Welcome to the MrExcel forum!

It's true that your layout might not be the best from an organizational/computational point of view, but if it helps you visualize your data, it should still work. Consider:

Book1
ABCDEFGHI
1BaseAB
2L29-11771$ -1$ -
32$ (25.28)2$ 7.00
43$ 2.25
54$ 7.00
65$ 14.00
76$ 17.50
87$ 14.00BaseAB
98$ 28.00L29-620837
10L29-11131$ -1$ 5.00
112$ 14.752$ 10.00
123$ 21.003$ 15.00$ 15.00$ 110.00
134$ 20.00
145$ 25.00
156$ 30.00
167$ 35.00
178$ 40.00
18L29-62081$ 20.001$ 50.00
192$ (16.00)2$ 60.00
203$ 15.003$ 70.00
214$ -4$ 80.00
225$ 90.00
236$ 100.00
247$ 110.00
258$ 120.00
Sheet2
Cell Formulas
RangeFormula
H12H12=INDEX(C2:C1000,MATCH(G9,A2:A1000,0)+H9-1)
I12I12=INDEX(E2:E1000,MATCH(G9,A2:A1000,0)+I9-1)


This should work for you, as long as the values in H9 and I9 are just numbers, and the B and D columns are likewise just sequential numbers. If not, then we may need to do a lookup. There's also a chance that it could return an incorrect result if the values in H9 and I9 don't exist for the Base in question. These can be remedied, just let me know.

Also look into the XL2BB add-in (see the link in the reply box). It makes it much easier for the helpers here to work on your problem, without having to retype everything. Hope this helps!
 
Upvote 0
Solution

Forum statistics

Threads
1,215,110
Messages
6,123,146
Members
449,098
Latest member
Doanvanhieu

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