+ Reply to Thread
Results 1 to 4 of 4

Convert Excel data Into A Semicolon Separated Text List

  1. #1
    Registered User
    Join Date
    03-03-2014
    Location
    Cleveland, OH
    MS-Off Ver
    Excel 2010
    Posts
    2

    Question Convert Excel data Into A Semicolon Separated Text List

    Hello everyone!

    I'm new at the Excel macro thing, I am a VBScript dabbler though. I've been trying to adapt various Column and Row to CSV code snippets and its just not working the way I need. I have a feeling it is stopping when it hits a blank placeholder cell. Please help me

    I have a spreadsheet used to generate data for a vendor application. I wanted it set up so that when my user clicks Cell A1, then all data from B3 to FG1000 (or wherever the rows stop) is placed in cells A3 through A-whatever in a semicolon-separated values list. The user will then be able to copy/paste the text string into a notepad to create a plain text file. I also need to have any column that is blank remain so, it should show up as ;; in the string.

    The adapted code snippet I've been working off is here:

    Please Login or Register  to view this content.
    Any help is greatly appreciated!

    Thanks,

    Oscar

  2. #2
    Forum Contributor
    Join Date
    04-24-2007
    Location
    NYC
    MS-Off Ver
    2k3/2k7/2010
    Posts
    270

    Re: Convert Excel data Into A Semicolon Separated Text List

    So you are going left to right then down? And you want to make each cell end in a ;?

  3. #3
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Convert Excel data Into A Semicolon Separated Text List

    Try:
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  4. #4
    Registered User
    Join Date
    03-03-2014
    Location
    Cleveland, OH
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Convert Excel data Into A Semicolon Separated Text List

    Quote Originally Posted by OllyXLS View Post
    Try:
    Please Login or Register  to view this content.
    OllyXLS thank you!! That is almost perfect! The only issue is that I had some custom formatting on a few columns to format dates and add leading zeroes, can we preserve that?

    Specifically:

    S3, CC3, CD3 on down : Custom Format mmddyyyy
    T3 on down : Custom Format "0"#

    Thanks again!

    Oscar

+ 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. [SOLVED] separate list of names in same cell separated by semicolon into one single list
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2014, 11:18 AM
  2. [SOLVED] extract text from semicolon separated string
    By sharathnarayanan in forum Excel General
    Replies: 5
    Last Post: 08-12-2013, 08:53 AM
  3. separated by a semicolon
    By Kiluk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2013, 02:38 AM
  4. "Factor out" semicolon separated data
    By SimonDorfman in forum Excel General
    Replies: 2
    Last Post: 08-25-2011, 12:52 PM
  5. Column with semicolon-separated values
    By nsv in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-22-2006, 08:22 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