Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

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

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

1 Answer 1

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)
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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