+ Reply to Thread
Results 1 to 4 of 4

2017 Q1 to 1/1/2017

  1. #1
    Registered User
    Join Date
    07-12-2016
    Location
    massachusetts
    MS-Off Ver
    excel 2010
    Posts
    44

    2017 Q1 to 1/1/2017

    Just out of curiosity, is there a way (through VBA or a formula) to take text such as "[Year] [Quarter]" and change it to a short date?

    the text derives from the below formula where F2 is a short date. Then this is converted to text on another worksheet. I know it sounds a bit weird (why can't you just use the original date, etc.), but for all intents and purposes lets just assume the short date is lost.

    =YEAR(F2)&" "&"Q"&ROUNDUP(MONTH(F2)/3,0)

    Requested outcome:

    Typing "2017 Q1, 2017 Q2, etc." into cells A1:etc. would turn into "1/1/2017, 4/1/2017, etc." in cells A2:etc.

    Think it's possible?
    Last edited by coryjacques; 11-13-2018 at 08:46 AM.

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: 2017 Q1 to 1/1/2017

    Try this:

    =DATE(LEFT(A1,4),CHOOSE(RIGHT(A1),1,4,7,10),1)

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: 2017 Q1 to 1/1/2017

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 6)
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    07-12-2016
    Location
    massachusetts
    MS-Off Ver
    excel 2010
    Posts
    44

    Re: 2017 Q1 to 1/1/2017

    That is AMAZING! I'm unfamiliar with the Choose function but this worked perfectly, thank you!

+ 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. Replies: 23
    Last Post: 01-03-2022, 10:45 AM
  2. Imported text 12/8/2017 becomes 8/12/2017
    By terrypin in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 02-20-2018, 02:46 PM
  3. [SOLVED] Format Jan 10, 2017 as 1/10/2017
    By elkhornbabe in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-26-2018, 09:11 AM
  4. [SOLVED] find march in 3/15/2017
    By ColemanJames in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-06-2017, 09:22 AM
  5. Planner to start from Jan 2017
    By Shamz41 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-14-2017, 04:32 AM
  6. Replies: 10
    Last Post: 05-13-2017, 01:58 AM
  7. [SOLVED] How to format dates like 9/25/2017 to 09/25/2017
    By chessmonsta in forum Excel General
    Replies: 11
    Last Post: 03-17-2017, 03:11 AM

Tags for this Thread

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