+ Reply to Thread
Results 1 to 2 of 2

create a string of results from column A that have specific value in column b

  1. #1
    Registered User
    Join Date
    05-23-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    36

    create a string of results from column A that have specific value in column b

    I want to create a string of values to put in a field on sheet2 using data from sheet1. The data needs to be all usernames that are administrators.
    example
    Usernames Roles
    Bob Administrator
    James User
    Todd Administrator
    Steve User
    this should return "Bob, Steve" to a field on sheet2

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: create a string of results from column A that have specific value in column b

    See if this UDF will work for you :
    Please Login or Register  to view this content.
    Copy above code, Open VBA editor (Alt+F11), Insert->Module; Paste the code,then save and exit editor

    Copy the Role Names into Row 1 of sheet 2, then this formula into A2 of sheet2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag across
    (see attached)

    Hope this helps
    Attached Files Attached Files
    Last edited by dredwolf; 05-23-2013 at 03:46 AM.
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

+ 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