+ Reply to Thread
Results 1 to 15 of 15

Format of Date

  1. #1
    Forum Contributor
    Join Date
    12-23-2009
    Location
    Serbia
    MS-Off Ver
    Excel 2007
    Posts
    180

    Format of Date

    Hi,I have searched trough the threads but i didn't find any solution for my problem,i will describe above:

    In my Excel table i have in column format of date in next form:21.04.2013,can I change this format with:April-16,where 16 is number of week in 2013.


    I hope that is very easy for you,thank you for visit my post.

    Aleksandar

  2. #2
    Valued Forum Contributor Dunc3142's Avatar
    Join Date
    09-05-2007
    Location
    Franklin OH
    MS-Off Ver
    2000 and 2007 and 2010 @ Home & Teach 2010
    Posts
    351

    Re: Format of Date

    You could put this formula in an adjacent cell and it will get you your results.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You then could copy the results and paste special, values if needed.
    Yes it will. we just have to figure out how...
    If I have helped you, PLEASE click the * and add to my Rep.
    Also, if the problem is SOLVED please mark it as so.

  3. #3
    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
    52,929

    Re: Format of Date

    Hi

    Assuming your date is in A1, and that the date IS actually a date, and not text that looks like a date, try this...

    =TEXT(A1,"mmmm")&" "&WEEKNUM(A1,2)
    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

  4. #4
    Forum Contributor
    Join Date
    12-23-2009
    Location
    Serbia
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Format of Date

    Thank guys for quick response but this do not do what i want,i will try again to explain,i have one document from the start this year (2013) i want to retroactive to change format of my data,now format is "24.04.2013" in whole column,can i change this with "April-16" and i have to came beck to start of the year,can we make some formula which is change weeks of the year according to format in the column..

    Maybe i was a little confused in my explanation,thank you again for your effort. .

  5. #5
    Forum Contributor
    Join Date
    12-23-2009
    Location
    Serbia
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Format of Date

    Maybe i have to rearrange my question,can i somehow to change my text word "01.05.2013" into some of official formats for date into Excel,can i avoid to change this word cell by cell..

    Thank you for watching my post.

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Format of Date

    Aleksandar .Try using TEXT to COLUMNS option.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  7. #7
    Forum Contributor
    Join Date
    12-23-2009
    Location
    Serbia
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Format of Date

    Thank you Fotis,but i do not understand you,can you explain me again ,i have one big tables where is the date formulated as text "01.05.2013" ,i want to change this by for example:"May-number of the week" and i have to do this the previous reports,i have to go back and change this.
    Can i change this by some formula?

    Thank you again.

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Format of Date

    The TEXT to Columns option that i suggested will convert your text to a real date. See how you can use this, in this link.

    http://www.myonlinetraininghub.com/e...t-date-formats

    But as your final result you want to be April 18, we'll use a SUBSTITUTE inside of FDibbins formula like this.

    =TEXT(DATEVALUE(SUBSTITUTE(A1;".";"/"));"mmmm")&" "&WEEKNUM(DATEVALUE(SUBSTITUTE(A1;".";"/"));2)

    See the sample.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    12-23-2009
    Location
    Serbia
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Format of Date

    Thank you Fotis,the formula working very well but i have problem because we using here in Serbia format of date as dd.mm.yyyy,formula working when format is mm.dd.yyyy,

    Can you somehow change this,is reason for this function DATEVALUE?

    Thank you a lot .

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Format of Date

    You are welcome and thanks for the reb*.

    Hoping that your next reply will not be 8 days later, i have to say that i tested the formula and works fine in any format.

    dd.mm.yyyy, is a format that works fine.

    If you have any issues,pls upload a small sample workbook to see what you mean.

  11. #11
    Forum Contributor
    Join Date
    12-23-2009
    Location
    Serbia
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Format of Date

    Thank you Fotis,you help me a lot..

    The formula works fine when we have format of date mm.dd.yyyy,in my case i have dd.mm.yyyy formula shows "Value". How i can change this format because i have to go back years ago in my table.

    Thank you again..
    Attached Files Attached Files

  12. #12
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Format of Date

    I believe that it must be something depanding of the local settings,because:

    =TEXT(DATEVALUE(SUBSTITUTE(A2;".";"/"));"μμμμ")&" "&WEEKNUM(DATEVALUE(SUBSTITUTE(A2;".";"/"));2)

    This is my formula. As I said in my previous reply, "μμμμ" in Greek, is "mmmm"--Months in English.
    In columnC, I translate the results that I get from Greek to English

    Also i post a photo of what i see when i use this formula.
    Attached Files Attached Files

  13. #13
    Forum Contributor Bhuvi's Avatar
    Join Date
    04-19-2013
    Location
    Delhi, India
    MS-Off Ver
    MS Excel 2003,07,10
    Posts
    153

    Re: Format of Date

    Hi Alezi,

    I can suggest one probable solution. In the attached sheet I have used a formula in column C which converts the format dd.mm.yyyy into the excel usable format (mm/dd/yyyy) and then finally gives the output as mmm-weeknum.
    Please check and let us know if this helps.

    Best Regards,
    Bhuvanesh
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    12-23-2009
    Location
    Serbia
    MS-Off Ver
    Excel 2007
    Posts
    180

    Re: Format of Date

    Finally,this formula works fine,thank you a lot Bhuvanesh

  15. #15
    Forum Contributor Bhuvi's Avatar
    Join Date
    04-19-2013
    Location
    Delhi, India
    MS-Off Ver
    MS Excel 2003,07,10
    Posts
    153

    Re: Format of Date

    you are always welcome.






    if my answer helped, kindly click on the star* below to add to my rep.

+ 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