Triage par valeur

tofoo

New Member
Joined
Apr 6, 2020
Messages
4
Office Version
  1. 2007
Platform
  1. Windows
Hello,

J'ai une colonne "Age" et je voudrais creer une fonction pour creer des categories:
- Valeur de 0 a 7 retournerais "0<7"
- Valeur 8 a 30 retournerais "8<30"
- Valeur superieur a 30 retournerais ">30"

Est ce qu'un if peut suffire?
Merci!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Bienvenue!

Peut etre:

Book1
AB
1AgeRange
230-7
3148-30
455>30
Sheet9
Cell Formulas
RangeFormula
B2:B4B2=LOOKUP(A2,{0,8,31},{"0-7","8-30",">30"})
 
Upvote 0
Hello Eric, Je ne pensais pas qu' un vlookup pouvait etre utilise de cette facon. J'ai une version anglaise et m'indique une erreur.
Y a t il une correspondance Fr->UK dans excel?
 
Upvote 0
Hello Eric, Merci pour ton aide! Je ne pensais pas qu' un vlookup pouvait etre utilise de cette facon. J'ai une version anglaise et m'indique une erreur.
Y a t il une correspondance Fr->UK dans excel?
 
Upvote 0
Welcome to the MrExcel board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.
Be sure to follow & read the link at the end of the rule too!


Cross posted at: Triage par valeur
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Il se peut que votre version d'Excel nécessite des points-virgules au lieu de virgules. Essayer:

=LOOKUP(A2;{0,8,31};{"0-7","8-30",">30"})
 
Upvote 0
Il se peut que votre version d'Excel nécessite des points-virgules au lieu de virgules. Essayer:

=LOOKUP(A2;{0,8,31};{"0-7","8-30",">30"})
Effectivement! Merci Eric, problem solved :)
 
Upvote 0

Forum statistics

Threads
1,214,787
Messages
6,121,569
Members
449,038
Latest member
Guest1337

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top