+ Reply to Thread
Results 1 to 6 of 6

Lookup and display top 4 deals in each state by contract value

  1. #1
    Registered User
    Join Date
    07-24-2014
    Location
    Plano, Texas
    MS-Off Ver
    2013
    Posts
    19

    Lookup and display top 4 deals in each state by contract value

    Hello, I need to create a separate sheet that displays the top 4 deals in each state based on their contract value. I am not exactly how to go about this - but the data that this tab will be pulling from will constantly be added to.

    I basically need to say, if state equals "Alaska" then display the row with highest contract value, the row with 2nd highest contract value, 3rd, 4th


    Here is my example, thank you in advance
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Lookup and display top 4 deals in each state by contract value

    Try this array formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Array formulas are confirmed with Ctrl+Shift+Enter, not just Enter.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  3. #3
    Forum Expert
    Join Date
    02-19-2013
    Location
    India
    MS-Off Ver
    07/16
    Posts
    2,386

    Re: Lookup and display top 4 deals in each state by contract value

    try below for contract value
    copy paste below in E3 then hold control and shift together then hit enter to make it array formula
    =IFERROR(LARGE(IF(Data!$D$10:$D$100=INDIRECT("A"&MAX(IF(MOD(ROW($A$1:A1)-1,4)+1=1,ROW($A$3:A3)))),Data!$F$10:$F$100),MOD(ROW(A1:A1)-1,4)+1),"")
    change the red part to meet your original data range

    then drag down
    Last edited by hemesh; 08-04-2014 at 02:55 PM.
    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    WANT TO SAY THANKS, HIT ADD REPUTATION (*) AT THE BOTTOM LEFT CORNER OF THE POST

    More we learn about excel, more it shows us, how less we know about it.

    for chemistry
    https://www.youtube.com/c/chemistrybyshivaansh

  4. #4
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Lookup and display top 4 deals in each state by contract value

    A slight change. This will work better in cell E3
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-24-2014
    Location
    Plano, Texas
    MS-Off Ver
    2013
    Posts
    19

    Re: Lookup and display top 4 deals in each state by contract value

    Neither of these are working for me. So to explain a little better, I have a spreadsheet with hundreds of potential contracts. They all have a date, status, description, value and URL. On a separate sheet, I want to have a table with all 50 states. I want this table to show the top 4 deals (highest contract values) so I was thinking some sort of lookup that returns multiple values

  6. #6
    Registered User
    Join Date
    07-24-2014
    Location
    Plano, Texas
    MS-Off Ver
    2013
    Posts
    19

    Re: Lookup and display top 4 deals in each state by contract value

    @Hemesh.. could you explain the meaning of this for me so I can try to follow?

+ 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. [SOLVED] Lookup State Name from State Code and and Display in column in COUNTIES worksheet.
    By Jim15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-11-2014, 02:41 PM
  2. Excel 2007 : City State Lookup Match formula help
    By rschopper in forum Excel General
    Replies: 0
    Last Post: 01-27-2011, 03:11 PM
  3. Web lookup query (have: city & state | want: zip code)
    By avatarr in forum Excel General
    Replies: 0
    Last Post: 04-07-2010, 10:49 PM
  4. Lookup up state abbreviations
    By Chakon in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-04-2009, 02:16 PM
  5. Lookup:Staff,Contract
    By nussbaum in forum Excel General
    Replies: 1
    Last Post: 02-24-2005, 08:06 PM

Tags for this Thread

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