+ Reply to Thread
Results 1 to 15 of 15

Stop Excel from converting football scores into dates

  1. #1
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415

    Stop Excel from converting football scores into dates

    hello all
    i have his problem
    http://www.excelforum.com/excel-gene...cognition.html
    and im copying and pasting data from a website ( football scores )
    and when i get what should be 1-1 it returns 01-jan and this i dont want
    i have tried formatting all cells to text beforehand but that makes no difference and i cant put an apostrophe before each one as that would take ages
    wondered if anyone could work out some syntax to use as a macro button?
    claymation had a go but it doesnt work.

    thanks

  2. #2
    Forum Contributor
    Join Date
    01-10-2006
    Location
    Ahmedabad, India
    MS-Off Ver
    Office 2000
    Posts
    346
    EXCEL, by default, has the style as "Normal". ie during cut-and-paste it tries to interprete the copied value to its known formats of date and number and if it finds a match it takes it as date or number. Only if does not match to its known format it takes it as text. Your score of 1-1 it assumes as date ( 01-Jan ). To over-ride this, format the whole column in which you are pasting the score as " TEXT" ( select the whole column then format cell > number> category-text ) BEFORE you paste data on to the sheet.
    If you think that you want data in all the columns to be taken as text then you can change the style of the workbook before you paste any data on it. ( Format>Style and then modify number format to text ). Style applies to the whole workbook ).

    A V Veerkar

  3. #3
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415
    Hi thanks for the reply avveerkar

    i have done it exactly as you said previously as per my first post
    and it doesnt work

  4. #4
    Forum Contributor
    Join Date
    01-10-2006
    Location
    Ahmedabad, India
    MS-Off Ver
    Office 2000
    Posts
    346
    Quote Originally Posted by excellentexcel View Post
    Hi thanks for the reply avveerkar

    i have done it exactly as you said previously as per my first post
    and it doesnt work
    I am sorry that I did not read your post carefully. You seem to have already tried what I suggested. The method should work if you are manually selecting data from a table on the displayed web page and then just pasting it on your EXCEL sheet ( control C on the web page and then control-v on excel sheet ). You seem to have some other way of getting the data- web query?
    Could you pl tell me how you are getting the data? Preferably give the steps with URL of the web page etc so that I can recreate what you are doing. I would really like to work on this problem. We need to do something so that the correct data is imported to excel. It is almost impossible to regenerate the original text data once EXCEL has applied its format conversion.

    A V Veerkar

  5. #5
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415
    hi avveerkar

    i have tried both ways
    copy and paste exactly as you say and that DOESNT work

    web query on the web page doesnt do any other seasons than the current one

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You have at least three threads on this subject. Why

    Read the Forum Rules about duplicate posting!
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  7. #7
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415
    one is for web query
    the other is a copy/paste/format issue

    says you should ask different questions in different threads

  8. #8
    Forum Contributor
    Join Date
    01-10-2006
    Location
    Ahmedabad, India
    MS-Off Ver
    Office 2000
    Posts
    346
    Quote Originally Posted by excellentexcel View Post
    hi avveerkar

    i have tried both ways
    copy and paste exactly as you say and that DOESNT work

    web query on the web page doesnt do any other seasons than the current one

    OK I see the problem. Before we get a proper elegant solution, as a make-shift arrangement, you could format the whole column in which you have pasted the scores, as "d-m", after you paste the data. ( select column and then Format>Cells>Number>Custom and then enter type as d-d ). This will give correct display but keep it in mind that excel is taking it as date and not a text string which is what ideally it should have been.

    A V Veerkar

  9. #9
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415
    hi avverkar
    that still doesnt work
    i have ascore of 1-3
    and its returning 1-1????
    which is weird because when you paste it in it actually shows as 01-Mar

    thansk for your efforts though
    Last edited by excellentexcel; 01-12-2009 at 01:16 PM.

  10. #10
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415
    how about if cell has Jan in the box that equals
    so 1-1 would be 01-jan which would return 1-1?

    same for all the other months?

    basically avverkar or anyone else
    excel doesnt understand your way of formatting as it doesnt understand where and second number is greater than the first
    Last edited by excellentexcel; 01-12-2009 at 01:50 PM.

  11. #11
    Forum Contributor
    Join Date
    01-10-2006
    Location
    Ahmedabad, India
    MS-Off Ver
    Office 2000
    Posts
    346
    Quote Originally Posted by excellentexcel View Post
    how about if cell has Jan in the box that equals
    so 1-1 would be 01-jan which would return 1-1?

    same for all the other months?

    basically avverkar or anyone else
    excel doesnt understand your way of formatting as it doesnt understand where and second number is greater than the first
    Sorry I meant to say format as d-m and not d-d. It was my typogrphic error.

  12. #12
    Forum Contributor
    Join Date
    01-06-2009
    Location
    uk
    MS-Off Ver
    Excel 2007
    Posts
    415
    hey avveerkar

    thats good enough for me as i will just get the macro to do it for me
    Please Login or Register  to view this content.
    thanks for pointing me the right way

  13. #13
    Forum Contributor
    Join Date
    01-10-2006
    Location
    Ahmedabad, India
    MS-Off Ver
    Office 2000
    Posts
    346
    Dear Excellentexcel,

    Happy to know that it worked for you.

    A V Veerkar

  14. #14
    Registered User
    Join Date
    02-08-2009
    Location
    athens, greece
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Stop Excel from converting football scores into dates

    Hi everybody

    I have the same problem with the scores shown as dates. The formula might have worked but how do you deal with the zero.

    Thanks
    Last edited by geoglyfada; 02-08-2009 at 08:38 AM.

  15. #15
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983

    Re: Stop Excel from converting football scores into dates

    geoglyfada

    Please take a couple of minutes and read all the Forum Rules

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

+ 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