Return value if first 6 digits match the first 6 digits in another column

eyoonbbj

New Member
Joined
Jul 15, 2014
Messages
17
If the first 6 digits of column A match the first 6 digits of column C, return value from column D
ABCD
-119.858604
-119.859738EMILY
-119.794760-119.794222BRANDON
-119.799090-119.799800DONALD
-119.703094-119.740803DAVID
-119.840230-119.703131SHIRLEY
-119.869385-119.759102TOM
-119.827545-119.762117BETTY
-119.7982680-119.840851LAUREN
-119.798730-119.798622BRIAN
-11.762680-119.869465WILLIAM
-11.740670-119.827319JEFF
-119.759590

<tbody>
</tbody>
 

Some videos you may like

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Stridhan

Well-known Member
Joined
Mar 5, 2014
Messages
568
try this in B1 and enter with ctrl+shift+enter, not just enter.

Code:
=IFERROR(VLOOKUP(LEFT(A1,8),LEFT($C$1:$D$11,8),2,0),"")
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,127,098
Messages
5,622,694
Members
415,921
Latest member
ExcelGeek5038

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
Top