=month formula no working

P

PG

I import text in to excel and in one cell it’s listed a such:
' 11-JAN-07

Now I have tried clearing the format and changing the cell to a date, but
the =month formula does not work. Do I did the following:

Cell A1 (' 11-JAN-07)
Cell B1 =A1
Cell C2 =month

Now I got that to work once and I have not been able to make it work again.
Help!!!
 
D

Dave Peterson

So each entry comes in with an apostrophe and a space followed by the date?

If the entries are all in a column
select that column
Data|Text to columns
Fixed width
draw a line between the space and the day
Skip that first field
and choose dmy for the date type

(reformat to the way you want if you need to)

And then try your =month() formula.
 
D

daddylonglegs

I imagine it'll be a good idea to convert your dates as Dave suggests, you
can then more easily do any calculation with them ......but to extract the
month from the data as is.....

=MONTH(RIGHT(A1,8))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Formula IF 1
summarizing data from various workbooks 4
If, Or, and 5
Find the position of a date 6
find out specific month and year 1
Reverse Index Match 2
Beginning of the month formula 8
Days in a month 7

Top