Vlookup on spilled data

CV12

Board Regular
Joined
Apr 6, 2020
Messages
82
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello,

Lately I have been working on my array/spilling skills, and I have got yet another question about this:

In column A, I have got spilled data. In this small example my manual input ranges from 1 to 15.
In column G, the same numbers 1 to 15 are presented, with the corresponding values in column H (10 to 150).

Now in column B, I would like to have the values from column H.

Please note that the values in column A are spilled (is this the right word?) and the number of values can be variable.

Results.xlsx
ABCDEFGH
1110110
2220220
3330330
4440440
5550550
6660660
7770770
8880880
9990990
101010010100
111111011110
121212012120
131313013130
141414014140
151515015150
Sandbox
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
How about
+Fluff 1.xlsm
ABCDEFGH
115150110
214140220
313130330
412120440
511110550
610100660
7990770
8880880
9770990
1066010100
1155011110
1244012120
1333013130
1422014140
1511015150
Main
Cell Formulas
RangeFormula
A1:A15A1=SEQUENCE(15,,15,-1)
B1:B15B1=XLOOKUP(A1#,G1:G15,H1:H15,"",0)
Dynamic array formulas.
 
Upvote 0
Fluff,

Thanks for your reply. I dont think that I made my example good enough.
In my real example, columns G and H are one array (spill?).

I think that your formula automatically looks at both column G and H. is that true? I only need to use the data from column G



Results.xlsx
GH
1BeamN [kN]
21-412.878
31-412.878
42-35.6254
52-35.6254
63-26.8165
73-26.8165
84-18.0077
94-18.0077
105-9.19884
115-9.19884
126-0.39
136-0.39
1478.41884
1578.41884
16817.22768
17817.22768
18926.03652
19926.03652
201034.84537
Helpersheet
Cell Formulas
RangeFormula
G2:H305G2=FILTER(FILTER(EXPORT3!C2:F1000000,(EXPORT3!C2:C1000000>=Sheet1!C46)*(EXPORT3!C2:C1000000<=Sheet1!C47)*(EXPORT3!B2:B1000000=Sheet1!C62)),{1,0,0,1})
Dynamic array formulas.
 
Upvote 0
Assuming you do still want to return the values from H, try
Excel Formula:
=VLOOKUP(A1#,G1#,2,0)
 
Upvote 0
Made a new sheet to clearify.

I would like to search by using the values in column E.
The values in column E can be used to search in column H, the matching values are in column I.
Now, what I entered in G, should be the results,.

I think however, because columns E and F is one spill, it automatically uses both column E and F to search for values. I only need to search by using column E.

Not sure whether it is possible to split this up in the formula you just gave. If not, I can split up my original array formula.

Results.xlsx
EFGHI
1BeamN [kN]
29131-558.42710913110
39131-558.42710913110
49132-558.0586520913220
59132-558.0586520913220
69133-557.6903130913330
79133-557.6903130913330
89134-557.3219640913440
99134-557.3219640913440
109135-556.95361
119135-556.95361
129136-556.58527
139136-556.58527
149137-556.21692
159137-556.21692
169138-555.84857
179138-555.84857
189139-555.48022
199139-555.48022
Helpersheet
Cell Formulas
RangeFormula
E2:F53E2=FILTER(FILTER(EXPORT3!C2:F1000000,(EXPORT3!C2:C1000000>=Sheet1!C46)*(EXPORT3!C2:C1000000<=Sheet1!C47)*(EXPORT3!B2:B1000000=Sheet1!C62)),{1,0,0,1})
Dynamic array formulas.
 
Upvote 0
In futur it is better to give full details, rather than wasting peoples time by giving inaccurate information that is nothing like your data.
Based on your original details try
Excel Formula:
=XLOOKUP(index(A1#,,1),G1:G15,H1:H15,"",0)
 
Upvote 0
Solution
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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