Bonjour à tous,
Juste pour le défi une formule plus modulable,
=SI($A14<CNUM(DROITE($A$3;NBCAR($A$3)-NBCAR(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE($A$3;0;"");1;"");2;"");3;"");4;"");5;"");6;"");7;"");8;"");9;""))));B3;CNUM(5&RECHERCHEV(MAX(SI(CNUM(DROITE($A$4:$B$9;NBCAR($A$4:$B$9)-NBCAR(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE($A$4:$B$9;0;"");1;"");2;"");3;"");4;"");5;"");6;"");7;"");8;"");9;""))))<$A14;CNUM(DROITE($A$4:$B$9;NBCAR($A$4:$B$9)-NBCAR(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE($A$4:$B$9;0;"");1;"");2;"");3;"");4;"");5;"");6;"");7;"");8;"");9;""))))));CNUM(DROITE($A$4:$B$9;NBCAR($A$4:$B$9)-NBCAR(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE(SUBSTITUE($A$4:$B$9;0;"");1;"");2;"");3;"");4;"");5;"");6;"");7;"");8;"");9;""))));2)))
A coller en B14 puis validation matricielle ctrl+maj+entrée
Malheureusement il y a une coquille que je n'arrive pas à résoudre, la formule tronque le premier chiffre du prix ! Donc je le rajoute manuellement dans la formule:
...CNUM(5&RECHE....
Donc si les prix ne sont plus compris entre 500 et 600€ il y auras une correction à faire dans la formule..
Je met au défi l'un d'entre vous de résoudre ce petit problème hehe !
A+