+ Reply to Thread
Results 1 to 4 of 4

Large Formula with Duplicate Values

  1. #1
    Registered User
    Join Date
    02-05-2013
    Location
    San Francisco
    MS-Off Ver
    Excel 2007
    Posts
    7

    Large Formula with Duplicate Values

    Hi,

    I have a list of six loans and some contain duplicate amounts. Column A is the Loan Name and Column B is the amount of the loan:

    Loan XYZ, $300
    Loan ABC, $300
    Loan MNO, $200
    Loan PQR, $250
    Loan HIJ, $250
    Loan 123, $100

    How would I display the top five loans with its corresponding loan amount, regardless of the duplicate values, with an array formula? Would I have to assign, in Column C, a unique value for each row?

    I used the following formulas to pull the loan amounts:
    =LARGE($B$1:$B$6,COUNTIF($B$1:$B$6,MAX($B$1:$B$6))+0)
    =LARGE($B$1:$B$6,COUNTIF($B$1:$B$6,MAX($B$1:$B$6))+1)
    =LARGE($B$1:$B$6,COUNTIF($B$1:$B$6,MAX($B$1:$B$6))+2)
    =LARGE($B$1:$B$6,COUNTIF($B$1:$B$6,MAX($B$1:$B$6))+3)
    =LARGE($B$1:$B$6,COUNTIF($B$1:$B$6,MAX($B$1:$B$6))+4)

    I used the following formula to pull the loan name:
    =INDEX($A$1:$A$6,MATCH([Dollar Amount of Loan],$B$1:$B$6,0))

    The result I keep getting, which I don't want, is this:
    Loan XYZ, $300
    Loan XYZ, $300
    Loan PQR, $250
    Loan PQR, $250
    Loan MNO, $200

    My intended result would look like this:
    Loan XYZ, $300
    Loan ABC, $300
    Loan PQR, $250
    Loan HIJ, $250
    Loan MNO, $200

    I hope this is clear and apologize if it's confusing. Any help would be so appreciated.


    Thanks,

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Large Formula with Duplicate Values

    hi triv, it would be much better if you can upload a sample Excel file next time. see if the file here helps.

    to upload, press "Go Advanced" beside the "Post Quick Reply" button & click on the paperclip icon
    ideally, it should contain your desired results
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Large Formula with Duplicate Values

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


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


    Drag both the formula's down....


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    02-05-2013
    Location
    San Francisco
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Large Formula with Duplicate Values

    Quote Originally Posted by benishiryo View Post
    hi triv, it would be much better if you can upload a sample Excel file next time. see if the file here helps.

    to upload, press "Go Advanced" beside the "Post Quick Reply" button & click on the paperclip icon
    ideally, it should contain your desired results
    Thank you, benishiryo. I will keep that suggestion in mind next time. I do apologize if I was a bit confusing. I'll try your solution tonight and see how it goes. thanks again for the reply.


    Quote Originally Posted by :) Sixthsense :) View Post
    In D1 cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


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


    Drag both the formula's down....
    Thanks, Sixthsense. I'll also try your solution.


    This forum is awesome.

+ 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