Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .