IF Lefts - oh my

vullkunnraven

New Member
Joined
Oct 28, 2009
Messages
5
I have criteria in column a:

a2:111
a3:113
a4:111
a5:112

columns b,c,d are:

b2: 111_123_xyz | c2: 113_123_xyz | d2: 112_123_xyz
b3: 111_123_xyz | c2: 113_123_xyz | d2: 112_123_xyz
b4: 111_123_xyz | c2: 113_123_xyz | d2: 112_123_xyz
b5: 111_123_xyz | c2: 113_123_xyz | d2: 112_123_xyz

Now - I would like to return in column e the result based on column a.

For example, e3 would equal 113_123_xyz.

Any idea how to do this? I tried using left to extract the first three characters and doing an if formula, but I can't figure out how to have excel look over 3 columns.

Thanks
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Try this array formula

=INDEX(B2:D2,MATCH(A2,--(LEFT(B2:D2,LEN(A2))),0))
 
Upvote 0
Hello

The formula works.

Paste it into E3 then tap the F2 key, so that you can see the formula in the cell, then hold down Ctrl+Shift then tap Enter.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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