Row wise vlookup with multiple range

SAXON10

Board Regular
Joined
Jun 1, 2017
Messages
109
HI,

How do vlookup row wise with multiple ranges one sheet to another sheet in excel.

Sheet-1 from Data;

IDSUBJECTTEXT
10SCAAAABACADAEAFAHAIALAMANAOAPAQ253545
10SC-1BA10A20A30A40A50A60A70A80A81A82A83A84A85A86A87A88A89
10SC-1CZ21Z22Z23Z24Z25Z26Z27Z28Z29Z30Z31Z32Z33Z34
20SCAX5X10X15X20X30X35X40X45X50X60X70X81X82X83X84X85X86
20SC-1B1020304050607090100110120130140150160170180
20SC-1C200210220226230240250260270280290300320330




<colgroup><col width="37" style="width:28pt"> <col width="65" style="width:49pt"> <col width="42" style="width:32pt"> <col width="37" style="width:28pt" span="17"> </colgroup><tbody>
</tbody>
Sheet 2 from Required Format;

IDSUBJECT
10SCAAABACADAEAFAHAIALAMANAOAPAQ253545
20SCX5X10X15X20X30X35X40X45X50X60X70X81X82X83X84X85X86

<colgroup><col width="37" style="width:28pt"> <col width="65" style="width:49pt"> <col width="37" style="width:28pt" span="17"> </colgroup><tbody>
</tbody>

Please help me.

<colgroup><col width="37" style="width:28pt"> <col width="65" style="width:49pt"> <col width="42" style="width:32pt"> <col width="37" style="width:28pt" span="22"> </colgroup><tbody>
</tbody>

Sheet 2; Required Data;
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Book1
ABCDEFGHIJKLMNOPQRST
1IDSUBJECTTEXT
210SCAAAABACADAEAFAHAIALAMANAOAPAQ253545
310SC-1BA10A20A30A40A50A60A70A80A81A82A83A84A85A86A87A88A89
410SC-1CZ21Z22Z23Z24Z25Z26Z27Z28Z29Z30Z31Z32Z33Z34
520SCAX5X10X15X20X30X35X40X45X50X60X70X81X82X83X84X85X86
620SC-1B1020304050607090100110120130140150160170180
720SC-1C200210220226230240250260270280290300320330
Sheet1



Book1
ABCDEFGHIJKLMNOPQRS
1IDSUBJECT
210SCAAABACADAEAFAHAIALAMANAOAPAQ253545
320SCX5X10X15X20X30X35X40X45X50X60X70X81X82X83X84X85X86
Sheet2
Cell Formulas
RangeFormula
C2{=VLOOKUP($A2&$B2,CHOOSE({1,2},Sheet1!$A$2:$A$7&Sheet1!$B$2:$B$7,Sheet1!D$2:D$7),2,0)}
Press CTRL+SHIFT+ENTER to enter array formulas.


Taken from here:

The ultimate VLOOKUP trick – Multi-condition Lookup | Chandoo.org - Learn Microsoft Excel Online

WBD
 
Upvote 0
ABCDEFGHIJKLMNOPQRST
1ID SUBJECT TEXT
210SCA AA AB AC AD AE AF AH AI AL AM AN AO AP AQ 253545
310SC-1B A10 A20 A30 A40 A50 A60 A70 A80 A81 A82 A83 A84 A85 A86 A87 A88 A89
410SC-1C Z21 Z22 Z23 Z24 Z25 Z26 Z27 Z28 Z29 Z30 Z31 Z32 Z33 Z34
520SCA X5 X10 X15 X20 X30 X35 X40 X45 X50 X60 X70 X81 X82 X83 X84 X85 X86
620SC-1B 1020304050607090100110120130140150160170180
720SC-1C 200210220226230240250260270280290300320330

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1



ABCDEFGHIJKLMNOPQRS
1IDSUBJECT
210SCAA AB AC AD AE AF AH AI AL AM AN AO AP AQ 253545
320SCX5 X10 X15 X20 X30 X35 X40 X45 X50 X60 X70 X81 X82 X83 X84 X85 X86

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Array Formulas
CellFormula
C2{=VLOOKUP($A2&$B2,CHOOSE({1,2},Sheet1!$A$2:$A$7&Sheet1!$B$2:$B$7,Sheet1!D$2:D$7),2,0)}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>



Taken from here:

The ultimate VLOOKUP trick – Multi-condition Lookup | Chandoo.org - Learn Microsoft Excel Online

WBD



Thank you so much for your help, formula working fine. Thanks a lot.
 
Upvote 0

Forum statistics

Threads
1,215,639
Messages
6,125,970
Members
449,276
Latest member
surendra75

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