MrPowerQuery
New Member
- Joined
- Aug 7, 2018
- Messages
- 11
Hello there everyone,
i have a table that looks like this:
[TABLE="width: 457"]
<tbody>[TR]
[TD]CUSTOMER[/TD]
[TD]CUSTOMSUP[/TD]
[TD]Art.No.[/TD]
[TD]PAGE[/TD]
[/TR]
[TR]
[TD]Kunde A[/TD]
[TD]Ansprechpartner A[/TD]
[TD="align: right"]1000001[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Kunde A[/TD]
[TD]Ansprechpartner A[/TD]
[TD="align: right"]1000001[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Kunde A[/TD]
[TD]Ansprechpartner A[/TD]
[TD="align: right"]1000001[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]Kunde B[/TD]
[TD]Ansprechpartner B[/TD]
[TD="align: right"]1000002[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]Kunde B[/TD]
[TD]Ansprechpartner B[/TD]
[TD="align: right"]1000002[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]Kunde B[/TD]
[TD]Ansprechpartner B[/TD]
[TD="align: right"]1000002[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]Kunde B[/TD]
[TD]Ansprechpartner B[/TD]
[TD="align: right"]1000002[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]Kunde B[/TD]
[TD]Ansprechpartner B[/TD]
[TD="align: right"]1000002[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]Kunde B[/TD]
[TD]Ansprechpartner B[/TD]
[TD="align: right"]1000002[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD]Kunde c[/TD]
[TD]Ansprechpartner c[/TD]
[TD="align: right"]1000003[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]Kunde c[/TD]
[TD]Ansprechpartner c[/TD]
[TD="align: right"]1000003[/TD]
[TD="align: right"]11[/TD]
[/TR]
[TR]
[TD]Kunde c[/TD]
[TD]Ansprechpartner c[/TD]
[TD="align: right"]1000003[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD]Kunde D[/TD]
[TD]Ansprechpartner D[/TD]
[TD="align: right"]1000004[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD]Kunde D[/TD]
[TD]Ansprechpartner D[/TD]
[TD="align: right"]1000004[/TD]
[TD="align: right"]14[/TD]
[/TR]
[TR]
[TD]Kunde D[/TD]
[TD]Ansprechpartner D[/TD]
[TD="align: right"]1000004[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]Kunde D[/TD]
[TD]Ansprechpartner D[/TD]
[TD="align: right"]1000004[/TD]
[TD="align: right"]16[/TD]
[/TR]
</tbody>[/TABLE]
The task is to write a formula or vba makro that does the following trick:
If the value in column "Art.No" changes put the value of the column "PAGE" into a other cell seperated by a comma.
Like in this case "3, 9, 12".
I tried this with the formula =IF(C2=C3;"";D2) but i dont know how to put these results in one cell seperated by commas....
Iam very sure some of u guys know how to solve my problem.
Thanks in Advance for helping me out here.
Ben
i have a table that looks like this:
[TABLE="width: 457"]
<tbody>[TR]
[TD]CUSTOMER[/TD]
[TD]CUSTOMSUP[/TD]
[TD]Art.No.[/TD]
[TD]PAGE[/TD]
[/TR]
[TR]
[TD]Kunde A[/TD]
[TD]Ansprechpartner A[/TD]
[TD="align: right"]1000001[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]Kunde A[/TD]
[TD]Ansprechpartner A[/TD]
[TD="align: right"]1000001[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]Kunde A[/TD]
[TD]Ansprechpartner A[/TD]
[TD="align: right"]1000001[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]Kunde B[/TD]
[TD]Ansprechpartner B[/TD]
[TD="align: right"]1000002[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]Kunde B[/TD]
[TD]Ansprechpartner B[/TD]
[TD="align: right"]1000002[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]Kunde B[/TD]
[TD]Ansprechpartner B[/TD]
[TD="align: right"]1000002[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]Kunde B[/TD]
[TD]Ansprechpartner B[/TD]
[TD="align: right"]1000002[/TD]
[TD="align: right"]7[/TD]
[/TR]
[TR]
[TD]Kunde B[/TD]
[TD]Ansprechpartner B[/TD]
[TD="align: right"]1000002[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]Kunde B[/TD]
[TD]Ansprechpartner B[/TD]
[TD="align: right"]1000002[/TD]
[TD="align: right"]9[/TD]
[/TR]
[TR]
[TD]Kunde c[/TD]
[TD]Ansprechpartner c[/TD]
[TD="align: right"]1000003[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]Kunde c[/TD]
[TD]Ansprechpartner c[/TD]
[TD="align: right"]1000003[/TD]
[TD="align: right"]11[/TD]
[/TR]
[TR]
[TD]Kunde c[/TD]
[TD]Ansprechpartner c[/TD]
[TD="align: right"]1000003[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD]Kunde D[/TD]
[TD]Ansprechpartner D[/TD]
[TD="align: right"]1000004[/TD]
[TD="align: right"]13[/TD]
[/TR]
[TR]
[TD]Kunde D[/TD]
[TD]Ansprechpartner D[/TD]
[TD="align: right"]1000004[/TD]
[TD="align: right"]14[/TD]
[/TR]
[TR]
[TD]Kunde D[/TD]
[TD]Ansprechpartner D[/TD]
[TD="align: right"]1000004[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]Kunde D[/TD]
[TD]Ansprechpartner D[/TD]
[TD="align: right"]1000004[/TD]
[TD="align: right"]16[/TD]
[/TR]
</tbody>[/TABLE]
The task is to write a formula or vba makro that does the following trick:
If the value in column "Art.No" changes put the value of the column "PAGE" into a other cell seperated by a comma.
Like in this case "3, 9, 12".
I tried this with the formula =IF(C2=C3;"";D2) but i dont know how to put these results in one cell seperated by commas....
Iam very sure some of u guys know how to solve my problem.
Thanks in Advance for helping me out here.
Ben