+ Reply to Thread
Results 1 to 7 of 7

I want paste without any change. 1/2014 this type of data

  1. #1
    Forum Contributor
    Join Date
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    I want paste without any change. 1/2014 this type of data

    if i paste '12/2012' this data in A1 cell then it will show dec-2012. how to change this automatically change option?

    if i paste successfully in "A1" as 12/2012 Then i need to display that data in C1. I am using a formula in C1 Which is =A1&""
    now am getting some numbers in C1 instead of 12/2012.
    41974 This is the number I am getting in C1 cell instead of 12/2012

    I want display same data, same look in C1 cell.
    Last edited by vengatvj; 06-29-2016 at 08:22 AM.

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: I want paste without any change. 1/2014 this type of data

    Try this ...

    =IF(ISTEXT(A1),A1,TEXT(A1,"mm/yyyy"))

  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,938

    Re: I want paste without any change. 1/2014 this type of data

    Or format the cell as TEXT 1st
    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
    09-19-2013
    Location
    chennai
    MS-Off Ver
    Excel 2007
    Posts
    252

    Re: I want paste without any change. 1/2014 this type of data

    your formula working well, but B1 cell display the value "01/1900" when A1 is emply, I want blank in B1 when A1 is emply

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,913

    Re: I want paste without any change. 1/2014 this type of data

    Try ...

    =IF(A1=0,"",IF(ISTEXT(A1),A1,TEXT(A1,"mm/yyyy")))

  6. #6
    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,938

    Re: I want paste without any change. 1/2014 this type of data

    Quote Originally Posted by Phuocam View Post
    Try ...

    =IF(A1=0,"",IF(ISTEXT(A1),A1,TEXT(A1,"mm/yyyy")))
    That will work if the cell contains 0. If it is empty (has no data)...
    =IF(A1="","",IF(ISTEXT(A1),A1,TEXT(A1,"mm/yyyy")))

  7. #7
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: I want paste without any change. 1/2014 this type of data

    Quote Originally Posted by FDibbins View Post
    That will work if the cell contains 0. If it is empty (has no data)...
    =IF(A1="","",IF(ISTEXT(A1),A1,TEXT(A1,"mm/yyyy")))
    Equipvalent to this...

    =TEXT(A4&"","mm/yyyy")

+ 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] copy range & paste every 3rd row after endlast row loop till date reach 31/11/2014 in colA
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2014, 06:58 AM
  2. Date Formatting 10.9.2014 to 9/10/2014
    By cory0789 in forum Excel General
    Replies: 7
    Last Post: 10-12-2014, 11:38 AM
  3. [SOLVED] Date order 2014-02-24 > 24-02-2014
    By Shimazu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2014, 06:00 AM
  4. Change chart type by using data validation
    By jeffreybrown in forum Excel Charting & Pivots
    Replies: 12
    Last Post: 11-28-2009, 09:57 AM
  5. How can I change the type of data
    By felipe in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2005, 01:45 PM
  6. Change the Data Type
    By Selv in forum Excel General
    Replies: 2
    Last Post: 06-10-2005, 09:05 PM
  7. Use of Today() and change data type
    By Dale in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-01-2005, 04:05 PM

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