+ Reply to Thread
Results 1 to 8 of 8

Create unique list based on specific criteria

  1. #1
    Registered User
    Join Date
    06-14-2013
    Location
    Hants, UK
    MS-Off Ver
    Excel 2010
    Posts
    13

    Create unique list based on specific criteria

    Hi all - my first post...

    I have an excel problem which is causing me brain ache...

    I have a spreadsheet with a list of countries in column A. A1 contains the title "Destination" and A2:A120 contains the list of countries (e.g Botswana, Ecuador, Malaysia, Zimbabwe etc - there are 120 so far in alphabetical order). Column C contains their geographical region of the world. C1 has the heading "Region" and C2:C120 contains the corresponding region (e.g Africa, Latin America, Asia etc).

    So, in column D I am trying generate a list of all African countries (D1 has the heading "Africa"). In column E I am trying to generate a list of all Latin American countires (E1 has the heading "Latin America") - and so on with the other columns and regions.

    In cell D2 I have had some success using a reverse lookup formula, which provides the first African destination for the Region list (=INDEX($A$2:$A$120,MATCH($D$1,$C$2:$C$120,0)), but copying this down the colomn cells doesn't create a list of unique data entries; it just repeats "Botswana".

    I have tried putting a feeder column in, but haven't found a formula that works yet and am totally stuck.

    So - there you have it! How can I get the formula to provide the next country in the region (ie do the same reverse look up, but providing the next country afer the one previously given)?

    Can anyone help?

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Create unique list based on specific criteria

    Try This..

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Registered User
    Join Date
    06-14-2013
    Location
    Hants, UK
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Create unique list based on specific criteria

    Hi Deb

    Thanks for your reply.

    Your suggestion is the exact same that I have tried using, it still won't help me create the next (different) unique African country in the list.

    Any advances on this formula woud lhelp...

    Thanks

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Create unique list based on specific criteria

    Perhaps using an Array formula OR helper column with regular formula. Upload a small sample workbook. I'm too lazy for typing...
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

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

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Registered User
    Join Date
    06-14-2013
    Location
    Hants, UK
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Create unique list based on specific criteria

    Hi - I have attached the file...thanks for your help.
    Attached Files Attached Files

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Create unique list based on specific criteria

    Ok.

    So in D2 put this ARRAY formula. Copy down and across.

    =IFERROR(INDEX($A$2:$A$120,SMALL(IF($C$2:$C$120=D$1,ROW($A$2:$A$120)-1),ROW(A1))),"")

  7. #7
    Registered User
    Join Date
    06-14-2013
    Location
    Hants, UK
    MS-Off Ver
    Excel 2010
    Posts
    13

    Re: Create unique list based on specific criteria

    "Now that's Magic" - Awesome!

    Works a treat - thanks so much Fotis

    Joynesy

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Create unique list based on specific criteria

    .............................

+ 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