Hi MrExcel Community,
See below for a sample of data that I need to extract information into a searchable database. All of the information is provided in both columns and rows. I'd like to create TABLE 1 into TABLE 2. What's most frustrating is identifying project type by finding the YES and figuring out how to return the project type which is in the same cell!
What would be the most efficient formula to convert TABLE 1 to TABLE 2 format?
Thank you!
TABLE 1
[TABLE="class: outer_border, width: 700, align: left"]
<tbody>[TR]
[TD]Project #[/TD]
[TD]Project Owner[/TD]
[TD]Commercial:[/TD]
[TD]Bank:[/TD]
[/TR]
[TR]
[TD]Project Name[/TD]
[TD]Owner Address[/TD]
[TD]School:[/TD]
[TD]Carriage House:[/TD]
[/TR]
[TR]
[TD]Project Address[/TD]
[TD]Owner City, State Zip[/TD]
[TD]Office:[/TD]
[TD]Industrial:[/TD]
[/TR]
[TR]
[TD]Project City, State Zip[/TD]
[TD][/TD]
[TD]Theatre:[/TD]
[TD]Rail Station:[/TD]
[/TR]
[TR]
[TD]Project Date[/TD]
[TD][/TD]
[TD]Single Family Housing:[/TD]
[TD]Jail:[/TD]
[/TR]
[TR]
[TD]Project Cost[/TD]
[TD][/TD]
[TD]Multi-family Housing (2):[/TD]
[TD]Private Club:[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Multi-family Housing (3+): YES[/TD]
[TD]Public:[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Hotel/B&B:[/TD]
[TD]Church:[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Hospital:[/TD]
[TD]Barn:[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Other:[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
TABLE 2
[TABLE="class: outer_border, width: 1000, align: left"]
<tbody>[TR]
[TD]Project #[/TD]
[TD]Project Name[/TD]
[TD]Project Address[/TD]
[TD]Project City, ST Zip[/TD]
[TD]Project Date[/TD]
[TD]Project Cost[/TD]
[TD]Project Owner[/TD]
[TD]Owner Address[/TD]
[TD]Owner City, ST Zip[/TD]
[TD]Project Type[/TD]
[/TR]
[TR]
[TD]Project #[/TD]
[TD]Project Name[/TD]
[TD]Project Address[/TD]
[TD]Project City, ST Zip[/TD]
[TD]Project Date[/TD]
[TD]Project Cost[/TD]
[TD]Project Owner[/TD]
[TD]Owner Address[/TD]
[TD]Owner City, ST Zip[/TD]
[TD]Multi-family Housing (3+)[/TD]
[/TR]
</tbody>[/TABLE]
See below for a sample of data that I need to extract information into a searchable database. All of the information is provided in both columns and rows. I'd like to create TABLE 1 into TABLE 2. What's most frustrating is identifying project type by finding the YES and figuring out how to return the project type which is in the same cell!
What would be the most efficient formula to convert TABLE 1 to TABLE 2 format?
Thank you!
TABLE 1
[TABLE="class: outer_border, width: 700, align: left"]
<tbody>[TR]
[TD]Project #[/TD]
[TD]Project Owner[/TD]
[TD]Commercial:[/TD]
[TD]Bank:[/TD]
[/TR]
[TR]
[TD]Project Name[/TD]
[TD]Owner Address[/TD]
[TD]School:[/TD]
[TD]Carriage House:[/TD]
[/TR]
[TR]
[TD]Project Address[/TD]
[TD]Owner City, State Zip[/TD]
[TD]Office:[/TD]
[TD]Industrial:[/TD]
[/TR]
[TR]
[TD]Project City, State Zip[/TD]
[TD][/TD]
[TD]Theatre:[/TD]
[TD]Rail Station:[/TD]
[/TR]
[TR]
[TD]Project Date[/TD]
[TD][/TD]
[TD]Single Family Housing:[/TD]
[TD]Jail:[/TD]
[/TR]
[TR]
[TD]Project Cost[/TD]
[TD][/TD]
[TD]Multi-family Housing (2):[/TD]
[TD]Private Club:[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Multi-family Housing (3+): YES[/TD]
[TD]Public:[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Hotel/B&B:[/TD]
[TD]Church:[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]Hospital:[/TD]
[TD]Barn:[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Other:[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
TABLE 2
[TABLE="class: outer_border, width: 1000, align: left"]
<tbody>[TR]
[TD]Project #[/TD]
[TD]Project Name[/TD]
[TD]Project Address[/TD]
[TD]Project City, ST Zip[/TD]
[TD]Project Date[/TD]
[TD]Project Cost[/TD]
[TD]Project Owner[/TD]
[TD]Owner Address[/TD]
[TD]Owner City, ST Zip[/TD]
[TD]Project Type[/TD]
[/TR]
[TR]
[TD]Project #[/TD]
[TD]Project Name[/TD]
[TD]Project Address[/TD]
[TD]Project City, ST Zip[/TD]
[TD]Project Date[/TD]
[TD]Project Cost[/TD]
[TD]Project Owner[/TD]
[TD]Owner Address[/TD]
[TD]Owner City, ST Zip[/TD]
[TD]Multi-family Housing (3+)[/TD]
[/TR]
</tbody>[/TABLE]