+ Reply to Thread
Results 1 to 7 of 7

Pulling data with duplicate rankings

  1. #1
    Registered User
    Join Date
    07-04-2009
    Location
    Singapore
    MS-Off Ver
    Office 2013
    Posts
    36

    Pulling data with duplicate rankings

    Hi guys. Base on the examples below, in Table 1, I have Column A with names and Column B with their ranking. I want to be able to pull these name(s) to Table 2. I used the formulas - Index & Match but I'm only able to pull David.. Tks in advance!

    Table 1
    David 1
    James 1
    Mary 3
    Susan 2

    Table 2
    1st David, James
    2nd Susan
    3rd Mary

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Pulling data with duplicate rankings

    Is "David, James" to appear in one cell or would you be able to list the names in adjacent columns ?

    As a rule of thumb, Excel is not good at working with String Arrays in native functions and invariably if the concatenation approach is your requirement then I'm afraid often you're looking at VBA or using 3rd party utilities like morefunc.xll (specifically MCONCAT function).

    There is however the possibility of using helper cells to alleviate the strain but we'd need to know more to be sure...

    In basic terms --- regards Table 1, assuming columns A:B in use with header row in row 1, then you could add an additional column of data @ source:

    C2: =LOOKUP(2,1/($B$1:$B1=$B2),$C$1:$C1)&", "&$A2
    copied down for all rows

    Then assuming Table2 is say in Columns E:F with headers in row 1

    E2: =IF(ROWS(E$2:E2)>MAX($B:$B),"",ROWS(E$2:E2))
    copied down as required

    F2: =IF($E2="","",LOOKUP(2,1/($B$2:$B$100=$E2),$C$2:$C$100)

    the above may not work depending on volume of names etc...and might require a slight change of tack.

    If you can provide a sample file which illustrates your data setup and desired output that would be helpful.

  3. #3
    Registered User
    Join Date
    07-04-2009
    Location
    Singapore
    MS-Off Ver
    Office 2013
    Posts
    36

    Re: Pulling data with duplicate rankings

    If it can appear in adjacent columns, is it possible then?

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Pulling data with duplicate rankings

    As suggested, post a sample and outline desired results - at present we're guessing at your set-up etc and what works in one scenario may not work in another.

  5. #5
    Registered User
    Join Date
    07-04-2009
    Location
    Singapore
    MS-Off Ver
    Office 2013
    Posts
    36

    Talking Re: Pulling data with duplicate rankings

    Hi hi Here is an example of what I'm working on.

    I hope to pull "Did not provide any reason" into F21 as it is also ranked 1.

    Hope it is detailed enough. Thanks! Any help is appreciated.
    Attached Files Attached Files

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Pulling data with duplicate rankings

    See if the attached is along the lines of your requirements - the formatting is merely to illustrate those cells I've added/amended.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-04-2009
    Location
    Singapore
    MS-Off Ver
    Office 2013
    Posts
    36

    Re: Pulling data with duplicate rankings

    wow! That's what I wanted. I have not explore using Countif and Lookup before! I will look into it. Thanks again!!!

+ 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