+ Reply to Thread
Results 1 to 11 of 11

List Lookup

  1. #1
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    List Lookup

    I have a list of names in Column A. The names can appear numerous times. I want a formula that looks at column A and returns all listed names, but only to return the name once. So basically, if the name appears in column A, show me the name but show me it once only.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,416

    Re: List Lookup

    Assuming your data starts on row 2, with a header in row 1, you can use this formula in B2:

    =INDEX($A$2:$A$55,MATCH(0,INDEX(COUNTIF($B$1:B1,$A$2:$A$55),0,0),0))

    Change the 55 to suit your data, then copy down.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: List Lookup

    Hi

    Use this formula in B2 & drag down:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Cheers!!

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: List Lookup

    Hi,

    Rather than a formula I'd be inclined to use an Advanced Filter and tick the 'Unique' option. Or alternatively copy the list to another column and use the 'Remove Duplicates' option on the standard Ribbon menu.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: List Lookup

    Thanks Guys. BOth work great. How can I then go one step further and in the new list I've generated from your formula above, lookup the name and add the cell to the right of the name every time it appears.

    So column A is the list of names, column B is a figure, column C is now the list we've generated from the formula and column D should we the total figure added from each time the name in column C appears in column A.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,416

    Re: List Lookup

    Put this in D2:

    =SUMIF(A:A,C2,B:B)

    then copy down.

    Hope this helps.

    Pete

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: List Lookup

    =sumif(A:A,C1,B:B) should do that for you
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  8. #8
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: List Lookup

    Excellent. Cheers.

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: List Lookup

    You're welcome... and thanks for the feedback.

  10. #10
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: List Lookup

    Ran into a problem with the formula....

    Column A Row 1 my list of names start

    I'm putting the index/match formula into E1 and dragging down but it keeps returning "0".

    This is the formula I'm using in E1:

    =INDEX($A$1:$A$210,MATCH(0,INDEX(COUNTIF($E$1:E1,$A$1:$A$210),0,0),0))
    Last edited by ScabbyDog; 08-24-2015 at 06:44 AM.

  11. #11
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: List Lookup

    Nevermind, was a circular reference issue. Solved.

+ 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. Lookup and then list sub conditions and lookup again
    By slxia1 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-06-2015, 09:27 AM
  2. Formula to lookup a list and assign a category to another list
    By darrenjfox in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-06-2014, 12:05 PM
  3. Replies: 2
    Last Post: 10-25-2013, 07:01 PM
  4. [SOLVED] Lookup to a cell on sheets on a list - but list changes
    By bungaree in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-22-2013, 06:13 PM
  5. Lookup a value in list and return a value from the same list
    By ahsng in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-16-2012, 04:34 PM
  6. lookup list
    By loner2003 in forum Excel General
    Replies: 7
    Last Post: 03-11-2010, 12:19 PM
  7. Lookup a cell in a list to see if it is in the list
    By quimrider in forum Excel General
    Replies: 3
    Last Post: 12-09-2005, 02:06 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