Progenix Oj101
Dealer
Hey guys, I need some assistance. Let me give you an idea of what I have, I think an example will be the easiest way to explain it:
Document 1
[table="width: 500, class: grid"]
[tr]
[td][/td]
[td]A[/td]
[td]B[/td]
[td]C[/td]
[td]D[/td]
[/tr]
[tr]
[td]1[/td]
[td]MD101[/td]
[td]219[/td]
[td]Description [MD101][/td]
[td]10500[/td]
[/tr]
[tr]
[td]2[/td]
[td]MD233[/td]
[td]449[/td]
[td]Description [MD233][/td]
[td]27.5[/td]
[/tr]
[tr]
[td]3[/td]
[td]TGD-4[/td]
[td]199[/td]
[td]Description [TGD-4][/td]
[td]160[/td]
[/tr]
[tr]
[td]4[/td]
[td]DD-55B[/td]
[td]999[/td]
[td]Description [DD-55B][/td]
[td]49[/td]
[/tr]
[/table]
Document 2
[table="width: 500, class: grid"]
[tr]
[td][/td]
[td]A[/td]
[td]B[/td]
[/tr]
[tr]
[td]1[/td]
[td]MD233[/td]
[td]489[/td]
[/tr]
[tr]
[td]2[/td]
[td]TDG-4[/td]
[td]199[/td]
[/tr]
[/table]
Document 3
[table="width: 500, class: grid"]
[tr]
[td][/td]
[td]A[/td]
[td]B[/td]
[/tr]
[tr]
[td]1[/td]
[td]MD101[/td]
[td]209[/td]
[/tr]
[tr]
[td]2[/td]
[td]DQS445BK[/td]
[td]549[/td]
[/tr]
[tr]
[td]3[/td]
[td]CCB1442EZ[/td]
[td]399[/td]
[/tr]
[/table]
What I need to happen is to be able to replace column B in Document 1 with column B in Documents 2, 3, etc where column A matches. Eg in Document 2, Cell A1 and A2 match Document 1's A2 and A3, and Document 3's A1 matches Document 1's A1.
Can anyone assist?
Document 1
[table="width: 500, class: grid"]
[tr]
[td][/td]
[td]A[/td]
[td]B[/td]
[td]C[/td]
[td]D[/td]
[/tr]
[tr]
[td]1[/td]
[td]MD101[/td]
[td]219[/td]
[td]Description [MD101][/td]
[td]10500[/td]
[/tr]
[tr]
[td]2[/td]
[td]MD233[/td]
[td]449[/td]
[td]Description [MD233][/td]
[td]27.5[/td]
[/tr]
[tr]
[td]3[/td]
[td]TGD-4[/td]
[td]199[/td]
[td]Description [TGD-4][/td]
[td]160[/td]
[/tr]
[tr]
[td]4[/td]
[td]DD-55B[/td]
[td]999[/td]
[td]Description [DD-55B][/td]
[td]49[/td]
[/tr]
[/table]
Document 2
[table="width: 500, class: grid"]
[tr]
[td][/td]
[td]A[/td]
[td]B[/td]
[/tr]
[tr]
[td]1[/td]
[td]MD233[/td]
[td]489[/td]
[/tr]
[tr]
[td]2[/td]
[td]TDG-4[/td]
[td]199[/td]
[/tr]
[/table]
Document 3
[table="width: 500, class: grid"]
[tr]
[td][/td]
[td]A[/td]
[td]B[/td]
[/tr]
[tr]
[td]1[/td]
[td]MD101[/td]
[td]209[/td]
[/tr]
[tr]
[td]2[/td]
[td]DQS445BK[/td]
[td]549[/td]
[/tr]
[tr]
[td]3[/td]
[td]CCB1442EZ[/td]
[td]399[/td]
[/tr]
[/table]
What I need to happen is to be able to replace column B in Document 1 with column B in Documents 2, 3, etc where column A matches. Eg in Document 2, Cell A1 and A2 match Document 1's A2 and A3, and Document 3's A1 matches Document 1's A1.
- Document 1, Cell B1 must therefore be replaced by Document 3, Cell B1
- Document 1, Cell B2 must therefore be replaced by Document 2, Cell B1
- Document 1, Cell B3 must therefore be replaced by Document 2, Cell B2
- Document 1, Cell B4 doesn't have matches in any other documents and must either not be changed, or preferably set to 0
- Document 3, Cells A2 and A3 don't have matches in Document 1's column A and must be ignored
- Document 1, Columns A, C and D must not be changed EVER
Can anyone assist?