Using match, index to return substring

chuckf201

New Member
Joined
Nov 28, 2011
Messages
28
My spreadsheet consists of:
column A: single numbers or letters from 1-10 and a-j
column B: first-name sp last-name. (Abe Lincoln, George Washington, etc)

column f: single numbers or letters
column g: return last name only.

how can I combine both following formulas to yield the last name only in column G. (Lincoln, Washington)

<colgroup><col width="55"></colgroup><tbody>
[TD="class: xl82, width: 55"]=trim(RIGHT(B1,LEN(B1)SEARCH("",B1,SEARCH(" ",B11)+1)))
AND
=INDEX(B1:B11,MATCH(F1,LEFT(A1:A11,5),0),2)

Thanks
[/TD]

</tbody>
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
in column G =RIGHT(B2,LEN(B2)-FIND("*",SUBSTITUTE(B2," ","*",LEN(B2)-LEN(SUBSTITUTE(B2," ","")))))
 
Upvote 0
I don't want to get the string in column B. I want to match column F with column A and return column B sub-string to column G.
in other words:
in col g: match column f with column A and return last name from column B.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,242
Members
452,623
Latest member
russelllowellpercy

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