+ Reply to Thread
Results 1 to 7 of 7

Need first day of month based on month text name

  1. #1
    Forum Contributor
    Join Date
    10-11-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    230

    Need first day of month based on month text name

    If I have "January" in cell B6 and "2015" in cell C6, can someone tell me the formula to get the result of 1/1/2015? Thanks.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,698

    Re: Need first day of month based on month text name

    Try this formula in D6

    =(1&B6&C6)+0

    format D6 with required date format e,g, m/d/yyyy
    Audere est facere

  3. #3
    Forum Contributor
    Join Date
    10-11-2013
    Location
    California
    MS-Off Ver
    Excel 2010
    Posts
    230

    Re: Need first day of month based on month text name

    Beautiful! Thank you.

  4. #4
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: Need first day of month based on month text name

    How about this?
    I only filled in the first three months, you have to fill in the rest of the month names in the formula yourself.


    Edit: Too slow and too bad
    Attached Files Attached Files
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  5. #5
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: Need first day of month based on month text name

    I'm hijacking this thread now because of mr longlegs ultraslick solution.

    Daddylonglegs, is there a list somewhere of what Excel will autoformat as date? It seems like almost anything goes.

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,698

    Re: Need first day of month based on month text name

    Quote Originally Posted by Jacc View Post
    Daddylonglegs, is there a list somewhere of what Excel will autoformat as date? It seems like almost anything goes.
    It can differ by region

    If I type "1jan" into a cell I get the 1st Jan of the current year, of course if I add a specific year I will get that year, but if I type Jan1 it interprets that (with my UK settings) as Jan 2001 (and with unspecified day it defaults to 1)

    ...but in US "1jan" and "jan1" will both give you 1st Jan of the current year

    In general any text that looks like an acceptable date format for that region will co-erce to a date, so with US settings if I type January 30, 2015 that immediately converts to a date, but if I type that in the UK it remains as text

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Need first day of month based on month text name

    ...but in US "1jan" and "jan1" will both give you 1st Jan of the current year
    Confirmed DDL, that is exactly what it returned - in both cases 1 Jan 2015
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Determine work days in current month or next month based on day of the month
    By sbrnard in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-29-2014, 05:14 PM
  2. VBA: Piviot table Month auto select based on current month?
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-21-2013, 07:18 AM
  3. Changing number of days in a month based on month chosen from a dropdown list.
    By st_judeu@yahoo.com in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 02-08-2013, 02:26 PM
  4. [SOLVED] Help with a system to auto populate month names based on current month
    By rosboy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-01-2012, 05:17 PM
  5. [SOLVED] VBA to identify the current month and previous month based on system date
    By ravikumar00008 in forum Excel General
    Replies: 10
    Last Post: 07-26-2012, 10:04 AM

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