J'ai dans la colonne A des produits qui se repetent tout au lng de la
colonne
Dans la colonne B des valeurs.
J'aimerias avoir dans la colonne D tout les produits uniques de la
colonne A (Chose faite) et devant chaque produit on ecrira ses valeurs
trouv=E9 dans la colonne B.
[E1:M10].ClearContents [A1:A1000].AdvancedFilter Action:=xlFilterCopy, CopyToRange:=[E1], Unique:=True For Each c In Range([A2], [A65000].End(xlUp)) [E:E].Find(c).Select Cells(ActiveCell.Row, 255).End(xlToLeft).Offset(0, 1) = c.Offset(0, 1) Next c
http://cjoint.com/?fDiz0wwjDa
JB
On 29 mai, 05:54, Apitos wrote:
Salut;
J'ai dans la colonne A des produits qui se repetent tout au lng de la colonne
Dans la colonne B des valeurs.
J'aimerias avoir dans la colonne D tout les produits uniques de la colonne A (Chose faite) et devant chaque produit on ecrira ses valeurs trouvé dans la colonne B.
D ------ E ------ F ------ G ------ H ----- I k12 --- 8 M10 -- 10 ----- 11 ----- 45 M88 -- 21 ----- 74
et ainsi de suite.
Merci.
Bonjour,
[E1:M10].ClearContents
[A1:A1000].AdvancedFilter Action:=xlFilterCopy, CopyToRange:=[E1],
Unique:=True
For Each c In Range([A2], [A65000].End(xlUp))
[E:E].Find(c).Select
Cells(ActiveCell.Row, 255).End(xlToLeft).Offset(0, 1) =
c.Offset(0, 1)
Next c
http://cjoint.com/?fDiz0wwjDa
JB
On 29 mai, 05:54, Apitos <api...@gmail.com> wrote:
Salut;
J'ai dans la colonne A des produits qui se repetent tout au lng de la
colonne
Dans la colonne B des valeurs.
J'aimerias avoir dans la colonne D tout les produits uniques de la
colonne A (Chose faite) et devant chaque produit on ecrira ses valeurs
trouvé dans la colonne B.
[E1:M10].ClearContents [A1:A1000].AdvancedFilter Action:=xlFilterCopy, CopyToRange:=[E1], Unique:=True For Each c In Range([A2], [A65000].End(xlUp)) [E:E].Find(c).Select Cells(ActiveCell.Row, 255).End(xlToLeft).Offset(0, 1) = c.Offset(0, 1) Next c
http://cjoint.com/?fDiz0wwjDa
JB
On 29 mai, 05:54, Apitos wrote:
Salut;
J'ai dans la colonne A des produits qui se repetent tout au lng de la colonne
Dans la colonne B des valeurs.
J'aimerias avoir dans la colonne D tout les produits uniques de la colonne A (Chose faite) et devant chaque produit on ecrira ses valeurs trouvé dans la colonne B.
Si on veut écrire ce code dans un évenement Worksheet_Change.
Quel changement devrais-je apporté au code ?
Merci.
JB
http://cjoint.com/?fDoiAZBf11
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 1 Then [A1:A1000].AdvancedFilter Action:=xlFilterCopy, CopyToRange:=[E1], Unique:=True End If If Target.Column = 2 Then Application.EnableEvents = False Application.ScreenUpdating = False [F1:M10].ClearContents For Each c In Range([A2], [A65000].End(xlUp)) Set x = [E:E].Find(c) Cells(x.Row, 255).End(xlToLeft).Offset(0, 1) = c.Offset(0, 1) Next c Application.ScreenUpdating = True Application.EnableEvents = True End If End Sub
JB
On 29 mai, 13:28, Apitos wrote:
Merci JB.
Si on veut écrire ce code dans un évenement Worksheet_Change.
Quel changement devrais-je apporté au code ?
Merci.
http://cjoint.com/?fDoiAZBf11
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 1 Then
[A1:A1000].AdvancedFilter Action:=xlFilterCopy, CopyToRange:=[E1],
Unique:=True
End If
If Target.Column = 2 Then
Application.EnableEvents = False
Application.ScreenUpdating = False
[F1:M10].ClearContents
For Each c In Range([A2], [A65000].End(xlUp))
Set x = [E:E].Find(c)
Cells(x.Row, 255).End(xlToLeft).Offset(0, 1) = c.Offset(0, 1)
Next c
Application.ScreenUpdating = True
Application.EnableEvents = True
End If
End Sub
JB
On 29 mai, 13:28, Apitos <api...@gmail.com> wrote:
Merci JB.
Si on veut écrire ce code dans un évenement Worksheet_Change.
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 1 Then [A1:A1000].AdvancedFilter Action:=xlFilterCopy, CopyToRange:=[E1], Unique:=True End If If Target.Column = 2 Then Application.EnableEvents = False Application.ScreenUpdating = False [F1:M10].ClearContents For Each c In Range([A2], [A65000].End(xlUp)) Set x = [E:E].Find(c) Cells(x.Row, 255).End(xlToLeft).Offset(0, 1) = c.Offset(0, 1) Next c Application.ScreenUpdating = True Application.EnableEvents = True End If End Sub
JB
On 29 mai, 13:28, Apitos wrote:
Merci JB.
Si on veut écrire ce code dans un évenement Worksheet_Change.
Quel changement devrais-je apporté au code ?
Merci.
Apitos
On 29 mai, 14:08, JB wrote:
http://cjoint.com/?fDoiAZBf11
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 1 Then [A1:A1000].AdvancedFilter Action:=xlFilterCopy, CopyToRange:=[E1], Unique:=True End If If Target.Column = 2 Then Application.EnableEvents = False Application.ScreenUpdating = False [F1:M10].ClearContents For Each c In Range([A2], [A65000].End(xlUp)) Set x = [E:E].Find(c) Cells(x.Row, 255).End(xlToLeft).Offset(0, 1) = c.Offset(0, 1) Next c Application.ScreenUpdating = True Application.EnableEvents = True End If End Sub
JB
On 29 mai, 13:28, Apitos wrote:
Merci JB.
Si on veut écrire ce code dans un évenement Worksheet_Change.
Quel changement devrais-je apporté au code ?
Merci.- Masquer le texte des messages précédents -
- Afficher le texte des messages précédents -
Grand merci à toi JB.
On 29 mai, 14:08, JB <boisgont...@hotmail.com> wrote:
http://cjoint.com/?fDoiAZBf11
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 1 Then
[A1:A1000].AdvancedFilter Action:=xlFilterCopy, CopyToRange:=[E1],
Unique:=True
End If
If Target.Column = 2 Then
Application.EnableEvents = False
Application.ScreenUpdating = False
[F1:M10].ClearContents
For Each c In Range([A2], [A65000].End(xlUp))
Set x = [E:E].Find(c)
Cells(x.Row, 255).End(xlToLeft).Offset(0, 1) = c.Offset(0, 1)
Next c
Application.ScreenUpdating = True
Application.EnableEvents = True
End If
End Sub
JB
On 29 mai, 13:28, Apitos <api...@gmail.com> wrote:
Merci JB.
Si on veut écrire ce code dans un évenement Worksheet_Change.
Quel changement devrais-je apporté au code ?
Merci.- Masquer le texte des messages précédents -
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 1 Then [A1:A1000].AdvancedFilter Action:=xlFilterCopy, CopyToRange:=[E1], Unique:=True End If If Target.Column = 2 Then Application.EnableEvents = False Application.ScreenUpdating = False [F1:M10].ClearContents For Each c In Range([A2], [A65000].End(xlUp)) Set x = [E:E].Find(c) Cells(x.Row, 255).End(xlToLeft).Offset(0, 1) = c.Offset(0, 1) Next c Application.ScreenUpdating = True Application.EnableEvents = True End If End Sub
JB
On 29 mai, 13:28, Apitos wrote:
Merci JB.
Si on veut écrire ce code dans un évenement Worksheet_Change.
Quel changement devrais-je apporté au code ?
Merci.- Masquer le texte des messages précédents -
Comment faire pour éviter la répétition des valeurs dans la transformation ?
Par exemple si j'ai deux M88 = 10, dans le deuxieme tableau j'aimerais avoir une seule valeur M88 = 10.
Merci.
JB
http://cjoint.com/?gdvfrSrnJI
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 1 Then [A1:A1000].AdvancedFilter Action:=xlFilterCopy, CopyToRange:=[E1], Unique:=True End If If Target.Column = 2 Then Application.EnableEvents = False Application.ScreenUpdating = False [F1:M10].ClearContents For Each c In Range([A2], [A65000].End(xlUp)) Set x = [E:E].Find(c, MatchCase:úlse, LookAt:=xlWhole) Set y = Cells(x.Row, 6).Resize(1, 199).Find(c.Offset(0, 1).Value, LookAt:=xlWhole) If y Is Nothing Then Cells(x.Row, 255).End(xlToLeft).Offset(0, 1) = c.Offset(0, 1).Value End If Next c Application.ScreenUpdating = True Application.EnableEvents = True End If End Sub
JB
On 3 juin, 20:24, Apitos wrote:
Salut,
Comment faire pour éviter la répétition des valeurs dans la transformation ?
Par exemple si j'ai deux M88 = 10, dans le deuxieme tableau j'aimerais avoir une seule valeur M88 = 10.
Merci.
http://cjoint.com/?gdvfrSrnJI
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 1 Then
[A1:A1000].AdvancedFilter Action:=xlFilterCopy, CopyToRange:=[E1],
Unique:=True
End If
If Target.Column = 2 Then
Application.EnableEvents = False
Application.ScreenUpdating = False
[F1:M10].ClearContents
For Each c In Range([A2], [A65000].End(xlUp))
Set x = [E:E].Find(c, MatchCase:=False, LookAt:=xlWhole)
Set y = Cells(x.Row, 6).Resize(1, 199).Find(c.Offset(0,
1).Value, LookAt:=xlWhole)
If y Is Nothing Then
Cells(x.Row, 255).End(xlToLeft).Offset(0, 1) = c.Offset(0,
1).Value
End If
Next c
Application.ScreenUpdating = True
Application.EnableEvents = True
End If
End Sub
JB
On 3 juin, 20:24, Apitos <api...@gmail.com> wrote:
Salut,
Comment faire pour éviter la répétition des valeurs dans la
transformation ?
Par exemple si j'ai deux M88 = 10, dans le deuxieme tableau j'aimerais
avoir une seule valeur M88 = 10.
Private Sub Worksheet_Change(ByVal Target As Range) If Target.Column = 1 Then [A1:A1000].AdvancedFilter Action:=xlFilterCopy, CopyToRange:=[E1], Unique:=True End If If Target.Column = 2 Then Application.EnableEvents = False Application.ScreenUpdating = False [F1:M10].ClearContents For Each c In Range([A2], [A65000].End(xlUp)) Set x = [E:E].Find(c, MatchCase:úlse, LookAt:=xlWhole) Set y = Cells(x.Row, 6).Resize(1, 199).Find(c.Offset(0, 1).Value, LookAt:=xlWhole) If y Is Nothing Then Cells(x.Row, 255).End(xlToLeft).Offset(0, 1) = c.Offset(0, 1).Value End If Next c Application.ScreenUpdating = True Application.EnableEvents = True End If End Sub
JB
On 3 juin, 20:24, Apitos wrote:
Salut,
Comment faire pour éviter la répétition des valeurs dans la transformation ?
Par exemple si j'ai deux M88 = 10, dans le deuxieme tableau j'aimerais avoir une seule valeur M88 = 10.