Using VLOOKUP with concatenated values.

I have a simple lookup of a value in a sheet column from a table array which enters a code for the value in the adjacent cell. This is to provide room booking information from which I can derive and use a related code number. (All working well now thanks to Brian)

e.g.- In the sheet row 6 there is an entry "Room 3" and I wish to enter in the adjacent column the room code for Room 3 which I look up from the array and gives me 4613.

Unfortunately the input data occasionally gives me room information for one booking for several rooms, shown on the received data for example as "Room 1,Room 3" I would need the codes displayed as 4611,4613

What is the simplest means of showing the room codes when the two (or more) rooms are shown as one cell entry?

Grateful for your advice please.
Budge

Hi,

The most simple approach is to have another sheet where you perform the
actual match of room and code. You then concatenate the results of the
multiple (or single) matches and display that result on your page. You
would need to know in advance what is the maximum number of room
references your search can return and split the room information into
that many columns using the MID and FIND functions; you then use
VLOOKUP on the individual splits.

I can send you a sample of what I mean if I am not clear.

I hope this helps.

Rémy.

Hi Remy,
I confess I had to get help from my son-in-law and he has sorted out my problem in another way. Please forgive my ignorance with my question and very many thanks for coming to my assistance.
Regards,
Budge.