+ Reply to Thread
Results 1 to 2 of 2

Extract Month from date IE 3/10/2010 = 3

  1. #1
    Forum Contributor
    Join Date
    04-03-2009
    Location
    USA, California
    MS-Off Ver
    Excel 2007
    Posts
    385

    Extract Month from date IE 3/10/2010 = 3

    I need a formula that will tell me the month and only the month in the smallest amount of numbers as possible. Meaning if the date is 3/10/2010 the formula should display 3 and if the date is 10/10/2010 the value would be 10. Also I need to be able to extract the day and year. So in total there should be three formulas:

    1 to tell me the month
    1 to tell me the day of the month
    and 1 to tell me to year

    If anyone knows how to do this I'd be very grateful. I thought of using Left(A1,1) or something to that affect but since not all months are the same length and not all days are the same length that would not work.
    Last edited by randell.graybill; 03-12-2010 at 12:30 AM.

  2. #2
    Forum Contributor
    Join Date
    04-03-2009
    Location
    USA, California
    MS-Off Ver
    Excel 2007
    Posts
    385

    Re: Extract Month from date IE 3/10/2010 = 3

    Well the solution to this is already within excel and is and follows:

    =day(A1)

    only thing is to make sure the cell format is set to number or general.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1