In Cell A1 I have a date format: 22-12-2011 (dd-mm-yyy).

Now in A2 I want to have only the dd of A1.

So I want to have 22. How can I do this?

link|improve this question

56% accept rate
feedback

migrated from stackoverflow.com Sep 16 '11 at 10:56

This question came from our site for professional and enthusiast programmers.

1 Answer

up vote 4 down vote accepted

If you need to take only the day, use:

A2=DAY(A1)

In Cell A2 you have to type:

=DAY(A1)
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.