How to copy and paste in Excel through a formula.

I've been trying formula's like vlookup, index, match etc... from previous solutions with no luck so I'm writing this request.
Can you tell me how to search for a value from col c in col m and when found in col m fill in the corresponding value from col a into col d.

col a range is A2:A53
col c range is C2:C53
col d range is D2:D619

the match search range is M2:M619

Does each cell in the D column need a formula?
Is this better solved using VB Script?
claghornAsked:
Who is Participating?
 
Saqib Husain, SyedConnect With a Mentor EngineerCommented:
This is what I have understood from your description.

Enter this formula in D2 and copy it down.

=iferror(index($A$2:$A$52,match(m2,$C$2:$C$53,0)),"")
0
 
claghornAuthor Commented:
It does exactly what I asked. Thanks so much.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.