DHChemist,
Welcome to the MrExcel forum.
1. What version of Excel and Windows are you using?
2. Are you using a PC or a Mac?
3. What is the
VLOOKUP formula you are using in cell B2?
You are posting a picture/graphic. This means that if this was a problem where one needed to use your data, anyone trying to help you would have to enter the data manually. That makes no sense.
To start off, and, so that we can get it right on the first try:
Can you post a screenshot of the actual raw data worksheet?
And, can you post a screenshot of the worksheet results (manually formatted by you) that you are looking for?
To post a small screen shot try one of the following:
Excel Jeanie
Download
MrExcel HTML Maker
https://onedrive.live.com/?cid=8cffdec0ce27e813&sc=documents&id=8CFFDEC0CE27E813!189
Borders-Copy-Paste
http://www.mrexcel.com/forum/about-board/444901-how-create-table-like-aladin.html#post2198045
To test the above:
Test Here
Woops, apologies.
1) Excel 2013 on Windows 7 Enterprise
2) PC
3) B2 lookup: =VLOOKUP(A2,G2:H11,2,FALSE)
Raw data worksheet:
[TABLE="class: grid, width: 739"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Codes[/TD]
[TD][/TD]
[TD]Codes[/TD]
[TD]Definitions[/TD]
[TD][/TD]
[TD]Name[/TD]
[TD]Codes[/TD]
[TD][/TD]
[TD]Code[/TD]
[TD]Definitions[/TD]
[/TR]
[TR]
[TD]Harry[/TD]
[TD]1-9[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Harry[/TD]
[TD]1-9[/TD]
[TD][/TD]
[TD="align: right"]1[/TD]
[TD]House[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]James[/TD]
[TD]1-6-9[/TD]
[TD][/TD]
[TD="align: right"]2[/TD]
[TD]Cat[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Paul[/TD]
[TD]3-4[/TD]
[TD][/TD]
[TD="align: right"]3[/TD]
[TD]Dog[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Matt[/TD]
[TD]1-3-5-6-7[/TD]
[TD][/TD]
[TD="align: right"]4[/TD]
[TD]Fish[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Andy[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]5[/TD]
[TD]Ball[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]6[/TD]
[TD]Jam[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]7[/TD]
[TD]Tea[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]8[/TD]
[TD]Coffee[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]9[/TD]
[TD]Cream[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]10[/TD]
[TD]Toy[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Desired results:
[TABLE="class: grid, width: 739"]
<tbody>[TR]
[TD]Name[/TD]
[TD]Codes[/TD]
[TD][/TD]
[TD]Codes[/TD]
[TD]Definitions[/TD]
[TD][/TD]
[TD]Name[/TD]
[TD]Codes[/TD]
[TD][/TD]
[TD]Code[/TD]
[TD]Definitions[/TD]
[/TR]
[TR]
[TD]Paul[/TD]
[TD]3,4[/TD]
[TD][/TD]
[TD="align: right"]1[/TD]
[TD]House[/TD]
[TD][/TD]
[TD]Harry[/TD]
[TD]1-9[/TD]
[TD][/TD]
[TD="align: right"]1[/TD]
[TD]House[/TD]
[/TR]
[TR]
[TD]Harry[/TD]
[TD]1,9[/TD]
[TD][/TD]
[TD="align: right"]3[/TD]
[TD]Dog[/TD]
[TD][/TD]
[TD]James[/TD]
[TD]1-6-9[/TD]
[TD][/TD]
[TD="align: right"]2[/TD]
[TD]Cat[/TD]
[/TR]
[TR]
[TD]James[/TD]
[TD]1,6,9[/TD]
[TD][/TD]
[TD="align: right"]4[/TD]
[TD]Fish[/TD]
[TD][/TD]
[TD]Paul[/TD]
[TD]3-4[/TD]
[TD][/TD]
[TD="align: right"]3[/TD]
[TD]Dog[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]6[/TD]
[TD]Jam[/TD]
[TD][/TD]
[TD]Matt[/TD]
[TD]1-3-5-6-7[/TD]
[TD][/TD]
[TD="align: right"]4[/TD]
[TD]Fish[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]9[/TD]
[TD]Cream[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]5[/TD]
[TD]Ball[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]6[/TD]
[TD]Jam[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]7[/TD]
[TD]Tea[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]8[/TD]
[TD]Coffee[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]9[/TD]
[TD]Cream[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]10[/TD]
[TD]Toy[/TD]
[/TR]
</tbody>[/TABLE]
B2 (and copied down that column to B8) is the only formulae currently in the table. It's the D and E columns in the results I'm looking to fill.
Unfortunately can't download the add-ins to give a better table, the joys of a tightly managed desktop. I think this is formatted correctly though.