Moderatori: Anthony47, Flash30005
Sub myReport()
Dim myMatch, sDate As Date, I As Long, dSh As Worksheet, rSh As Worksheet, dRange As Range
'
Set dSh = Sheets("DATE") '<<< Il foglio con le date
Set rSh = Sheets("ELENCO FILTRATO") '<<< Il foglio del report
rSh.Select
sDate = rSh.Range("C1").Value
Set dRange = Application.Intersect(dSh.UsedRange, dSh.Range("A:A"))
For I = 5 To Cells(Rows.Count, 1).End(xlUp).Row
myMatch = Application.Match(Cells(I, 1), dRange, 0)
If Not IsError(myMatch) Then
If Application.WorksheetFunction.CountIf(dSh.Rows(myMatch), sDate) > 0 Then
dSh.Range(dSh.Cells(myMatch, 2), dSh.Cells(myMatch, Columns.Count).End(xlToLeft)).Copy Cells(I, 2)
End If
End If
Next I
End Sub
=Conta.Se(B2:U2;'ELENCO FILTRATO'!$C$1)
=CONTA.SE(C2:IV2;'ELENCO FILTRATO'!$C$1)
Torna a Applicazioni Office Windows
Inserire dati filtrati da 2 file ad un terzo file Autore: Ricky0185 |
Forum: Applicazioni Office Windows Risposte: 14 |
Inserire add.in nella barra di avvio veloce in excel 2003 Autore: Ricky0185 |
Forum: Applicazioni Office Windows Risposte: 4 |
Excel: problema con date se devo unirle a testi Autore: valle1975 |
Forum: Applicazioni Office Windows Risposte: 5 |
Visitano il forum: Nessuno e 23 ospiti