+ Reply to Thread
Results 1 to 7 of 7

Looping using left function resulting in Concatenate

  1. #1
    Registered User
    Join Date
    04-20-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    26

    Looping using left function resulting in Concatenate

    Hello Everyone - I am trying to produce a loop that loops through a vertical columm picking up the cells string that starts with "AGL" and puting an "&" on the end and untill it reaches a blank column. The best i have come up with is but not working, can anyone help?


    Please Login or Register  to view this content.
    can anyone help please


    thanks
    Jay
    Last edited by jaimie1664; 07-12-2010 at 03:58 AM.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Looping using left function resulting in Concatenate

    Hi jaimie

    Please wrap your code in code tags, before the moderators get you...

    Forum rules
    3. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # button at the top of the post window. If you are editing an existing post, press Go Advanced to see the # button.

    Cheers
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Looping using left function resulting in Concatenate

    You Could try this
    Please Login or Register  to view this content.
    Without some data to work with it isn't clear what you expecting as a result

    Hope this helps

    Remember the Code Tags in Post #1

  4. #4
    Registered User
    Join Date
    04-20-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Looping using left function resulting in Concatenate

    Quote Originally Posted by Marcol View Post
    You Could try this
    Please Login or Register  to view this content.
    Without some data to work with it isn't clear what you expecting as a result

    Hope this helps

    Remember the Code Tags in Post #1
    Thanks a lot for your help on the above, But becuase i didnt explain myself very well this isnt what i was looking for. So for example i have a column that looks like this

    DGL2279378
    BR2 Rev
    DGL2279321
    DGL2279327

    I need the code to go down that column and concatenate all the ones that begin with DGL - so would have an output as follows

    (i need the output in a cell say cell 1 column 1) output = DGL2279378 & DGL2279321 & DGL2279327


    Thanks a lot for any help

    Jaimie
    Last edited by jaimie1664; 07-12-2010 at 04:27 AM.

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Looping using left function resulting in Concatenate

    To avoid further confusion post a sample workbook showing some typical data that you have in columns K & L and on a separate sheet in the same workbook, the result you expect.
    Last edited by Marcol; 07-12-2010 at 04:45 AM.

  6. #6
    Registered User
    Join Date
    04-20-2010
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Looping using left function resulting in Concatenate

    Hi - Please find attached example data and the output i am looking for


    Thanks
    Jaimie
    Attached Files Attached Files

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Looping using left function resulting in Concatenate

    Try this
    Please Login or Register  to view this content.

    Your sample data doesn't show many variations of what your real data might look like.
    I've taken a guess and added some "possibilities"

    Best I can do based on info provided.

    Hope this helps.
    Attached Files Attached Files

+ 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