+ Reply to Thread
Results 1 to 7 of 7

Date imported from another workbook, change display format

  1. #1
    Forum Contributor
    Join Date
    02-09-2007
    Location
    UK
    MS-Off Ver
    2019 & 365
    Posts
    304

    Date imported from another workbook, change display format

    I am pulling in a date from another workbook via ='[am3.xlsx]am3-Peu used (VS)'!$F$1

    It is coming over as 30/09/09 which is how it is formatted on the other workbook.

    I want to display it as Sept 09.

    I have tried playing with the cell formatting (in the cell with the formula) but it stays the same 30/09/09.

    Any ideas?

    Regards BVG
    Last edited by Badvgood; 03-05-2010 at 12:25 PM.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,809

    Re: Date imported from another workbook, change display format

    Sounds to me like it's text, even though it looks like a date. Check how it's entered in the source workbook.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    02-09-2007
    Location
    UK
    MS-Off Ver
    2019 & 365
    Posts
    304

    Re: Date imported from another workbook, change display format

    Hi, no tried that.

    The cell the data is coming from is set as general and the cell where I need the date to appear where the formula is is set to date, where I have tried different formatting but with no luck.

    Any other ideas?

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,809

    Re: Date imported from another workbook, change display format

    Quote Originally Posted by Badvgood View Post
    The cell the data is coming from is set as general...
    But that's not the point. My comment was unrelated to the cell format. The data itself could be text data rather than numeric (date) data.

    This might be resolved quickly if you can post both workbooks.

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Date imported from another workbook, change display format

    Extending 6String's post... what happens if you modify the link to:

    =0+'[am3.xlsx]am3-Peu used (VS)'!$F$1

    and subsequently format as mmm-yy

    FWIW it would also help if you added your locale to your profile... date formats for one are affected (significantly) by this.

  6. #6
    Forum Contributor
    Join Date
    02-09-2007
    Location
    UK
    MS-Off Ver
    2019 & 365
    Posts
    304

    Re: Date imported from another workbook, change display format

    Adding the +0 worked perfectly.

    How does it do this tho?

    Thanks BVG

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,809

    Re: Date imported from another workbook, change display format

    Quote Originally Posted by Badvgood View Post
    Adding the +0 worked perfectly.

    How does it do this tho?
    This indicates that the source of your data is text, and not numeric. Putting the "0+" forces the formula to convert the text to a date, and then your formatting will take effect. As long as the data is text, then applying data or numeric formatting will have no effect.

    If you go back to the original workbook and select the cell with the date, and look in the formula bar (or press F2), you will probably see

    '30/09/09

    The initial ' indicates this is entered as text, and not a date.

+ 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