Bring in data from Excel rows based on exact cell match in Excel 2007

Hi all.

In the attached Excel file, I want to be able to enter a number (let's say 1) in column C and once I do that, then column D would populate with what is in column N, column E would populate what is in column O and column F would populate what is in column P, in this case entering 1 would bring in the data in row 1 of columns N, O and P.

If we enter 4 in column C row 2, then the data from N4, O4, and P4 would would populate D2, E2 and F2.

Any idea how I can do this?

Thank you in advance!
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.

byundtMechanical EngineerCommented:
You should use a VLOOKUP type of formula to bring back the data:

The 2 before FALSE will change to bring back different columns of information.
Harry LeeCommented:

Please see the Example File using Index and Match.

Although Vlookup works, Index and Match is by far much faster when your spreadsheet is growing bigger.

Also, If using =If C2="","" it will cause problem when entering any number larger than 5 or letters. Using =Iferror( would prevent that but of course, then there is no error code to show the data entry is wrong.

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
Sim1980Author Commented:
Thank you both!
byundtMechanical EngineerCommented:
Although Vlookup works, Index and Match is by far much faster when your spreadsheet is growing bigger.
That assertion runs contrary to my understanding. HarryHYLee, do you have any data to substantiate it?

There was an interesting experiment done with 100,000 rows of data comparing VLOOKUP with INDEX and MATCH. These tests showed INDEX and MATCH was slightly slower than VLOOKUP. The only way for INDEX and MATCH to come out ahead was by using an auxiliary column to store the result of the MATCH, then to refer to that stored value in multiple INDEX formulas.
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.