Hello Excel Pros,
I've somewhat unique excel problem and it's taking a lot of my time because I do it pretty much manually. I'm asking all the pros to help me figure out a quicker way to get this done. Below is how I get data in excel sheet:
<colgroup><col style="mso-width-source:userset;mso-width-alt:9472;width:194pt" width="259"> <col style="width:48pt" span="36" width="64"> </colgroup><tbody>
[TD="width: 259"]company[/TD]
[TD="width: 64"] #of fices[/TD]
[TD="width: 64"]city1[/TD]
[TD="width: 64"]city2[/TD]
[TD="width: 64"]city3[/TD]
[TD="width: 64"]city4[/TD]
[TD="width: 64"]city5[/TD]
[TD="width: 64"]city6[/TD]
[TD="width: 64"]city7[/TD]
[TD="width: 64"]city1-PR[/TD]
[TD="width: 64"]city1-NP[/TD]
[TD="width: 64"]city1-AS[/TD]
[TD="width: 64"]city1-OL[/TD]
[TD="width: 64"]city2-PR[/TD]
[TD="width: 64"]city2-NP[/TD]
[TD="width: 64"]city2-AS[/TD]
[TD="width: 64"]city2-OL[/TD]
[TD="width: 64"]city3-PR[/TD]
[TD="width: 64"]city3-NP[/TD]
[TD="width: 64"]city3-AS[/TD]
[TD="width: 64"]city3-OL[/TD]
[TD="width: 64"]city4-PR[/TD]
[TD="width: 64"]city4-NP[/TD]
[TD="width: 64"]city4-AS[/TD]
[TD="width: 64"]city4-OL[/TD]
[TD="width: 64"]city5-PR[/TD]
[TD="width: 64"]city5-NP[/TD]
[TD="width: 64"]city5-AS[/TD]
[TD="width: 64"]city5-OL[/TD]
[TD="width: 64"]city6-PR[/TD]
[TD="width: 64"]city6-NP[/TD]
[TD="width: 64"]city6-AS[/TD]
[TD="width: 64"]city6-OL[/TD]
[TD="width: 64"]city7-PR[/TD]
[TD="width: 64"]city7-NP[/TD]
[TD="width: 64"]city7-AS[/TD]
[TD="width: 64"]city7-OL[/TD]
[TD="align: right"]5[/TD]
[TD="colspan: 3"]South Baton Rouge, Louisiana [/TD]
[TD="align: right"]62[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]3[/TD]
[TD="colspan: 2"]Mountain View, CA[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]21[/TD]
[TD="align: right"]21[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
</tbody>
And how the final output would look:
[TABLE="width: 769"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Company[/TD]
[TD]CITY[/TD]
[TD]PR[/TD]
[TD]NP[/TD]
[TD]AS[/TD]
[TD]OL[/TD]
[/TR]
[TR]
[TD]company1[/TD]
[TD]Baton Rouge, Louisiana[/TD]
[TD="align: right"]62[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD]company1[/TD]
[TD]New Orleans, Louisiana[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]company1[/TD]
[TD]Shreveport, Louisiana[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company1[/TD]
[TD]Lake Charles, Louisiana[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company1[/TD]
[TD]South Baton Rouge, Louisiana [/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company2[/TD]
[TD]Chicago, IL[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]21[/TD]
[TD="align: right"]21[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]company2[/TD]
[TD]Durham, NC[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company2[/TD]
[TD]Mountain View, CA[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company3[/TD]
[TD]Miami, Florida[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]company3[/TD]
[TD]Tampa, Florida[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company3[/TD]
[TD]Fort Lauderdale, Florida[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company3[/TD]
[TD]Orlando, Florida[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company3[/TD]
[TD]Jacksonville, Florida[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company3[/TD]
[TD]Kingston, Jamaica[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]company3[/TD]
[TD]Nassau, The Bahamas[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
</tbody>[/TABLE]
I need to insert blank rows based on #of offices and copy/paste each city data per row. what would be the best/easiest way to do this? Thanks in advance for your help!
I've somewhat unique excel problem and it's taking a lot of my time because I do it pretty much manually. I'm asking all the pros to help me figure out a quicker way to get this done. Below is how I get data in excel sheet:
company1 | Baton Rouge, Louisiana | New Orleans, Louisiana | Shreveport, Louisiana | Lake Charles, Louisiana | |||||||||||||||||
company2 | Chicago, IL | Durham, NC | |||||||||||||||||||
company3 | Miami, Florida | Tampa, Florida | Fort Lauderdale, Florida | Orlando, Florida | Jacksonville, Florida | Kingston, Jamaica | Nassau, The Bahamas |
<colgroup><col style="mso-width-source:userset;mso-width-alt:9472;width:194pt" width="259"> <col style="width:48pt" span="36" width="64"> </colgroup><tbody>
[TD="width: 259"]company[/TD]
[TD="width: 64"] #of fices[/TD]
[TD="width: 64"]city1[/TD]
[TD="width: 64"]city2[/TD]
[TD="width: 64"]city3[/TD]
[TD="width: 64"]city4[/TD]
[TD="width: 64"]city5[/TD]
[TD="width: 64"]city6[/TD]
[TD="width: 64"]city7[/TD]
[TD="width: 64"]city1-PR[/TD]
[TD="width: 64"]city1-NP[/TD]
[TD="width: 64"]city1-AS[/TD]
[TD="width: 64"]city1-OL[/TD]
[TD="width: 64"]city2-PR[/TD]
[TD="width: 64"]city2-NP[/TD]
[TD="width: 64"]city2-AS[/TD]
[TD="width: 64"]city2-OL[/TD]
[TD="width: 64"]city3-PR[/TD]
[TD="width: 64"]city3-NP[/TD]
[TD="width: 64"]city3-AS[/TD]
[TD="width: 64"]city3-OL[/TD]
[TD="width: 64"]city4-PR[/TD]
[TD="width: 64"]city4-NP[/TD]
[TD="width: 64"]city4-AS[/TD]
[TD="width: 64"]city4-OL[/TD]
[TD="width: 64"]city5-PR[/TD]
[TD="width: 64"]city5-NP[/TD]
[TD="width: 64"]city5-AS[/TD]
[TD="width: 64"]city5-OL[/TD]
[TD="width: 64"]city6-PR[/TD]
[TD="width: 64"]city6-NP[/TD]
[TD="width: 64"]city6-AS[/TD]
[TD="width: 64"]city6-OL[/TD]
[TD="width: 64"]city7-PR[/TD]
[TD="width: 64"]city7-NP[/TD]
[TD="width: 64"]city7-AS[/TD]
[TD="width: 64"]city7-OL[/TD]
[TD="align: right"]5[/TD]
[TD="colspan: 3"]South Baton Rouge, Louisiana [/TD]
[TD="align: right"]62[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]9[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]3[/TD]
[TD="colspan: 2"]Mountain View, CA[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]21[/TD]
[TD="align: right"]21[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
</tbody>
And how the final output would look:
[TABLE="width: 769"]
<colgroup><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Company[/TD]
[TD]CITY[/TD]
[TD]PR[/TD]
[TD]NP[/TD]
[TD]AS[/TD]
[TD]OL[/TD]
[/TR]
[TR]
[TD]company1[/TD]
[TD]Baton Rouge, Louisiana[/TD]
[TD="align: right"]62[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]36[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD]company1[/TD]
[TD]New Orleans, Louisiana[/TD]
[TD="align: right"]17[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]15[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]company1[/TD]
[TD]Shreveport, Louisiana[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company1[/TD]
[TD]Lake Charles, Louisiana[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company1[/TD]
[TD]South Baton Rouge, Louisiana [/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company2[/TD]
[TD]Chicago, IL[/TD]
[TD="align: right"]39[/TD]
[TD="align: right"]21[/TD]
[TD="align: right"]21[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]company2[/TD]
[TD]Durham, NC[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company2[/TD]
[TD]Mountain View, CA[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company3[/TD]
[TD]Miami, Florida[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]13[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]company3[/TD]
[TD]Tampa, Florida[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company3[/TD]
[TD]Fort Lauderdale, Florida[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company3[/TD]
[TD]Orlando, Florida[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company3[/TD]
[TD]Jacksonville, Florida[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]company3[/TD]
[TD]Kingston, Jamaica[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]company3[/TD]
[TD]Nassau, The Bahamas[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
</tbody>[/TABLE]
I need to insert blank rows based on #of offices and copy/paste each city data per row. what would be the best/easiest way to do this? Thanks in advance for your help!