+ Reply to Thread
Results 1 to 11 of 11

LOOKUP then Delimit

  1. #1
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    LOOKUP then Delimit

    Excellers,

    What is the VBA code to find "Website" in a column and then delimit that cell that contains "website" by space?

    Sample workbook is attached. The sheet "Data" is what it looks before. The sheet "Desired" is what it should look after. What I want to do is to write a VBA to execute this task instead of manually doing it.

    SampleV1.xlsx

    Thanks!

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: LOOKUP then Delimit

    Try the attached.
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: LOOKUP then Delimit

    This works well. But it does not when the "Website" is moved to a different row in the same column. Some report would have more data on the top and that causes the cell with "website" in it to move down... so it is variable. When the cell is moved down, the macro deletes the row with "website", making it blank.

    Hmm...

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: LOOKUP then Delimit

    Please show me with attachment, why it is not working.

  5. #5
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: LOOKUP then Delimit

    This also would not work if there is a blank row in between the data.

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: LOOKUP then Delimit

    Change this line

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

  7. #7
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: LOOKUP then Delimit

    Just in case, Have a quick look at the updated sample workbook.

    SampleV2.xlsm

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: LOOKUP then Delimit

    My code only works on column A data.
    The sheet you just attached ("data ") is blank

  9. #9
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: LOOKUP then Delimit

    "Data"... to get the data, run 'download' in the immediate window.

  10. #10
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: LOOKUP then Delimit

    I am not going to download the data for you. Beside, I am reluctant to work on data imported from website in to excel.
    Data downloaded from sites have lots of unseen characters which makes hard to work in excel. You need to download the data, clean it up and attach a large sample which mimics your actual data.

  11. #11
    Forum Contributor
    Join Date
    04-30-2013
    Location
    D.C.
    MS-Off Ver
    Excel 2010
    Posts
    192

    Re: LOOKUP then Delimit

    Ahh Okay. Wise thinking. Security is necessary. I will put the data on the sheet.

    I would like Sheets("Data") to look like what Sheets("Desired1") has... in the highlighted rows (two of them)

    Here it is.
    SampleV2.xlsm

+ 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. How to delimit only uppercase string
    By CorinthianVortex in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-24-2013, 10:17 AM
  2. [SOLVED] Parse/delimit this data
    By ziggadebo in forum Excel General
    Replies: 1
    Last Post: 08-17-2012, 06:43 AM
  3. Special delimit
    By tmoullet in forum Excel General
    Replies: 3
    Last Post: 11-16-2009, 04:48 PM
  4. How to import CSV and delimit
    By xIcePhoenix in forum Excel General
    Replies: 7
    Last Post: 11-13-2008, 08:41 AM
  5. Best way to delimit text file
    By ern in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-03-2006, 02:35 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