Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mo
 
Posts: n/a
Default Formatting month values

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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David Billigmeier
 
Posts: n/a
Default Formatting month values

In the cell you have the MONTH() function:

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

--
Regards,
Dave


"Mo" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mo
 
Posts: n/a
Default Formatting month values

Thanks, it worked perfectly.

"David Billigmeier" wrote:

In the cell you have the MONTH() function:

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

--
Regards,
Dave


"Mo" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Formatting month values

See if one of these will work for you:

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

OR

B1: =MONTH(A1)
FormatCellsNumber tab
Category: Custom
Type: 00
Click the [OK] button


Does that help?

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

XL2002, WinXP-Pro


"Mo" wrote:

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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formatting for 15th and last day of the month Emilio Guerra Excel Worksheet Functions 2 April 29th 23 07:41 PM
Using Match function with duplicate values in an array Richard Excel Worksheet Functions 3 April 22nd 23 07:45 PM
formatting date-time values in macro scw-tzg Excel Worksheet Functions 2 November 14th 05 09:21 PM
Summing Values In Current Month Only qflyer Excel Worksheet Functions 3 June 27th 05 06:29 AM
Sum values by month Edgar Thoemmes Excel Worksheet Functions 4 December 3rd 04 04:31 PM


All times are GMT +1. The time now is 07:03 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"