Working from the example data, in Excel, I would create a formula in a set of cells just to the right of row #2 (Assuming the current example data has TopLeft of A1 and BottomRight of D4, that would be at E2).
- =IF(B2="Y",$A2 & CHAR(9) & B$1,"Empty")
This formula could then be duplicated by copying this cell and pasting across a range that covers all the rows (from #2 to the end) and a matching number of columns (in this case E through G).
This done, copy the whole new range to the clipboard (Ctrl-C) and use
Edit /
Paste Special /
Values into a completely new workbook. This will produce data with all the "Y"s replaced with a reference which includes the names of both the employee as well as the conference. It also leaves the empty cells as "Empty" though, so from here select the new data range again if necessary (A1 through C3 of the new workbook) and do a Replace (Ctrl-H) of the word "Empty" with a blank value in the
Replace with: box. This will remove these entries.
The next job is to move (Cut (Ctrl-X) and Paste (Ctrl-V)) the data from columns B through the last one down to the bottom of column A. Essentially consolidating all the data into a single column. A sort would be helpful next. This will ensure all blank cells are left at the end and need not be included in the saved workbook (Check when done that Ctrl-End finds the last cell with data in after saving the new workbook. If it doesn't, then select all rows below those that contain data and choose
Delete from the Right-click menu).
You now have a workbook that can be imported into your table to produce the requisite data using an append query.
Let us know how you get on with this and welcome to
Bytes!