Multiple formulas/conditions

drluke

Active Member
Joined
Apr 17, 2014
Messages
314
Office Version
  1. 365
Platform
  1. Windows
I have a spreadsheet with a list of names for which I have to do lookups to in order to get specific information. In my data table I have:

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]NAME[/TD]
[TD]DIVISION[/TD]
[TD]ROUTE[/TD]
[/TR]
[TR]
[TD]Smith J[/TD]
[TD]Technical[/TD]
[TD]5268[/TD]
[/TR]
[TR]
[TD]Brown RS[/TD]
[TD]Legal[/TD]
[TD]276634[/TD]
[/TR]
</tbody>[/TABLE]

In my working sheet I have a list of names in col A as follows:

John Smith
Bobby Brown

I need to (a) switch the order of first & last name (b) extract only the initial of the first name and (c) lookup e.g. the division for all but where there are 2 initials as in C3 above, somehow ignore the 2nd initial in the lookup.

If at all possible I need to do all of that in one formula. I can't change the data in my table.

Someone here has kindly helped me with (a) & (b) using the formula

=RIGHT(A2,LEN(A2)-FIND(" ",A2,1))&" "&LEFT(A2,1) but I have no idea how to add the lookup to this formula.

Any advise would be much appreciated.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Could you adapt something like this?

Excel Workbook
ABC
1NAMEDIVISIONROUTE
2Smith JTechnical5268
3Brown RSLegal276634
4
5
6John SmithTechnical
7Bobby Brown#N/A
Lookup Name
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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