NightmanCometh
New Member
- Joined
- Oct 18, 2017
- Messages
- 1
Usually I try to sort out my excel issues on my own, but this one is tough (for me at least).
I have a google form that I am using for a job site for people to turn information over between shifts. The form returns information on one line per submission, but each submission contains multiple responses from column to column depending on which "Work Area(s)" a person selects in the form. I want to input a code that automatically converts each response (Details1, 2, etc) into their own row on a new sheet, with their respective column titles (Work Area 1, 2, etc) and their other corresponding information (like the date, discipline, and extra info) copied into these specified rows as well, while skipping over cells where the "detail" is blank. This generates an easy to read report as the end product. I'm sure there is some sort of code that can do this, it's just way beyond my knowledge of excel. Below is a simplified visual for understanding of the problem, (tried to make it all line up sorry). For the detailed out version, please see the link at the end showing a before and after.
What I start with:
[TABLE="width: 600, align: left"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Discipline[/TD]
[TD]WorkArea1[/TD]
[TD]WorkArea2[/TD]
[TD]WorkArea3[/TD]
[TD]ExtraInfo[/TD]
[/TR]
[TR]
[TD]10/18/17[/TD]
[TD]Disc1[/TD]
[TD]Details1[/TD]
[TD][/TD]
[TD]Details2[/TD]
[TD]Info1[/TD]
[/TR]
[TR]
[TD]10/18/17[/TD]
[TD]Disc2[/TD]
[TD][/TD]
[TD]Details3[/TD]
[TD]Details4[/TD]
[TD]Info2[/TD]
[/TR]
</tbody>[/TABLE]
What I want to end up with:
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Discipline[/TD]
[TD]WorkArea#[/TD]
[TD]TurnDetails[/TD]
[TD]ExtraInfo[/TD]
[/TR]
[TR]
[TD]10/18/17[/TD]
[TD]Disc1[/TD]
[TD]WorkArea1[/TD]
[TD]Details1[/TD]
[TD]Info1[/TD]
[/TR]
[TR]
[TD]10/18/17[/TD]
[TD]Disc1[/TD]
[TD]WorkArea3[/TD]
[TD]Details2[/TD]
[TD]Info1[/TD]
[/TR]
[TR]
[TD]10/18/17[/TD]
[TD]Disc2[/TD]
[TD]WorkArea2[/TD]
[TD]Details3[/TD]
[TD]Info2[/TD]
[/TR]
[TR]
[TD]10/18/17[/TD]
[TD]Disc2[/TD]
[TD]WorkArea3[/TD]
[TD]Details4[/TD]
[TD]Info2[/TD]
[/TR]
</tbody>[/TABLE]
On the link, the tab "Form Response 1" is how the data looks when it comes out on the google form. The tab "Final Product" is how I want it to look. Hopefully I explained this well enough. Thank you for any help you are able to provide.
https://docs.google.com/spreadsheets/d/10O96oQH9XZM2Mp5bisaJpaHwpKwcuF9zShLSYnjSznA/edit#gid=0
I have a google form that I am using for a job site for people to turn information over between shifts. The form returns information on one line per submission, but each submission contains multiple responses from column to column depending on which "Work Area(s)" a person selects in the form. I want to input a code that automatically converts each response (Details1, 2, etc) into their own row on a new sheet, with their respective column titles (Work Area 1, 2, etc) and their other corresponding information (like the date, discipline, and extra info) copied into these specified rows as well, while skipping over cells where the "detail" is blank. This generates an easy to read report as the end product. I'm sure there is some sort of code that can do this, it's just way beyond my knowledge of excel. Below is a simplified visual for understanding of the problem, (tried to make it all line up sorry). For the detailed out version, please see the link at the end showing a before and after.
What I start with:
[TABLE="width: 600, align: left"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Discipline[/TD]
[TD]WorkArea1[/TD]
[TD]WorkArea2[/TD]
[TD]WorkArea3[/TD]
[TD]ExtraInfo[/TD]
[/TR]
[TR]
[TD]10/18/17[/TD]
[TD]Disc1[/TD]
[TD]Details1[/TD]
[TD][/TD]
[TD]Details2[/TD]
[TD]Info1[/TD]
[/TR]
[TR]
[TD]10/18/17[/TD]
[TD]Disc2[/TD]
[TD][/TD]
[TD]Details3[/TD]
[TD]Details4[/TD]
[TD]Info2[/TD]
[/TR]
</tbody>[/TABLE]
What I want to end up with:
[TABLE="width: 500, align: left"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Discipline[/TD]
[TD]WorkArea#[/TD]
[TD]TurnDetails[/TD]
[TD]ExtraInfo[/TD]
[/TR]
[TR]
[TD]10/18/17[/TD]
[TD]Disc1[/TD]
[TD]WorkArea1[/TD]
[TD]Details1[/TD]
[TD]Info1[/TD]
[/TR]
[TR]
[TD]10/18/17[/TD]
[TD]Disc1[/TD]
[TD]WorkArea3[/TD]
[TD]Details2[/TD]
[TD]Info1[/TD]
[/TR]
[TR]
[TD]10/18/17[/TD]
[TD]Disc2[/TD]
[TD]WorkArea2[/TD]
[TD]Details3[/TD]
[TD]Info2[/TD]
[/TR]
[TR]
[TD]10/18/17[/TD]
[TD]Disc2[/TD]
[TD]WorkArea3[/TD]
[TD]Details4[/TD]
[TD]Info2[/TD]
[/TR]
</tbody>[/TABLE]
On the link, the tab "Form Response 1" is how the data looks when it comes out on the google form. The tab "Final Product" is how I want it to look. Hopefully I explained this well enough. Thank you for any help you are able to provide.
https://docs.google.com/spreadsheets/d/10O96oQH9XZM2Mp5bisaJpaHwpKwcuF9zShLSYnjSznA/edit#gid=0