Excel - Power Query - Power Pivot - VBA

Décisions

If Then

Sur une seule ligne :

If condition Then instruction:instruction

Sur plusieurs lignes (préférable) :

If condition Then
  instructions
ElseIf condition Then
  instructions ...
ElseIf condition Then
  instructions ...
Else
  instructions
End If

Select Case

Select Case testexpression
  Case expressionlist
     instructions
  Case Else
     instructions
End Select

Expressionlist peut avoir comme valeur :

1, 2, 10
1 To 5, 10 To 20
Is > 10