+ Reply to Thread
Results 1 to 3 of 3

Table summarized

  1. #1
    Registered User
    Join Date
    07-14-2012
    Location
    Montreal
    MS-Off Ver
    Mac 2011
    Posts
    2

    Table summarized

    I have a table that shows all possible answers of a thing, and by different formulas there is a "1" and a "0" when it applies based on different conditions.

    Then I want in an another table each row to list whatever has a 1 by it

    So table 1 is , for example

    A B
    1 Apples
    0 Oranges
    0 Bananas
    1 Potatoes
    0 Tomatoes
    1 Pears

    I'd like the row 1 to give apples, the row 2 to gives potatoes, row 3 to give pears.

    I was thinking of matching VLOOKUP and OFFSET. I have thought of switching column A and B of first table like VLOOKUP like look for 1s, but I dont know to skip the first result when they found the first one.

    Thanks

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Table summarized

    use a helper in say col d =if(a1=1,row(),"") drag down
    then
    =iferror(INDEX($B$1:$B$100,MATCH(SMALL($d$1:$Ad$100,ROWS($A$1:A1)),$d$1:$d$100,0)),"") drag down
    Last edited by martindwilson; 07-14-2012 at 12:01 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-14-2012
    Location
    Montreal
    MS-Off Ver
    Mac 2011
    Posts
    2

    Re: Table summarized

    Work very well.

    Thank you.

+ 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