Revise Match formula

Column A contains a 7 digit code.
Column B contains a code that could be 1 digit, 2 digits, 3 digits, 4 digits or 5 digits.

Column F contains random Code 2 codes.

The objective is to match the Code 1 from Column A with code 2 from the same row, to the same code 2 in Column F.

This formula worked for another problem but will not work for this problem.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Saurabh Singh TeotiaCommented:
How will you say it's a match or No match?? What are the criteria for it??
ProfessorJimJamMicrosoft Excel ExpertCommented:
change your formula to  =INDEX(A:B,MATCH(TRIM(F2),B:B,0),2)  and it will work.

replace 1 with 2
gregfthompsonAuthor Commented:
Hi ProfessorJimJam,

I used your formula and received the error window attached.

I'm sure it is close, but I cannot make it work.


Rowby Goren Makes an Impact on Screen and Online

Learn about longtime user Rowby Goren and his great contributions to the site. We explore his method for posing questions that are likely to yield a solution, and take a look at how his career transformed from a Hollywood writer to a website entrepreneur.

Saurabh Singh TeotiaCommented:

The correct formula will be...


Open in new window

Enclosed is your workbook for reference...


Experts Exchange Solution brought to you by

Your issues matter to us.

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

Start your 7-day free trial
gregfthompsonAuthor Commented:
Thanks ProfessorJimJam, and Saurabh Singh Teotia.

Great work!

Saurabh Singh TeotiaCommented:

You are welcome..Always Happy to help.. :-)

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.