+ Reply to Thread
Results 1 to 3 of 3

Change format from 2013-1 to 2013-01 in this function013

  1. #1
    Registered User
    Join Date
    08-01-2012
    Location
    Beijing
    MS-Off Ver
    Excel 2007
    Posts
    5

    Change format from 2013-1 to 2013-01 in this function013

    Dear Excel Forum members,

    First of all, I want to thank you all for your big help with my former questions!

    Today I have the following problem: One cell contains the following function:

    =TEXT(C5, "yyyy")&-WEEKNUM(C5)

    This function will transform a date from another cell, e.g. 01/02/2013 (Month/Day/Year) into the format 2013-1. But for further calculations I need the format like 2013-01.

    I already tried several hours by myself to find the answer, but so far I had no success. Therefore, I hope someone could support me here!

    Thanks and best regards

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Change format from 2013-1 to 2013-01 in this function013

    how about this one (untested)

    Please Login or Register  to view this content.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Change format from 2013-1 to 2013-01 in this function013

    hi fitfab, try:
    =TEXT(C5,"yyyy")&TEXT(WEEKNUM(C5),"-00")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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