Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Converting duration to integer

Hi

I have a duration value as a result of subtracting one date from another...i.e. 5d

I need to convert it to an integer (i.e 5) so that i can use it in other formulas without the "d" sticking with the result...

Any ideas...

G

Mac Book pro 15", Mac OS X (10.5.7)

Posted on Aug 5, 2009 1:30 AM

Reply
Question marked as Best reply

Posted on Aug 5, 2009 3:02 AM

Geoff Walsh wrote:
Hi

I have a duration value as a result of subtracting one date from another...i.e. 5d

I need to convert it to an integer (i.e 5) so that i can use it in other formulas without the "d" sticking with the result...

Any ideas...


The best one: read 'iWork Formulas and Functions User Guide" available from the Help menu.

Doing that you would be aware of a function designed to do what you need !

Assuming that the start of the period is stored in B2, the end is stored in C2
in D2 enter the formula:
=DATEDIF(B,C,"D")

Yvan KOENIG (from FRANCE mercredi 5 août 2009 12:02:09)
3 replies
Question marked as Best reply

Aug 5, 2009 3:02 AM in response to Geoff Walsh

Geoff Walsh wrote:
Hi

I have a duration value as a result of subtracting one date from another...i.e. 5d

I need to convert it to an integer (i.e 5) so that i can use it in other formulas without the "d" sticking with the result...

Any ideas...


The best one: read 'iWork Formulas and Functions User Guide" available from the Help menu.

Doing that you would be aware of a function designed to do what you need !

Assuming that the start of the period is stored in B2, the end is stored in C2
in D2 enter the formula:
=DATEDIF(B,C,"D")

Yvan KOENIG (from FRANCE mercredi 5 août 2009 12:02:09)

Converting duration to integer

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.