Moderatori: Anthony47, Flash30005
=PICCOLO(SE($A$1:$IA$1=0;RIF.COLONNA($A1:$IA1);"");RIF.RIGA(A1))
=A3-A2-1
Sub conta()
Contan = 0
UC = Worksheets("Foglio1").Range("IV1").End(xlToLeft).Column
For CC = 1 To UC
If Cells(1, CC) <> 0 Then
Contan = Contan + 1
Else
UN = Worksheets("Foglio1").Range("IV10").End(xlToLeft).Column + 1
Cells(10, UN).Value = Contan
Contan = 0
End If
Next CC
If Contan <> 0 Then
UN = Worksheets("Foglio1").Range("IV10").End(xlToLeft).Column + 1
Cells(10, UN).Value = Contan
End If
End Sub
Sub ContaVal()
ContaN = 0
UC = Worksheets("Foglio1").Range("A1").End(xlToRight).Column
For CC = 1 To UC
If Cells(1, CC) <> 0 Then
ContaN = ContaN + 1
Else
UN = Worksheets("Foglio1").Range("IV1").End(xlToLeft).Column + 1
If UN - UC < 3 Then UN = UC + 3
Cells(1, UN).Value = ContaN
ContaN = 0
End If
Next CC
If ContaN <> 0 Then
UN = Worksheets("Foglio1").Range("IV1").End(xlToLeft).Column + 1
Cells(1, UN).Value = ContaN
End If
End Sub
=PICCOLO(SE($A$1:$U$1=0;RIF.COLONNA($A1:$U1);"");RIF.RIGA(A1))
=W2-W1
Cells(1, CC)
Cells(RR, CC)
Sub ContaVal()
Application.Calculation = xlManual
UR = Worksheets("Foglio1").Range("A" & Rows.Count).End(xlUp).Row
For RR = 1 To UR
ContaN = 0
UC = Worksheets("Foglio1").Cells(RR, 1).End(xlToRight).Column
For CC = 1 To UC
If Cells(RR, CC) <> 0 Then
ContaN = ContaN + 1
Else
UN = Worksheets("Foglio1").Cells(RR, 255).End(xlToLeft).Column + 1
If UN - UC < 3 Then UN = UC + 3
Cells(RR, UN).Value = ContaN
ContaN = 0
End If
Next CC
If ContaN <> 0 Then
UN = Worksheets("Foglio1").Cells(RR, 255).End(xlToLeft).Column + 1
Cells(RR, UN).Value = ContaN
End If
Next RR
Application.Calculation = xlCalculationAutomatic
End Sub
Private Sub CalcolaAreaECanc()
righe = Range("W1").CurrentRegion.Rows.Count
col = Range("W1").CurrentRegion.Columns.Count
Range(Cells(1, 23), Cells(righe, 23 + col)).ClearContents
End Sub
Sub ContaVal()
Application.Calculation = xlManual '<<<< riga esistente
Call CalcolaAreaECanc '<<<<<<<<< riga aggiunta che richiama la macro di cancellazione area
UR = Worksheets("Foglio1").Range("A" & Rows.Count).End(xlUp).Row '<<<< riga esistente
giulia76 ha scritto:che bravo che sei flash! ti mando un bacio!
Tutte a te capitano...che bravo che sei flash! ti mando un bacio!
Torna a Applicazioni Office Windows
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 |
confrontare e evidenziare 2 fogli excel Autore: niccia |
Forum: Applicazioni Office Windows Risposte: 7 |
Visitano il forum: Nessuno e 49 ospiti