+ Reply to Thread
Results 1 to 10 of 10

Want to iterate code on entire column as opposed to single cell

  1. #1
    Registered User
    Join Date
    05-18-2020
    Location
    California
    MS-Off Ver
    2016
    Posts
    4

    Want to iterate code on entire column as opposed to single cell

    Hello! I am using this code:
    Please Login or Register  to view this content.
    EDIT (for clarification): The code takes each cell and separates every word into it's own row. An example of the results would look something like this:
    outputtest1.png

    However, as you can probably tell, it only works for a single cell at a time and I would need to individually select over a hundred cells. Each of the cells in the column are pretty much identical in nature and are composed of a single sentence, like so:

    testexcel.png

    Would appreciate any help! Thanks in advance.
    Attached Images Attached Images
    Last edited by ilovepeanutbutter; 05-18-2020 at 03:54 PM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Want to iterate code on entire column as opposed to single cell

    Why not just use Text to columns to the data tab & use a space as the delimiter?

  3. #3
    Registered User
    Join Date
    05-18-2020
    Location
    California
    MS-Off Ver
    2016
    Posts
    4

    Re: Want to iterate code on entire column as opposed to single cell

    Oops, sorry! I wasn't being clear enough in my post. The code iterates through a single cell and separates each word in the sentence into separate rows and not columns (delimited by a space). I just wanted to repeat the action for every cell/sentence in the column.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Want to iterate code on entire column as opposed to single cell

    Oops, my fault, didn't notice you were putting it into rows, not columns.
    Where do you want to put the results, because if you run that on A9, it will put the results in A9:A11.

  5. #5
    Registered User
    Join Date
    05-18-2020
    Location
    California
    MS-Off Ver
    2016
    Posts
    4

    Re: Want to iterate code on entire column as opposed to single cell

    Yeah, what you described is pretty much where I would want the results to be For example, A15 would end up occupying A15:A17.

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Want to iterate code on entire column as opposed to single cell

    Oops - Ditto Fluff
    Last edited by xladept; 05-18-2020 at 04:07 PM.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  7. #7
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Want to iterate code on entire column as opposed to single cell

    How about
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    05-18-2020
    Location
    California
    MS-Off Ver
    2016
    Posts
    4

    Re: Want to iterate code on entire column as opposed to single cell

    Works perfectly! Thank you so much

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Want to iterate code on entire column as opposed to single cell

    You're welcome & thanks for the feedback.

  10. #10
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Want to iterate code on entire column as opposed to single cell

    Here's another attempt:

    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)

Similar Threads

  1. Replies: 1
    Last Post: 02-28-2017, 11:56 AM
  2. Code Required for Entire column text to one cell
    By structo in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-31-2016, 10:30 AM
  3. [SOLVED] VBA code will not iterate cell values.
    By xizor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-10-2014, 05:56 PM
  4. [SOLVED] How do you assign a VBA code to an entire column and not a single cell?
    By Adampc in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-15-2013, 08:48 AM
  5. Posting An Entire Column Into A Single Cell
    By ugotapanda in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-10-2010, 08:28 AM
  6. Macro to filter based on identical column data as opposed to entire record
    By marielb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-27-2007, 12:27 PM
  7. Filling excel entire row/column instead of single cell from an array
    By shitij in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 09-06-2005, 03:05 PM

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