SOLVED

Fonction si.multiple ou si.conditions dans une liste

%3CLINGO-SUB%20id%3D%22lingo-sub-2359009%22%20slang%3D%22fr-FR%22%3EFunction%20if%2C%20multiple%20or%20if%2C%20conditions%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2359009%22%20slang%3D%22fr-FR%22%3E%3CP%3EHello%20community%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20new%20to%20Excel%20and%20I%20try%20to%20create%20a%20formula%20to%20look%20for%20a%20value%20in%20a%20list%2C%20and%20then%2C%20if%20it%20is%20there%2C%20to%20give%20a%20result.%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20the%20document%2C%20if%20A1%20is%20in%20the%20F1%3AJ1%20data%2C%20I%20want%20the%20result%20to%20be%20E1%3C%2FP%3E%3CP%3EIf%20A1%20is%20in%20the%20F2%3AJ2%20data%2C%20I%20want%20the%20result%20to%20be%20E2%2C%20and%20so%20on.%3C%2FP%3E%3CP%3ECan%20you%20help%20me%3F%26nbsp%3B%3C%2FP%3E%3CP%3EI've%20been%20experimenting%20with%20so%2C%20multiple%20and%20if%2C%20conditions%2C%20with%20no%20conclusive%20results.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20working%20on%20Windows%2010%2C%20an%20Excel%202104%20version%20of%20Microsoft%20365.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20very%20much!%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2359009%22%20slang%3D%22fr-FR%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2359020%22%20slang%3D%22en-US%22%3ERe%3A%20Fonction%20si.multiple%20ou%20si.conditions%20dans%20une%20liste%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2359020%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1055129%22%20target%3D%22_blank%22%3E%40Roger_Baumann%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECe%20serait%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DINDEX(E1%3AE4%2CSOMMEPROD((A1%3DF1%3AJ4)*LIGNE(F1%3AJ4)))%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Eou%20si%20vous%20utilisez%20virgule%20comme%20s%C3%A9parateur%20d%C3%A9cimal%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3DINDEX(E1%3AE4%3BSOMMEPROD((A1%3DF1%3AJ4)*LIGNE(F1%3AJ4)))%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2359834%22%20slang%3D%22fr-FR%22%3ERe%3A%20Function%20if.multiple%20or%20if%2C%20conditions%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2359834%22%20slang%3D%22fr-FR%22%3EThank%20you%20very%20much%20Hans%20Vogelaar%2C%20it's%20great%20!!!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2361036%22%20slang%3D%22fr-FR%22%3ERe%3A%20Function%20if.multiple%20or%20if%2C%20conditions%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2361036%22%20slang%3D%22fr-FR%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3EVogelaar%20%40Hans%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIt's%20great%2C%20thank%20you%20very%20much!%26nbsp%3B%3C%2FP%3E%3CP%3EI%20extended%20the%20picture%20and%20managed%20to%20adapt%20the%20formula.%20The%20only%20thing%20that%20is%20annoying%20is%20that%20when%20the%20value%20is%200%2C%20the%20result%20is%20E.%20Is%20there%20a%20way%20to%20make%20the%20field%20empty%20when%20the%20value%20is%200%3F%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20find%20the%20table%20on%20sheet%202%2C%3C%2FP%3E%3CP%3EThank%20you%20again%20in%20advance%2C%3C%2FP%3E%3CP%3ERoger%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2361074%22%20slang%3D%22en-US%22%3ERe%3A%20Fonction%20si.multiple%20ou%20si.conditions%20dans%20une%20liste%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2361074%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1055129%22%20target%3D%22_blank%22%3E%40Roger_Baumann%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EVoir%20la%20version%20ci-jointe.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2361112%22%20slang%3D%22fr-FR%22%3ERe%3A%20Function%20if.multiple%20or%20if%2C%20conditions%20in%20a%20list%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2361112%22%20slang%3D%22fr-FR%22%3EWow%2C%20beautiful!%20You're%20a%20genius!%3CBR%20%2F%3EThank%20you%20so%20much!%3C%2FLINGO-BODY%3E
New Contributor

Bonjour la communauté, 

 

Je suis novice avec Excel et je tente de créer une formule pour chercher une valeur dans une liste, puis, si elle s'y trouve, de donner un résultat. 

Dans le document, si A1 se trouve dans les données F1:J1, je veux que le résultat soit E1

Si A1 se trouve dans les données F2:J2, je veux que le résultat soit E2, et ainsi de suite.

Pouvez-vous m'aider ? 

J'ai fait des essais avec si.multiple et si.conditions, sans résultat probant.

 

Je travaille sur Windows 10, version d'Excel 2104 de Microsoft 365.

 

Merci beaucoup ! 

5 Replies
best response confirmed by Roger_Baumann (New Contributor)
Solution

@Roger_Baumann 

Ce serait

 

=INDEX(E1:E4,SOMMEPROD((A1=F1:J4)*LIGNE(F1:J4)))

 

ou si vous utilisez virgule comme séparateur décimal:

 

=INDEX(E1:E4;SOMMEPROD((A1=F1:J4)*LIGNE(F1:J4)))

Merci beaucoup Hans Vogelaar, c'est génial !!!

@Hans Vogelaar 

C'est génial, merci beaucoup ! 

J'ai étendu le tableau et j'ai réussi à adapter la formule. La seule chose qui est gênante, c'est que quand la valeur est 0, le résultat est E. Est-ce qu'il y a moyen de faire en sorte que le champ soit vide lorsque la valeur est 0 ? 

Vous trouvez le tableau sur la feuille 2, 

Encore merci en avance, 

Roger

@Roger_Baumann 

Voir la version ci-jointe.

Wow, magnifique ! Vous êtes un génie !
Mille merci !