Lookup From Partial Number (From Left)

muhammad susanto

Well-known Member
Joined
Jan 8, 2013
Messages
2,077
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
hi all...

how to lookup data with partial match count of number like this :
<style type="text/css">
table.tableizer-table {
font-size: 12px;
border: 1px solid #CCC ;
font-family: Arial, Helvetica, sans-serif;
}
.tableizer-table td {
padding: 4px;
margin: 3px;
border: 1px solid #CCC ;
}
.tableizer-table th {
background-color: #104E8B ;
color: #FFF ;
font-weight: bold;
}
</style>
<table class="tableizer-table">
<thead><tr class="tableizer-firstrow"><th></th><th> </th><th> </th><th>lookup</th><th>result</th></tr></thead><tbody>
<tr><td>data1</td><td>data2</td><td> </td><td>4010101001</td><td>BUILDING A</td></tr>
<tr><td>BUILDING A</td><td>4010101</td><td> </td><td> </td><td> </td></tr>
<tr><td>BUILDING B</td><td>4010102</td><td> </td><td> </td><td> </td></tr>
<tr><td>BUILDING C</td><td>4010103</td><td> </td><td> </td><td> </td></tr>
<tr><td>BUILDING D</td><td>4010104</td><td> </td><td> </td><td></td></tr>
</tbody></table>

my len data lookup is 7 (from left first), total len = 10
any help, thank is advance..

susanto
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Hi,

Assuming Column B contains Real Numbers, if not, let me know:


Book1
ABCDE
1lookupresult
2data1data24010101001BUILDING A
3BUILDING A4010101
4BUILDING B4010102
5BUILDING C4010103
6BUILDING D4010104
Sheet173
Cell Formulas
RangeFormula
E2=INDEX(A3:A6,MATCH(LEFT(D2,7)+0,B3:B6,0))
 
Upvote 0

Forum statistics

Threads
1,215,582
Messages
6,125,659
Members
449,247
Latest member
wingedshoes

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