+ Reply to Thread
Results 1 to 4 of 4

Arrange data from table

  1. #1
    Registered User
    Join Date
    02-06-2011
    Location
    Tel aviv, Israel
    MS-Off Ver
    Excel 2013
    Posts
    59

    Arrange data from table

    Hi,
    I have a list with many details, and I would like to extract the details and sort them by rank.

    as you can see in the attached file (this is only an example of the huge table I have), I have list of countries (column B), in each country I have sites (column C) that generates X revenues each (column D).
    I already added a rank formula to arrange the order of revenues within the table (column A - I removed the actual formula in the example attached).

    now I'm trying to have a list (as can be seen on the right) for each country arranged by rank (1,2,3...) with the name of the site and its revenues.
    I struggled with Vlookup , If's , Sumproduct formulas, and others, and I can't find the solution.

    your assistance is much appreciated
    thanks.
    Attached Files Attached Files

  2. #2
    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: Arrange data from table

    For the first table, in g2 and copy down and across this Array(control+shift+enter-not just enter) formula.

    =IFERROR(INDEX(C$2:C$10;SMALL(IF($B$2:$B$10=$F$1;ROW(C$2:C$10)-1);ROW(C1)));"")

    If you need change all semi colons in my formula to comma.
    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.

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

    Re: Arrange data from table

    hi atlant15, you could use this non-array formula:
    =INDEX(C$2:C$10,MATCH($F2&$F$1,INDEX($A$2:$A$10&$B$2:$B$10,),0))

    but it has to be changed for every different countries. if you want something something that be applied to all, make sure that your actual data is really like this example because the formulas might be very sensitive to the columns & rows

    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

  4. #4
    Registered User
    Join Date
    02-06-2011
    Location
    Tel aviv, Israel
    MS-Off Ver
    Excel 2013
    Posts
    59

    Re: Arrange data from table

    Wonderful, both great solutions.
    thank you both

    benishiryo - I didn't know you cac match 2 or even mor crateira by using the '&' sign like that - good to know.

    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