Formatting month values

G

Guest

I have a column of dates formatted as mm/dd/yy. I want to add another column
that returns the month in two characters (i.e. 7/31/95 would return 07). I
am using the month function but it only returns one character (i.e.7).

Does anyone have any suggestions? thanks
 
G

Guest

In the cell you have the MONTH() function:

<Format><Cells>
Click over to the "Number" tab
Click on "Custom"
Enter "00" (without the quotes)
 
G

Guest

See if one of these will work for you:

For a date in A1
B1: =TEXT(MONTH(A1),"00")

OR

B1: =MONTH(A1)
Format>Cells>Number tab
Category: Custom
Type: 00
Click the [OK] button


Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro
 
G

Guest

Thanks, it worked perfectly.

David Billigmeier said:
In the cell you have the MONTH() function:

<Format><Cells>
Click over to the "Number" tab
Click on "Custom"
Enter "00" (without the quotes)
 

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

Top