Fiveshorter
New Member
- Joined
- Jul 14, 2017
- Messages
- 18
Hi All,
I get a weekly report from our systems in form as a excel sheet. However the data is not structured in the way we would like it presented. Every week I open up the report (usually contains at least 500 rows), on every row I transpose the data and insert new suppliers for every price ( I will show this below )
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]P1[/TD]
[TD]P2[/TD]
[TD]P3[/TD]
[/TR]
[TR]
[TD]HSK[/TD]
[TD]20[/TD]
[TD]40[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]YUI[/TD]
[TD]00[/TD]
[TD]21[/TD]
[TD]28[/TD]
[/TR]
[TR]
[TD]DK[/TD]
[TD]28[/TD]
[TD]90[/TD]
[TD]20[/TD]
[/TR]
</tbody>[/TABLE]
This would be the layout of my report that I get, sometimes I will have less then 3 prices for a particular item (could only have P1 and P2. When I receive this report I then convert to this :
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]P[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HSK[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HSK[/TD]
[TD]40[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HSK[/TD]
[TD]50[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YUI[/TD]
[TD]00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YUI[/TD]
[TD]21[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YUI[/TD]
[TD]28[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DK[/TD]
[TD]28[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DK[/TD]
[TD]90[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DK[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
After this, I insert particular supplier for every price ( note this is the same for every record on the sheet at the time of the report being run ) i.e for P1 I would be told the supplier code is X so for every P1 price the supplier Is X for all items.
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]P[/TD]
[TD]S[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HSK[/TD]
[TD]20[/TD]
[TD]Y3A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HSK[/TD]
[TD]40[/TD]
[TD]ERT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HSK[/TD]
[TD]50[/TD]
[TD]T[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YUI[/TD]
[TD]00[/TD]
[TD]Y3A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YUI[/TD]
[TD]21[/TD]
[TD]ERT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YUI[/TD]
[TD]28[/TD]
[TD]T[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DK[/TD]
[TD]28[/TD]
[TD]Y3A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DK[/TD]
[TD]90[/TD]
[TD]ERT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DK[/TD]
[TD]20[/TD]
[TD]T[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
If anyone can help in order to build a macro that I can simply run, enter in how many pricings (I,e P1,P2, P3 = 3)
what each pricing belongs to what supplier (p1 = y3a, p2 = 21, p3 = 20) and transpose the data in the way presented It would be greatly appreciated. Just a quick note, I don't need header names, the bulk of my time does be taking up by transposing the data and copy and pasting the same information for every item.
If there is any questions feel free to ask, thanks!
I get a weekly report from our systems in form as a excel sheet. However the data is not structured in the way we would like it presented. Every week I open up the report (usually contains at least 500 rows), on every row I transpose the data and insert new suppliers for every price ( I will show this below )
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]P1[/TD]
[TD]P2[/TD]
[TD]P3[/TD]
[/TR]
[TR]
[TD]HSK[/TD]
[TD]20[/TD]
[TD]40[/TD]
[TD]50[/TD]
[/TR]
[TR]
[TD]YUI[/TD]
[TD]00[/TD]
[TD]21[/TD]
[TD]28[/TD]
[/TR]
[TR]
[TD]DK[/TD]
[TD]28[/TD]
[TD]90[/TD]
[TD]20[/TD]
[/TR]
</tbody>[/TABLE]
This would be the layout of my report that I get, sometimes I will have less then 3 prices for a particular item (could only have P1 and P2. When I receive this report I then convert to this :
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]P[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HSK[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HSK[/TD]
[TD]40[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HSK[/TD]
[TD]50[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YUI[/TD]
[TD]00[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YUI[/TD]
[TD]21[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YUI[/TD]
[TD]28[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DK[/TD]
[TD]28[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DK[/TD]
[TD]90[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DK[/TD]
[TD]20[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
After this, I insert particular supplier for every price ( note this is the same for every record on the sheet at the time of the report being run ) i.e for P1 I would be told the supplier code is X so for every P1 price the supplier Is X for all items.
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID[/TD]
[TD]P[/TD]
[TD]S[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HSK[/TD]
[TD]20[/TD]
[TD]Y3A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HSK[/TD]
[TD]40[/TD]
[TD]ERT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]HSK[/TD]
[TD]50[/TD]
[TD]T[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YUI[/TD]
[TD]00[/TD]
[TD]Y3A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YUI[/TD]
[TD]21[/TD]
[TD]ERT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]YUI[/TD]
[TD]28[/TD]
[TD]T[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DK[/TD]
[TD]28[/TD]
[TD]Y3A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DK[/TD]
[TD]90[/TD]
[TD]ERT[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DK[/TD]
[TD]20[/TD]
[TD]T[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
If anyone can help in order to build a macro that I can simply run, enter in how many pricings (I,e P1,P2, P3 = 3)
what each pricing belongs to what supplier (p1 = y3a, p2 = 21, p3 = 20) and transpose the data in the way presented It would be greatly appreciated. Just a quick note, I don't need header names, the bulk of my time does be taking up by transposing the data and copy and pasting the same information for every item.
If there is any questions feel free to ask, thanks!