+ Reply to Thread
Results 1 to 7 of 7

Thread: Date imported from another workbook, change display format

  1. #1
    Forum Contributor
    Join Date
    02-09-2007
    Location
    UK
    MS-Off Ver
    2007
    Posts
    133

    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 11:25 AM.

  2. #2
    Forum Guru 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Vienna, VA, USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    2,257

    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.
    Making the world a better place one fret at a time
    ||||||

    If someone helped you, please click on the star icon at the bottom of their post

    If your problem is solved, please update the first post:
    EDIT, Go Advanced button, set Prefix to SOLVED

    [code]
    ' Enclose code in tags like this
    [/code]

    Don't attach a screenshot
    --just attach your Excel file! It's easier and will let us experiment with your data, formulas, and code.

  3. #3
    Forum Contributor
    Join Date
    02-09-2007
    Location
    UK
    MS-Off Ver
    2007
    Posts
    133

    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
    Forum Guru 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Vienna, VA, USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    2,257

    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.
    Making the world a better place one fret at a time
    ||||||

    If someone helped you, please click on the star icon at the bottom of their post

    If your problem is solved, please update the first post:
    EDIT, Go Advanced button, set Prefix to SOLVED

    [code]
    ' Enclose code in tags like this
    [/code]

    Don't attach a screenshot
    --just attach your Excel file! It's easier and will let us experiment with your data, formulas, and code.

  5. #5
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    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
    2007
    Posts
    133

    Re: Date imported from another workbook, change display format

    Adding the +0 worked perfectly.

    How does it do this tho?

    Thanks BVG

  7. #7
    Forum Guru 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Vienna, VA, USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    2,257

    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.
    Making the world a better place one fret at a time
    ||||||

    If someone helped you, please click on the star icon at the bottom of their post

    If your problem is solved, please update the first post:
    EDIT, Go Advanced button, set Prefix to SOLVED

    [code]
    ' Enclose code in tags like this
    [/code]

    Don't attach a screenshot
    --just attach your Excel file! It's easier and will let us experiment with your data, formulas, and code.

+ 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.2.0