+ Reply to Thread
Results 1 to 20 of 20

Extracting data from a copy/paste

  1. #1
    Registered User
    Join Date
    01-25-2010
    Location
    Joinville, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    42

    Extracting data from a copy/paste

    (Excel 2007- portuguese(brazil) version)
    Attachment included!

    Hello!

    I am making an excel sheet that will graph many monthly results based on data extracted from a company's custom software. My objective is to minimize manual input, so I am trying to find ways for the excel sheet to read info that is copy pasted and appropriately place it in a graphable format.

    I attached an example of a data extract that would basically be copy/pasted to the excel sheet.

    My current idea is using VLIST and MATCH to find the column number of the VLIST needed. However, I don't know how to identify the data of the extract by date because the year and month are divided between cells, and some cells are merged, etc.

    How would you make it so that the data that is copy pasted into a sheet falls nicely into the table in the excel sheet? Sorry for the long question, I hope some of you guys can help me out.

    Kind Regards.
    Attached Files Attached Files
    Last edited by FortuneSyn; 01-25-2010 at 03:15 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Extracting data from a copy/paste

    That file is not recognizable... are you sure it is an excel file?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-25-2010
    Location
    Joinville, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Extracting data from a copy/paste

    I have uploaded the file again on this post and on the original post, in 2007 with macro format. See if this is better for you.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    01-25-2010
    Location
    Joinville, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Extracting data from a copy/paste

    Quote Originally Posted by FortuneSyn View Post
    (Excel 2007- portuguese(brazil) version)

    My current idea is using VLIST and MATCH to find the column number of the VLIST needed. However, I don't know how to identify the data of the extract by date because the year and month are divided between cells, and some cells are merged, etc.

    Kind Regards.
    Sorry, I didn't mean VLIST, I meant VLOOKUP. However, a better solution is always welcome!

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Extracting data from a copy/paste

    Try in B17:

    Please Login or Register  to view this content.
    or depending on your version....

    Please Login or Register  to view this content.
    Portuguese translations for functions:

    INDEX = ÍNDICE
    MATCH = CORRESP
    TEXT = TEXTO

  6. #6
    Registered User
    Join Date
    01-25-2010
    Location
    Joinville, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Extracting data from a copy/paste

    Thanks for the quick response NBVC. Unfortunately I received an error "#N/D" on all the cells that I dragged it to.

    I think the error is in the "yyyy" and "mm-mmmm" translations, so i tested them out to see what they should be.

    =TEXTO(B$16;"ċċċċ") gives me "2008"
    =TEXTO(C$16;"mm-mmmm") gives me "10-oktober"

    "10-Oktober" is october in Danish, because I bought this computer in Denmark! That is why the dates from the extract were in text and not number format, because it wasn't recognizing the language.

    - What do you recommend to solve this? Change computer language? Is that possible?
    - If I send this excel sheet to another computer (which I have to), would the formula still work?

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Extracting data from a copy/paste

    Try uploading the attached and see if the formulas translate automatically....
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    01-25-2010
    Location
    Joinville, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Extracting data from a copy/paste

    I have uploaded the excel file you uploaded into this post.

    when i opened your excel file the formula looked like this:

    =ÍNDICE($B$7:$N$12;CORRESP($A17;$A$7:$A$12;0);CORRESP(TEXTO(B$16;"yyyy");$B$4:$N$4;0)+CORRESP(TEXTO(B$16;"mm-mmmm");$B$5:$N$5;0)-1)

    So it looks like it did translate everything except the "yyyy" for me.
    Attached Files Attached Files

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Extracting data from a copy/paste

    I only used this function because you said you were copy/pasting the data.. and I see that 2009 and 2010 were showing as text... if you can change those so that they are numbers, the formula would not need the TEXT() function....

  10. #10
    Registered User
    Join Date
    01-25-2010
    Location
    Joinville, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Extracting data from a copy/paste

    Unfortunately I cannot change those into numbers or date instead of text. If I start to request to the people that will update this worksheet to manually change the years in text into date, there's bound to be human error.

  11. #11
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Extracting data from a copy/paste

    How about the attached?
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    01-25-2010
    Location
    Joinville, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Extracting data from a copy/paste

    In the excel sheet you just sent, the only cells that work are F17-F22 (jan/10 with Name1-6). The others are showing "#N/D"


    edit: maybe it's because the "01-janeiro" "02-fevereiro" etc dates copy/pasted into excel are written down as 2010, and F16 is the only date with 2010 in it.
    Last edited by FortuneSyn; 01-25-2010 at 02:48 PM.

  13. #13
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Extracting data from a copy/paste

    It's hard to test when not using the same Language version... I made a couple of changes to "anglicize" the document, eg. change 09-Setembro to 09-September and change 2009 to 2008 in B4 and I got results in B17 down...

  14. #14
    Registered User
    Join Date
    01-25-2010
    Location
    Joinville, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Extracting data from a copy/paste

    This is very strange. The excel file you sent me that i said didn't work actually works 100%! However, in cell B4 the year is written like this " '2009 " with a ' in there before the year. however I ran some tests and when i extract the data, the little ' doesnt come along with it.

    When I delete the ' , the cells stop working.

  15. #15
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Extracting data from a copy/paste

    Do the copy paste over it again.. I was testing things and converted that to a number... but realized you probably needed it to stay text, so adding the ' in front converts it to text.. and probably messes things up for you.

    Just try to copy/paste as you originally did...

  16. #16
    Registered User
    Join Date
    01-25-2010
    Location
    Joinville, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Extracting data from a copy/paste

    IT WORKS!!!!!

    Thankyou so much for your time on this afternoon! This formula will help me power through the other 50 graphs I have to automatize.

  17. #17
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Extracting data from a copy/paste

    Great. I am happy it worked...

    If you are satisfied with the solution please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  18. #18
    Registered User
    Join Date
    01-25-2010
    Location
    Joinville, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Extracting data from a copy/paste

    double post

  19. #19
    Registered User
    Join Date
    01-25-2010
    Location
    Joinville, Brazil
    MS-Off Ver
    Excel 2007
    Posts
    42

    Re: Extracting data from a copy/paste

    For some reason the company LAN settings block me from being able to give you reputation. When I get home I'll make sure to do it.

  20. #20
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Extracting data from a copy/paste

    Quote Originally Posted by FortuneSyn View Post
    For some reason the company LAN settings block me from being able to give you reputation. When I get home I'll make sure to do it.
    Much appreciated

+ 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