+ Reply to Thread
Results 1 to 3 of 3

Hi, Need help with returning multiple values into single cell

  1. #1
    Registered User
    Join Date
    08-27-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    1

    Hi, Need help with returning multiple values into single cell

    Hi This is my first post. I have a query, basically I need to return multiple values into a single cell. From the data below I need the employees belong to one Cost Centre and I need to enter the employee numbers in one cell as shown below. Please advise if I can use Vlookup and Concatanate to fix this and I am not a VBA user.

    Thank You

    Samuel

    1950/1 14080, 22388, 14097, 14099



    Cost Centre Emp No
    1950/1 14080
    1950/1 22388
    1950/1 14097
    1950/1 14099
    1950/1 14108
    1950/1 14112
    1950/1 14115
    1950/1 14116
    1950/1 14117
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Hi, Need help with returning multiple values into single cell

    The thing you want to achieve can be done through VBA, Follow the Link Below
    http://www.excelforum.com/tips-and-t...geravatar.html

    after copying and pasting code in your workbook Use an If function with above function to get the results i.e. in E2 copy paste below
    =ConcatAll(IF($A$3:$A$14=D3,$B$3:$B$14,""),",") then hold control and shift then hit enter and drag down
    Last edited by hemesh; 04-30-2014 at 06:06 AM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  3. #3
    Forum Contributor
    Join Date
    08-22-2013
    Location
    Kent, England
    MS-Off Ver
    Excel 2010
    Posts
    157

    Re: Hi, Need help with returning multiple values into single cell

    Quote Originally Posted by sam189 View Post
    Hi This is my first post. I have a query, basically I need to return multiple values into a single cell. From the data below I need the employees belong to one Cost Centre and I need to enter the employee numbers in one cell as shown below. Please advise if I can use Vlookup and Concatanate to fix this and I am not a VBA user.

    Thank You

    Samuel

    1950/1 14080, 22388, 14097, 14099



    Cost Centre Emp No
    1950/1 14080
    1950/1 22388
    1950/1 14097
    1950/1 14099
    1950/1 14108
    1950/1 14112
    1950/1 14115
    1950/1 14116
    1950/1 14117

    Hi Sam,

    In the attached workbook I've used the same example table you used but instead of manually entering the answers there is now a UDF to automatically generate the answers.

    There is a macro running on this sheet as it is a user defined formula.

    Give me a message if you need any more help.

    If this helped could you please Add to my Reputation?

    Thanks.
    Attached Files Attached Files
    If this answer helped you then could you please click "Add Reputation"

+ 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] Excel - Returning multiple values in a single cell that match criteria
    By amazinz2006 in forum Excel General
    Replies: 13
    Last Post: 01-25-2014, 09:35 PM
  2. Checking for single value, returning Multiple values
    By English_Bloke82 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-11-2013, 01:31 PM
  3. Returning a value to a single cell based on multiple values elsewhere.
    By archieross in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-05-2012, 07:35 PM
  4. Returning ordered values from a string in a single cell
    By Dissonant in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-23-2010, 12:52 PM
  5. Returning a multiple-result lookup to a single cell
    By shockeroo in forum Excel General
    Replies: 2
    Last Post: 04-17-2009, 03:54 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