07.06.2019 Views

Le Guide Complet - Excel 2010-Fonctions et formules - MicroApp

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

…<br />

End If<br />

Syntaxe 4 :<br />

If expression1 Then<br />

Instruction<br />

Instruction<br />

…<br />

ElseIf expression1 Then<br />

Instruction<br />

Instruction<br />

…<br />

Else<br />

Instruction<br />

Instruction<br />

…<br />

End If<br />

Exemple :<br />

If Prix>1000 Then<br />

Remise=0,1<br />

ElseIf Prix>500 then<br />

Remise=0.05<br />

Else<br />

Remise=0<br />

End If<br />

Select Case… End Select<br />

Exécute un des blocs d’instructions indiqués, selon la valeur d’une<br />

expression.<br />

Syntaxe 1 :<br />

Select Case expression<br />

Case valeur1<br />

Instruction<br />

Instruction<br />

…<br />

Case valeur2<br />

Instruction<br />

276 13. Créer des fonctions personnalisées

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!