+ Reply to Thread
Results 1 to 12 of 12

Copy & Paste values in adjacent cell

  1. #1
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Copy & Paste values in adjacent cell

    i had data in html format.i want the data to be splitted into columns in excel.

    HTML FORMAT
    Employee name
    Emp id


    johnabraham wesley peter neiljohn and so on....... 254800 254801 254802 254803


    i tried copying the data from html to excel. Then applied text to columns but i m getting incomplete names from this step.

    My problem is how would i get the full name in one Column(Column B) & the emp id in the next Column (COLUMN C).Column A will have the data copied from html page. The length of the employee name differs. The only saving tip is that the employee name will suffix with sno like

    Johnabraham -1
    254800

    Any function or VBA routine will help me.
    THANKS
    ExcelKeechak

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Copy & Paste values in adjacent cell

    Some thing like
    Please Login or Register  to view this content.
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Copy & Paste values in adjacent cell

    Swanky!

    From the post, I'm not sure about the actual layout of your data (uploading an example would be very useful, though of course, you would need to edit the data to protect personal data). What I have found, however, is that copying tables out of Firefox and pasting into Excel is much less effective than copying the same tables out of (dastardly) IE.

    If this may be relevant, you could try following the URL in IE and copying&pasting from there.

    CC

  4. #4
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: Copy & Paste values in adjacent cell

    i think i had given the enough requirements.i cant paste or show data due to integrity reasons.sorry for that.

  5. #5
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: Copy & Paste values in adjacent cell

    By the way the code by PIKE is not working properly.plz debug it to my usage.

  6. #6
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Copy & Paste values in adjacent cell

    Well, Pike's demonstration of regular expression skillz is fine, what's hard to know is how it's not working.

    And what you mean by html format...

    Perhaps create a dummy example

  7. #7
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Copy & Paste values in adjacent cell

    Excelkeechak,

    i think i had given the enough requirements.i cant paste or show data due to integrity reasons.sorry for that....

    plz debug it to my usage
    This kind of texts will not get you a solution fast. These people try to help you in the best way they can. Please be thankfull and make a sample post with a Before situation and an after situation. If the data can't be given due to integrity reasons, post a WB with # fictitious data.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Copy & Paste values in adjacent cell

    i think i had given the enough requirements.i cant paste or show data due to integrity reasons.sorry for that.

    Quote Originally Posted by excelkeechak View Post
    By the way the code by PIKE is not working properly.plz debug it to my usage.
    How do you suppose somebody do that?

  9. #9
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: Copy & Paste values in adjacent cell

    By HTML format i mean the data is imported into excel from web.ok.i m posting the dummy file then.thanks for all those posts
    Attached Files Attached Files
    Last edited by excelkeechak; 12-05-2009 at 09:57 AM.

  10. #10
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Copy & Paste values in adjacent cell

    Are you using firefox, internet explorer or another browser?

  11. #11
    Forum Contributor excelkeechak's Avatar
    Join Date
    07-21-2008
    Location
    India.
    MS-Off Ver
    2013 /2016
    Posts
    363

    Re: Copy & Paste values in adjacent cell

    I use internet explorer & firefox???

  12. #12
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Copy & Paste values in adjacent cell

    try..
    Please Login or Register  to view this content.

+ 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