+ Reply to Thread
Results 1 to 12 of 12

Paste vertically to Excel cells of horizontal numbers copied from webpage

  1. #1
    Registered User
    Join Date
    12-27-2011
    Location
    Bangladesh
    MS-Off Ver
    Excel 2016
    Posts
    65

    Paste vertically to Excel cells of horizontal numbers copied from webpage

    Hi there,

    I Copied the following numbers from a webpage and paste-special as text. I tried to make the numbers placed vertically in contiguous cells by using Transpose command but in vain.

    Copied Numbers
    211001 , 211101 , 211201 , 211301 , 211503 , 211601 , 211701 , 211801 , 213801 , 214501
    211901 , 212001 , 212101 , 212201 , 214001
    212305 , 212407 , 212505 , 212609
    212701 , 212801 , 212901 , 213001 , 213101 , 213201 , 213301 , 213401 , 213501 , 213601 , 213701 , 214401

    The numbers got pasted in A1 B1 C1 D1 in sigle cells.

    How can I place the numbers vertically in contiguous cells in a column?

    I am using Office 365 Offline



    Rgards,
    Fazlul
    Attached Files Attached Files

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Paste vertically to Excel cells of horizontal numbers copied from webpage

    You can't do it in single step.

    Here's one way to do it.
    1. Paste as you did (values should be in A1:A4).
    2. Select A column. Text to Columns use Comma as delimiter.
    3. In new sheet, enter following formula.
    Please Login or Register  to view this content.
    If TOCOL function isn't available. Alternative is to use FILTERXML function. Same operation up to step2.
    Please Login or Register  to view this content.
    "Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
    ― Robert A. Heinlein

  3. #3
    Registered User
    Join Date
    12-27-2011
    Location
    Bangladesh
    MS-Off Ver
    Excel 2016
    Posts
    65

    Re: Paste vertically to Excel cells of horizontal numbers copied from webpage

    Quote Originally Posted by mfhaq77 View Post
    Hi there,

    I Copied the following numbers from a webpage and paste-special as text. I tried to make the numbers placed vertically in contiguous cells by using Transpose command but in vain.

    Copied Numbers
    211001 , 211101 , 211201 , 211301 , 211503 , 211601 , 211701 , 211801 , 213801 , 214501
    211901 , 212001 , 212101 , 212201 , 214001
    212305 , 212407 , 212505 , 212609
    212701 , 212801 , 212901 , 213001 , 213101 , 213201 , 213301 , 213401 , 213501 , 213601 , 213701 , 214401

    The numbers got pasted in A1 B1 C1 D1 in sigle cells.

    How can I place the numbers vertically in contiguous cells in a column?

    I am using Office 365 Offline



    Rgards,
    Fazlul
    Hi
    Thank you very much
    But it is a long process.
    Is there any shortcut from the source (from webpage) because
    I have to do a lot of operation every time i refresh the page and
    there could be single to multiple lines to copy from webpage.

    Thanks again

  4. #4
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,973

    Re: Paste vertically to Excel cells of horizontal numbers copied from webpage

    Without knowing source. Not really.

    There are other methods, but I am not a mind reader and need you to show where the numbers are copied from and how it's structured in your workbook.

    Either way, there is no direct method. You'll need some sort of process, be it manual, formula, or coding to process the data for you.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Paste vertically to Excel cells of horizontal numbers copied from webpage

    Hi.

    Is your forum profile showing the Excel PRODUCT that you need this request to work with?

    The best solutions often rely on knowing WHICH Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date. If you aren't sure, in Excel go to File/Account and report what it says below the MS logo at the top of that page. If your version is for Mac, please also state this.

    The three most recent Excel PRODUCTS are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the Version number in your profile (e.g. MS365 (PC) Version 2211). The version number is in the About Excel section further down the Account page.

    Cheers,

    Glenn.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Paste vertically to Excel cells of horizontal numbers copied from webpage

    Is this what you meant:

    =TEXTSPLIT(TEXTJOIN(", ",,A1:A4),,", ")
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-27-2011
    Location
    Bangladesh
    MS-Off Ver
    Excel 2016
    Posts
    65

    Re: Paste vertically to Excel cells of horizontal numbers copied from webpage

    Quote Originally Posted by CK76 View Post
    Without knowing source. Not really.

    There are other methods, but I am not a mind reader and need you to show where the numbers are copied from and how it's structured in your workbook.

    Either way, there is no direct method. You'll need some sort of process, be it manual, formula, or coding to process the data for you.
    Hi,
    Sorry for the inconvenience.
    There are login credential issues, so I can't share the page.

    Is there any shortcut formula or macro possibility from the XL file I uploaded? Just consider any number of rows in the Column A (after pasting from the source webpage).

    Thanks

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Paste vertically to Excel cells of horizontal numbers copied from webpage

    If you have 000,s of rows the one above may fail, but this should work:

    =TOCOL(DROP(REDUCE("",A1:A4,LAMBDA(x,y,VSTACK(x,TEXTSPLIT(y,", ")))),1),3)

    Change the red bit to fit..

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Paste vertically to Excel cells of horizontal numbers copied from webpage

    Data A1:a4
    Formula in C1
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  10. #10
    Registered User
    Join Date
    12-27-2011
    Location
    Bangladesh
    MS-Off Ver
    Excel 2016
    Posts
    65

    Re: Paste vertically to Excel cells of horizontal numbers copied from webpage

    Quote Originally Posted by kvsrinivasamurthy View Post
    Data A1:a4
    Formula in C1
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Hi,

    Thank you so much for your easy solution.
    This is what I was looking for.
    You are really a great guy.

    Regards
    Fazlul

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Paste vertically to Excel cells of horizontal numbers copied from webpage

    Was I invisible?

  12. #12
    Registered User
    Join Date
    12-27-2011
    Location
    Bangladesh
    MS-Off Ver
    Excel 2016
    Posts
    65

    Re: Paste vertically to Excel cells of horizontal numbers copied from webpage

    Quote Originally Posted by mfhaq77 View Post
    Hi,

    Thank you so much for your easy solution.
    This is what I was looking for.
    You are really a great guy.

    Regards
    Fazlul
    Quote Originally Posted by Glenn Kennedy View Post
    Was I invisible?
    Hi

    Yes, your solution was also great
    Thanks for the trouble you have taken.

    Regards

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Counting matching cells vertically, not horizontal
    By ligabr1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-09-2021, 01:47 AM
  2. [SOLVED] Loop Horizontal (across) to copy and paste Vertically (Down)
    By rubenidas in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-29-2016, 06:11 AM
  3. Replies: 2
    Last Post: 10-01-2013, 04:35 PM
  4. Replies: 0
    Last Post: 11-27-2012, 10:32 AM
  5. Replies: 0
    Last Post: 12-08-2010, 01:02 PM
  6. Referencing cells horizontal and vertically
    By DaveHan in forum Excel General
    Replies: 3
    Last Post: 06-13-2008, 08:12 AM
  7. [SOLVED] How do I link horizontal cells vertically?
    By Brett in forum Excel General
    Replies: 3
    Last Post: 01-04-2006, 12:55 AM

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