+ Reply to Thread
Results 1 to 4 of 4

Multiple value occurence index/match

  1. #1
    Registered User
    Join Date
    01-05-2005
    Posts
    1

    Multiple value occurence index/match

    I'm having trouble pinning down the right formula to generate a report drawing from the following hypothetical data. This is how the data is arranged

    City Country Size Category
    Berlin Germany 2
    L.A. USA 3
    S.F. USA 2
    Madrid Spain 2
    Pitt USA 1

    The report I'm trying to generate lists the cities and its size by country. The USA report will look like.

    USA
    City Size Category
    L.A. 3
    S.F. 2
    Pitt 1

    I need this report to be generated dynamically. Essentially if the country is designated as USA the report will pull the city name and size category. I am able to generate the first line of the report with the following formulas: =INDEX(A2:C6,MATCH("usa",B2:B6,0),1) and =INDEX(A2:C6,MATCH("usa",B2:B6,0),3)

    The problem is that I can't figure out how to complete the report because the value USA has multiple occurences. Copying the above formula repeatedly returns the first line of the report "L.A." "3" because it is the first occurence of value USA. How do I return the the series of next occurences of value USA? (that will report "S.F." "2" and "Pitt" "1")

    Thanks for the help.

  2. #2
    Registered User
    Join Date
    07-31-2012
    Location
    us
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Multiple value occurence index/match

    I have the almost the same problem.
    Whenever you get your answer, can you forward to me. Thanks

  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Multiple value occurence index/match

    Hello JVJNGO
    if you can start another thread and post a sample workbook there and with what you expect to be the outcome, i'm sure someone could lend you a hand.

    thanks.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Multiple value occurence index/match

    I would go with pivot tables...

    See attached.
    Attached Files Attached Files
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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