+ Reply to Thread
Results 1 to 3 of 3

Creating a string list of cell entry - Values from excel sheet into one string w seperator

  1. #1
    Registered User
    Join Date
    07-31-2011
    Location
    Germany
    MS-Off Ver
    Excel 2003
    Posts
    2

    Creating a string list of cell entry - Values from excel sheet into one string w seperator

    Hello,

    I have Excel Sheet with surnames. It looks like

    Name1
    Name2
    Name3

    I need to search for these names in an search engine with the OR operator. What I want excel to do now is to return a string like

    Name1 OR Name 2 OR Name3

    where I define what the seperator (e.g. OR) should be. How can I do that? Since I have multiple hundred names in the sheet I dont wanna create the list by name.

    Thank you very much in advance.

    Regards

    Tackleberry

  2. #2
    Registered User
    Join Date
    12-29-2014
    Location
    Minnesota
    MS-Off Ver
    2013
    Posts
    2

    Re: Creating a string list of cell entry - Values from excel sheet into one string w seper

    Copy the formula in B2 down for as many names as you have in column A. The last row in column B will contain a string with all the names joined with "or". (You'll have to manually trim the last "or" from the string.)

    Column A Column B
    Name 1 =A1
    Name 2 =B1&" or "&A2
    Name 3 =B2&" or "&A3
    Name 4 =B3&" or "&A4
    Name 5 =B4&" or "&A5
    Name 6 =B5&" or "&A6
    Name 7 =B6&" or "&A7
    Name 8 =B7&" or "&A8
    Name 9 =B8&" or "&A9
    Name 10 =B9&" or "&A10

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Creating a string list of cell entry - Values from excel sheet into one string w seper

    Hi Tackleberry,

    I think you need to learn about Excel's Advanced Filters. They will do AND or OR types of filters.

    http://chandoo.org/wp/2011/10/10/how...anced-filters/
    https://www.youtube.com/watch?v=C_2cjh5Pd8o
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ 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. Search a cell for a string that exists in a list of values
    By jefflach in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2013, 11:23 AM
  2. Replies: 5
    Last Post: 11-08-2012, 03:38 PM
  3. if a cell equals certain list string then image on new sheet
    By davemojo82 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2009, 05:14 AM
  4. Searching for a string in a cell, and then creating a Sheet for that string
    By vmc62 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2008, 12:07 PM
  5. [SOLVED] Insert a Seperator into a number string.
    By DraCo in forum Excel General
    Replies: 3
    Last Post: 08-22-2005, 10:05 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