Manke
Gebruiker
- Lid geworden
- 15 dec 2006
- Berichten
- 115
Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
Privacywetgeving
Het is bij Helpmij.nl niet toegestaan om persoonsgegevens in een voorbeeld te plaatsen. Alle voorbeelden die persoonsgegevens bevatten zullen zonder opgaaf van reden verwijderd worden. In de vraag zal specifiek vermeld moeten worden dat het om fictieve namen gaat.
Sub tsh()
Dim Br
Dim i As Long, j As Long
Dim y As Long, p As Long
Dim It, Ix, Ih
Br = Cells(3, 1).CurrentRegion
y = 4 + Evaluate("sumproduct(1/countif(D4:D" & 2 + UBound(Br) & ",D4:D" & 2 + UBound(Br) & "))")
ReDim Ix(y)
Ih = Ix
With CreateObject("Scripting.Dictionary")
.Item(0) = Ih
Ih(0) = Br(1, 1)
Ih(1) = Br(1, 2)
Ih(2) = Br(1, 3)
For i = 2 To UBound(Br)
It = .Item(Br(i, 1))
If IsEmpty(It) Then
It = Ix
It(0) = Br(i, 1)
It(1) = Br(i, 2)
It(2) = Br(i, 3)
End If
If IsError(Application.Match(Br(i, 4), Ih, 0)) Then
Ih(3 + p) = Br(i, 4)
p = p + 1
End If
It(Application.Match(Br(i, 4), Ih, 0) - 1) = Br(i, 5)
.Item(Br(i, 1)) = It
Next
.Item(0) = Ih
Range("A20").Resize(.Count, y) = Application.Index(.Items, 0)
End With
End Sub
Sub M_snb()
With Cells(3, 1).CurrentRegion
sn = .Resize(, .Columns.Count + 3)
End With
For j = 2 To UBound(sn)
sn(j, InStr(" DMB", Left(sn(j, 4), 1))) = sn(j, 5)
If j > 2 And sn(j, 1) = sn(j - 1, 1) Then
If sn(j - 1, 6) <> "" Then sn(j, 6) = sn(j - 1, 6)
If sn(j - 1, 7) <> "" Then sn(j, 7) = sn(j - 1, 7)
If sn(j - 1, 8) <> "" Then sn(j, 8) = sn(j - 1, 8)
ElseIf j > 2 Then
c00 = c00 & "_" & j - 1
End If
Next
c00 = c00 & "_" & j - 1
st = Application.Transpose(Split(Mid(c00, 2), "_"))
Cells(20, 1).Resize(UBound(st), 6) = Application.Index(sn, st, Array(1, 2, 3, 6, 7, 8))
End Sub
Sub tsh()
Dim Br
Dim i As Long, j As Long
Dim y As Long, p As Long
Dim It, Ix, Ih
Br = Sheets("Blad1").Cells(1, 1).CurrentRegion
For i = 2 To UBound(Br)
If Br(i, 10) = "" Then
Br(i, 10) = "Geen relatie"
Sheets("Blad1").Cells(i, 10) = "Geen relatie"
End If
Next
y = 9 + Evaluate("sumproduct(1/countif(J2:J" & UBound(Br) & ",J2:J" & UBound(Br) & "))")
ReDim Ix(y)
Ih = Ix
With CreateObject("Scripting.Dictionary")
.Item(0) = Ih
For j = 0 To 8
Ih(j) = Br(1, j + 1)
Next
For i = 2 To UBound(Br)
It = .Item(Br(i, 1))
If IsEmpty(It) Then
It = Ix
For j = 0 To 8
It(j) = Br(i, j + 1)
Next
End If
If IsError(Application.Match(Br(i, 10), Ih, 0)) Then
Ih(9 + p) = Br(i, 10)
p = p + 1
End If
It(Application.Match(Br(i, 10), Ih, 0) - 1) = Br(i, 12)
.Item(Br(i, 1)) = It
Next
.Item(0) = Ih
Sheets("Blad2").Cells(1, 1).Resize(.Count, y) = Application.Index(.Items, 0)
End With
End Sub
let
Bron = Excel.CurrentWorkbook(){[Name="Tabel1"]}[Content],
#"Type gewijzigd" = Table.TransformColumnTypes(Bron,{{"Relatie.Dossiernummer", Int64.Type}, {"Relatie.Samengestelde naam", type text}, {"Relatie.Postadres", type text}, {"Relatie.Huisnummer postadres", Int64.Type}, {"Relatie.Toevoeging huisnummer postadres", type text}, {"Relatie.Postcode postadres", type text}, {"Relatie.Plaats postadres", type text}, {"Relatie.Tekenend accountant", Int64.Type}, {"Relatie.Relatiebeheerder", Int64.Type}, {"Connectie.Connectieomschrijving", type text}, {"Gekoppelde relatie.Dossiernummer", Int64.Type}, {"Gekoppelde relatie.Samengestelde naam", type text}, {"Gekoppelde relatie.Postadres", type text}, {"Gekoppelde relatie.Huisnummer postadres", Int64.Type}, {"Gekoppelde relatie.Toevoeging huisnummer postadres", type text}, {"Gekoppelde relatie.Postcode postadres", type text}, {"Gekoppelde relatie.Plaats postadres", type text}}),
#"Gefilterde rijen" = Table.SelectRows(#"Type gewijzigd", each [Connectie.Connectieomschrijving] <> null),
#"Gedraaide kolom" = Table.Pivot(#"Gefilterde rijen", List.Distinct(#"Gefilterde rijen"[Connectie.Connectieomschrijving]), "Connectie.Connectieomschrijving", "Gekoppelde relatie.Samengestelde naam")
in
#"Gedraaide kolom"
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.