Index and Match function - excel

I am having issues making the function Index and Match work together.
Here's my data:
A B C D E
ShortName Fullname NumberID Shortname
Craig Craig David 54 John
John John Long 53 Enrique
Raymond Raymond Short 23 Craig
Bill Bill Bush 21 Raymond
Here, the column "C" is blank. Basically, I merged two data sheets together (column A and B with column D and E). What I would like is to have the NumberID in column C associated with the shortname in A. Here the NumberID in column D is associated with the shortname in column E.
So far I have tried Vlookup but it is not working. I have tried also Index and Match function but it ain't working either.
What I have:
INDEX(D:E;MATCH(A2;E;0);1)
I am using Excel in french that's why I used ";" in formula). Does anyone have a solution ?

You were close, Column Reference is E:E not E and you do not need to reference both columns in the INDEX, just the output.
=INDEX(D:D;MATCH(A2;E:E;0))

Related

Excel Function - If string from column A is found in Column B Then

Column A has a list (first and last names) of all users who have an O365 license. Column B has a list of everyone in the company. Column C is associated with Column B and has the job title of everyone in the company.
I want each row in A to check all of B to see if they match. If they match I want to take the corresponding row in column C and copy/paste it into the same row in blank column D
A (O365 License
B (All Employees
C (Job Title).
D (JobTitle)
John Smith
Jarvis Cobblepott
. IT Guy
Nancy Johnson
John Smith
. Receptionist.
Kevin Gordon
Henry Kissinger
Marketing
Use ISNUMBER(MATCH()) to see if it exists:
=IF(ISNUMBER(MATCH(B2,A:A,0)),C2,"")
Alternatively maybe:
=XLOOKUP(A2,B$2:B$4,C$2:C$4,"",0)
Or:
=BYROW(A2:A4;LAMBDA(r,X.XLOOKUP(r,B2:B4,C2:C4,"",0)))

Excel - Extracting substring after a character contained in a string

I am trying to extract partial string contained within a cell after a certain character in the string.
I have a formula which can do this
=RIGHT(C10,LEN(C10)-SEARCH(":",C10))
But let's say the location of C10 cell isn't exactly known within the C column, and a way to locate it is by searching for a keyword in column D and then extracting the partial string using the above formula to a cell next to the keyword (column E).
I hope this makes sense.
Ex)
Column C
John: 1234 Alphabet Street
Claire: 3456 Diamond Street
Tim: 333 Laugh Lane
Bo: 5555 Great Neck Street
Grace: 777 Whiteside Blvd
Column D
John:
Claire:
Bo:
Thank you.
You could use:
=TRIM(SUBSTITUTE(VLOOKUP(D1&"*",C:C,1,0),D1,""))
This approach should work for you. First, modify the formula as below for the first row in E (i.e., E2)
=IF(ISTEXT(D2),RIGHT(C2,LEN(C2)-SEARCH(":",C2)),"No address found.")
In order to apply this formula throughout for the column triplets C, D and E do the following: Click on the top-left corner of column 'C', hold and drag the cursor towards right to include columns D and E and now drag all the way down to the last row of C, D and E. Now, the formula is automatically applied to all the rows viz. C, D and E.

Find partial name matches between two columns

Column A
Camisi, Terry
Goodman, Harris
Kostin, Heidi
Malachi, Lorrie
Column B
Terry
Harris
Lorri
Heidi
I'd like to create a formula that looks for a partial match of a name in two columns (Column A and Column B) in the same sheet, and if there is a partial match between the two names, it returns the value of Column B in Column C. Pls note, names are not in sequence.
#Harun24HR, Please see modified question below:
Column A (Last Name, First Name)
Camisi, Terry
Goodman, Harris
Kostin, Heidi
Malachi, Lorrie
Column B (Last Name)
Goodman
Malachi
Kostin
Camisi
Column C (First Name)
Harris
Lorri
Heidi
Terry
I have three columns, I need to compare Column A vs. Column B & C to find a partial match. If there's a match Name from Column A should be visible in Column D. Please advise. Thx
You can try MATCH() function with wildcard matching.
=INDEX($B$1:$B$4,MATCH("*"&B1&"*",$A$1:$A$4,0))
Or below one
=IF(ISNUMBER(MATCH("*"&B1&"*",$A$1:$A$4,0)),B1,"")

Comparing two columns in Excel

I have data with about 15 different columns and a total of 2400 rows.
The two columns I'm interested in: (Column C = Application Owner & Column D = Application Tester). I'm trying to see which rows have the same name for both columns.
E.g.
Column C =
Mike
Bob
John
Bob
Adam
Column D =
Mike
Barry
Barry
Barry
Adam
So for this example I would like it to delete the contents of the three middle rows and only show me the first and fifth row because that is what I'm concerned with. Can anyone suggest a function of code or a function in Excel in which I can do this without actually having to go through all of them row by row?
Thanks
Add a column with something like =C2=D2 copied down to suit, filter for FALSE in that column and delete rows.
In a new Columns you can use =if(C2=D2,"DELETE","") then filter out this new column for DELETE and delete the values from column C and D or the entire range

In Excel.. How do take the first letter of a name and add it to their last name in another column

In column E I have a list of 400 first names and in column F I have a list of their last names. How do I merge the first letter with the last name in another column. Column G is what I want in the below example.
Example
ColE ColF ColG
John Smith JSmith
Mike Tomas MTomas
Jill Lake JLake
Use the LEFT() function and the ampersand to concatenate
=LEFT(e1,1)&f1
This formula in column G will get what you want:
=CONCATENATE(LEFT(E1,1),F1)
=CONCATENATE(LEFT(E2,1),F2)
=CONCATENATE(LEFT(E3,1),F3)
...
In Column G, try
left(E1,1) & F1

Resources