+ Reply to Thread
Results 1 to 16 of 16

Array Formula To Return Unique Values From a Column Using a Value

  1. #1
    Registered User
    Join Date
    06-13-2011
    Location
    Little Rock, Arkansas
    MS-Off Ver
    Excel 2013
    Posts
    11

    Array Formula To Return Unique Values From a Column Using a Value

    I have two sheets. The first sheet is used to provide an overview of the rest of the workbook. In this sheet, I would like to use an employee name, Sue, to look into worksheet two and return all of the projects Sue worked on, eliminating repeats.

    Sheet one: In Cell B1 you have the name "Sue". From cell A26 down shows all of the projects Sue worked on(not repeats).

    Sheet two:
    A(name) B(date) C(job) D(project)
    Sue 1/2/15 Drafter Building 1
    John 1/2/15 Drafter Building 1
    Sue 1/3/15 Drafter Building 2
    Sue 1/2/15 Drafter Building 3
    John 1/4/15 Drafter Building 3
    John 1/5/15 Drafter Building 1
    Sue 1/8/15 Drafter Building 3
    Sue 1/9/15 Drafter Building 3
    Sue 1/9/15 Drafter Building 2


    So...Sue worked on Projects Building 1, Building 2, and Building 3.

  2. #2
    Registered User
    Join Date
    06-13-2011
    Location
    Little Rock, Arkansas
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: Array Formula To Return Unique Values From a Column Using a Value

    I cannot change the formatting of Sheet Two as it is an import of data from another program that needs to keep the same layout for future updates.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Array Formula To Return Unique Values From a Column Using a Value

    Quote Originally Posted by lucas813
    Can you help with my topic if you have time?

    http://www.excelforum.com/excel-form...ml#post3988082
    You ask just 1 member to help you with your problem.

    You get more change for an solution get help of all forummembers.

    A good start would be to follow the advice in the link below.

    http://www.excelforum.com/the-water-...-question.html
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Array Formula To Return Unique Values From a Column Using a Value

    Duplicated post.

    Probably I'm looking for more post on my counter, since this is the 2nd duplicated post today !!!!
    Last edited by oeldere; 02-12-2015 at 07:25 PM.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Array Formula To Return Unique Values From a Column Using a Value

    oeldere, not just 1 member lol...
    Hello

    Can you help with my topic if you have time?

    http://www.excelforum.com/excel-form...ml#post3988082
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,051

    Re: Array Formula To Return Unique Values From a Column Using a Value

    Put this ARRAY formula in A26, copie down ad=nd across as needed...

    =IFERROR(INDEX(Sheet2!A$2:A$10,SMALL(IF(Sheet2!$A$2:$A$10=$B$1,ROW(Sheet2!$A$2:$A$10)-1),ROWS(Sheet2!$A$1:A1))),"")

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Array Formula To Return Unique Values From a Column Using a Value

    Ford, always nice to read I am not a Remy (alone at the world) !

  8. #8
    Registered User
    Join Date
    06-13-2011
    Location
    Little Rock, Arkansas
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: Array Formula To Return Unique Values From a Column Using a Value

    Thanks for the response. I could not get the formula to work. Please help some more. Thank you.


    Test1 is without your entry, test2 is with.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    06-13-2011
    Location
    Little Rock, Arkansas
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: Array Formula To Return Unique Values From a Column Using a Value

    Also, there are currently 39,000 lines on "sheet 2". Is there a way to use Sheet2!A:A for all within the column?

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Array Formula To Return Unique Values From a Column Using a Value

    with an pivot table.

    See the attached file.
    Last edited by oeldere; 02-13-2015 at 10:20 AM.

  11. #11
    Registered User
    Join Date
    06-13-2011
    Location
    Little Rock, Arkansas
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: Array Formula To Return Unique Values From a Column Using a Value

    Your links take me to the "notify admin" page, but a pivot table. I will try that. Dont know why I was trying to use a formula here, I have loads of pivot tables used already. Thanks for the point in the right direction.

  12. #12
    Registered User
    Join Date
    06-13-2011
    Location
    Little Rock, Arkansas
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: Array Formula To Return Unique Values From a Column Using a Value

    Well, now I am having an issue of returning all values of row names where the column/row intersect contains value.

    Is it possible to provide both the formula for use of the pivot table and the formula originally asked for which does a look up on the data sheet?

    Thank you in advance.

  13. #13
    Registered User
    Join Date
    06-13-2011
    Location
    Little Rock, Arkansas
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: Array Formula To Return Unique Values From a Column Using a Value

    This is returning values, but does not eliminate repeats:

    =INDEX('Employee Data'!$A:$D,SMALL(IF('Employee Data'!$A:$A='Printout Sheet'!$B$2,ROW('Employee Data'!$A:$A)),ROW(4:4))+2,4)

  14. #14
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Array Formula To Return Unique Values From a Column Using a Value

    Hi.

    Can you just clarify which of the two files you attached earlier is of interest here? And, importantly, did you make sure to include a few of your expected results in it so that it is clear what we're aiming for?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  15. #15
    Registered User
    Join Date
    06-13-2011
    Location
    Little Rock, Arkansas
    MS-Off Ver
    Excel 2013
    Posts
    11

    Re: Array Formula To Return Unique Values From a Column Using a Value

    Test2 contains the formula suggested by FDibbins.

    The answer should say(from column D on sheet2):
    UALR
    UAMS
    ASU
    UA


    These were the four projects she worked on, and should be listed.

  16. #16
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Array Formula To Return Unique Values From a Column Using a Value

    Array formula**:

    =IFERROR(INDEX(Sheet2!$D$2:$D$25,SMALL(IF(FREQUENCY(IF(Sheet2!$A$2:$A$25=$B$1,MATCH(Sheet2!$D$2:$D$25,Sheet2!$D$2:$D$25,0)),ROW(Sheet2!$D$2:$D$25)-MIN(ROW(Sheet2!$D$2:$D$25))+1),ROW(Sheet2!$D$2:$D$25)-MIN(ROW(Sheet2!$D$2:$D$25))+1),ROWS($1:1))),"")

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).

+ 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. Return number of unique values based on values in other column
    By Medir in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-26-2013, 11:17 AM
  2. Compare cells of an array to return only the unique values
    By goodm009 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 08-17-2013, 03:00 PM
  3. add to array formula to only return unique values
    By jason892 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-11-2013, 06:39 AM
  4. [SOLVED] Array formular - Return only unique values
    By jackyong1985 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2012, 07:17 AM
  5. Replies: 2
    Last Post: 03-27-2012, 06:00 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