
Originally Posted by
63falcondude
First off, you have trailing spaces in your data. For example, double click on Sheet2 A132. You will see that there is a trailing space at the end of Rebecca.
While we can incorporate something in the formula to account for this, it is better to clean the data.
I don't see any spaces in your column A data so a quick way to remove all spaces would be to select column A > Find & Select > Replace > Find what: type in a single space > Replace with: leave blank > Replace All
I would recommend formatting your data in Sheet2 as a table in case you want to add more people to the data in the future (that way you can refer to the entire table column instead of a static range), but I will write the formulas for your data as is for now.
Assuming that you want to return multiple matches, try these: (I un-merged the columns to account for multiple matches):
C7 =IFERROR(INDEX(LastName,SMALL(IF(FirstName=$C2,ROW(FirstName)-(ROW($A2)-1)),COLUMNS($A1:A1))),"") Ctrl Shift Enter
C8 =IFERROR(INDEX(Title,INDEX(MATCH($C6&C7,FirstName&LastName,0),0)),"")
C9 =IFERROR(INDEX(Location,INDEX(MATCH($C6&C7,FirstName&LastName,0),0))&"","")
C10 =IFERROR(INDEX(Phone,INDEX(MATCH($C6&C7,FirstName&LastName,0),0))&"","")
C11 =IFERROR(INDEX(Ext,INDEX(MATCH($C6&C7,FirstName&LastName,0),0))&"","")
C12 =IFERROR(INDEX(Cell,INDEX(MATCH($C6&C7,FirstName&LastName,0),0))&"","")
Dragging the formulas through column F will allow for up to 4 matches (i.e. 4 people with the same first name). You can drag the formula over as far as you'd like.
See attachment for clarification.
Bookmarks