Autres Formule

ALEA()

XLDnaute Occasionnel
Bonjour,

Je souhaiterais une formule (excel 2007) pour me renvoyer en ligne 1, les 4 valeurs ayant NB max dans les colonnes?

Je donne un exemple simple.

Bonne soirée
 

Pièces jointes

  • Classeur1.xlsx
    10.7 KB · Affichages: 17

soan

XLDnaute Barbatruc
Inactif
Bonjour ALEA(), WTF,

ton fichier en retour ; fais Ctrl e ➯ c'est fait ! :)

VB:
Sub Essai()
  Dim plg As Range, cel As Range, nlm&
  Dim col As Byte, k As Byte, dlg&, lig&, vx%
  nlm = Rows.Count: Application.ScreenUpdating = 0
  For col = 25 To 40 Step 5
    dlg = Cells(nlm, col).End(3).Row
    If dlg > 8 Then
      Set plg = Cells(9, col).Resize(dlg - 8)
      vx = WorksheetFunction.Max(plg)
      Set cel = plg.Find(vx, , -4163, 1, 1)
      k = col - 3
      Cells(1, k) = Cells(cel.Row, k)
    End If
  Next col
End Sub

soan
 

Pièces jointes

  • Exo ALEA().xlsm
    16.6 KB · Affichages: 3

Discussions similaires

Réponses
5
Affichages
360

Statistiques des forums

Discussions
312 322
Messages
2 087 280
Membres
103 507
dernier inscrit
tapis23