Search and Match across multiple columns

Liquid_Len

New Member
Joined
Mar 8, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I hope I have posted this correctly, it is my first post on this site and welcome any feedback.

I have a problem that I have been working on for a few days now, but I keep coming up with brick walls. I have some data that populates a worksheet via entry of a MS Forms. The data is required to be entered in such a way that the data comes in the following format (this cannot be changed for operational reasons)

1678263443177.png


I can use INDEX and MATCH to find Code 1 based on the data in Name 1 & Course 1 and return this into a cell on another sheet. However, what I need to do is search across all of the columns. For example, if I enter Katy and MNO234 in the appropriate cells, CODE567 is returned in the adjacent cell. To make matters worse, there are other columns of data between the columns demonstrated above.

1678263793047.png


I'm hoping that there is a simple solution using a Formula, but I have some (limited) VBA experience so happy to go down that route.

Thanks in advance.

Len
 
To make matters worse, there are other columns of data between the columns demonstrated above

Are you free to add a worksheet to your workbook ... and design your Database... in your own smart way, for your current (and future) requirements ...???
 
Upvote 0

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi all,

Just to give a quick update to my problem, I managed to solve the issue myself. It seems I couldn't see the wood for the trees and was trying to find a more difficult solution to the problem. James006 gave me the idea after I came back to revisit the issue.

I solved it by simply copying the separate columns Name (1,2,3) & Code (1,2,3) into 2 columns (Name & Code) on an analysis sheet. After that it was a simple case of running a Vlookup on these columns and returning the value into the main sheet.

Thanks for all your input.

Len
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,841
Members
449,193
Latest member
MikeVol

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top