# Need Help with Microsoft Excel

Hi all,

I am new to writing formulas in Excel, This is what I want to do

There are 3 columns A B and C. A has numeric values and B and C has alphanumeric values,  A and B have 10 values and C has 20 values. The Values in C, also exist in B, but are repeated twice or more . So if have to compare the values in C with B and if a match exists, then I need the corresponding value of A to be written to the new Column D.

For Eg : if C(2)=B(3) then D(2) =A(3)

In reality I have more than 10 values

Any help would be appreciated.

Thanks,
###### Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
Try this formula in D2 copied down

=INDEX(A:A,MATCH(C2,B:B,0))

regards, barry

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Excel and VBA ExpertCommented:
Use a combination of an index and a match function in a formula:

=INDEX(\$A\$1:\$A\$100,MATCH(C1,\$B\$1:\$B\$100,0))
Author Commented:
both the formulas worked, I will share the points. You guys are awesome.

Thanks
###### It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.