Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

Calcul d'année

4 réponses
Avatar
Clochard
Salut,

Que dois-je ajouter à cette formule pour obtenir 40 ans et non 40 tout court?

=DATEDIF(A1;MAINTENANT();"Y")
--
Clochard
Aimerais bien savoir....
Merci!

4 réponses

Avatar
Clochard
Merci Jacky
--
Clochard
Merci!



Bonsoir,

ÚTEDIF(A1;MAINTENANT();"Y")&" ans"

OU
format de cellule
Standard" ans"

Avantage du second = permet le calcul , contrairement au premier qui est du
texte

--
Salutations
JJ


"Clochard" a écrit dans le message de news:

Salut,

Que dois-je ajouter à cette formule pour obtenir 40 ans et non 40 tout
court?

ÚTEDIF(A1;MAINTENANT();"Y")
--
Clochard
Aimerais bien savoir....
Merci!







Avatar
Jacky
Re...
Il y a aussi celle-ci, plus complète

=SUPPRESPACE(SI(AUJOURDHUI()-A1;TEXTE(DATEDIF(A1;AUJOURDHUI();"y");"[>1]0""
ans "";[>]""1 an "";")&TEXTE(DATEDIF(A1;AUJOURDHUI();"ym");"[>] 0"" mois
"";")&TEXTE(DATEDIF(A1;AUJOURDHUI();"md");"[>1]0"" jours"";[>]""1
jour"";");"0jour"))

--
Salutations
JJ


"Clochard" a écrit dans le message de news:

Merci Jacky
--
Clochard
Merci!



Bonsoir,

ÚTEDIF(A1;MAINTENANT();"Y")&" ans"

OU
format de cellule
Standard" ans"

Avantage du second = permet le calcul , contrairement au premier qui est
du
texte

--
Salutations
JJ


"Clochard" a écrit dans le message de news:

Salut,

Que dois-je ajouter à cette formule pour obtenir 40 ans et non 40 tout
court?

ÚTEDIF(A1;MAINTENANT();"Y")
--
Clochard
Aimerais bien savoir....
Merci!









Avatar
Clochard
Merci Jacky,

J'l'avais déjà celle-là... j'voulais essayer de simplifier...

--
Clochard
Aimerais bien savoir....
Merci!



Re...
Il y a aussi celle-ci, plus complète

=SUPPRESPACE(SI(AUJOURDHUI()-A1;TEXTE(DATEDIF(A1;AUJOURDHUI();"y");"[>1]0""
ans "";[>]""1 an "";")&TEXTE(DATEDIF(A1;AUJOURDHUI();"ym");"[>] 0"" mois
"";")&TEXTE(DATEDIF(A1;AUJOURDHUI();"md");"[>1]0"" jours"";[>]""1
jour"";");"0jour"))

--
Salutations
JJ


"Clochard" a écrit dans le message de news:

Merci Jacky
--
Clochard
Merci!



Bonsoir,

ÚTEDIF(A1;MAINTENANT();"Y")&" ans"

OU
format de cellule
Standard" ans"

Avantage du second = permet le calcul , contrairement au premier qui est
du
texte

--
Salutations
JJ


"Clochard" a écrit dans le message de news:

Salut,

Que dois-je ajouter à cette formule pour obtenir 40 ans et non 40 tout
court?

ÚTEDIF(A1;MAINTENANT();"Y")
--
Clochard
Aimerais bien savoir....
Merci!














Avatar
Clochard
J'l'avais déjà celle-là... j'voulais essayer de simplifier...

Mais tu m'as appris quelque chose dont je suis content

format de cellule
Standard" ans"


--
Clochard
Aimerais bien savoir....
Merci!



Merci Jacky,

J'l'avais déjà celle-là... j'voulais essayer de simplifier...

--
Clochard
Aimerais bien savoir....
Merci!



Re...
Il y a aussi celle-ci, plus complète

=SUPPRESPACE(SI(AUJOURDHUI()-A1;TEXTE(DATEDIF(A1;AUJOURDHUI();"y");"[>1]0""
ans "";[>]""1 an "";")&TEXTE(DATEDIF(A1;AUJOURDHUI();"ym");"[>] 0"" mois
"";")&TEXTE(DATEDIF(A1;AUJOURDHUI();"md");"[>1]0"" jours"";[>]""1
jour"";");"0jour"))

--
Salutations
JJ


"Clochard" a écrit dans le message de news:

Merci Jacky
--
Clochard
Merci!



Bonsoir,

ÚTEDIF(A1;MAINTENANT();"Y")&" ans"

OU
format de cellule
Standard" ans"

Avantage du second = permet le calcul , contrairement au premier qui est
du
texte

--
Salutations
JJ


"Clochard" a écrit dans le message de news:

Salut,

Que dois-je ajouter à cette formule pour obtenir 40 ans et non 40 tout
court?

ÚTEDIF(A1;MAINTENANT();"Y")
--
Clochard
Aimerais bien savoir....
Merci!