+ Reply to Thread
Results 1 to 6 of 6

create a series of cell values from the concateneation of 2 lists based on a condition

  1. #1
    Registered User
    Join Date
    02-27-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    create a series of cell values from the concateneation of 2 lists based on a condition

    Afternoon all,
    I am a complete newbie with excel and vba, and I am struggling with a requirement:

    I have a sheet with a series of 6 URL base strings (protocol / host name / port etc) 4 of which are "business" related and 2 of which are "admin" related. I have a separate series of URL endings, again some of which are "admin" and some are "business".

    So in the example shown in the picture below cells B1:B4 are the "business" url bases
    and cells B5:B6 are the admin url bases
    Then cells A9:A21 are the url endings for business URLs and cells A22:A25 are admin url endings

    I need to create a list of cells in sheet2: each cell should contain the concatenation of one of the url bases and a url ending, such that I get a complete list of all combinations of url base and url ending. Admin URL bases should only be concatenated with admin url endings and "business" url bases should only be concatenated with "business" url endings.

    The idea being that I can generate a list of URLs to test for each new environment that gets built.....



    urltestlist.jpg

    Any help will be gratefully received....

    Cheers!
    Dave

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: create a series of cell values from the concateneation of 2 lists based on a condition

    Don't upload pictures, click GO ADVANCED and use the paperclip icon to upload an Excel workbook. Make sure that workbook has the reference data AND a mockup of the desired results.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    02-27-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: create a series of cell values from the concateneation of 2 lists based on a condition

    Apologies, still finding my way about the forum.,

    URLTestingList.xls

    Here is a sample of the format of the reference data I have and on sheet 2 the way I want it to come out.

    Hope that helps explain what I want.

    Cheers!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: create a series of cell values from the concateneation of 2 lists based on a condition

    1) Column A the URL type, must have the word ADMIN in rows that are admin URLs
    2) Column B is the base URLs
    3) Column C is the extensions to add
    4) Column D is the a/b flags

    Then run this:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    02-27-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: create a series of cell values from the concateneation of 2 lists based on a condition

    OK, that works perfectly - it will just take me a while to work out how it does it ;0)

    Thanks very much. Apparently I cant give you any more reputation yet, but you deserve it...


    Cheers!
    Dave

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: create a series of cell values from the concateneation of 2 lists based on a condition

    Glad to help. I have marked this thread solved for you.
    In the future please select Thread Tools from the menu above and mark the thread as solved. Thanks.

+ 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