I have a really great formula (not my own design) which does 99% of what I want but falls at the last hurdle. My spreadsheet is basically a 2 column list of things, for example fruits, with a corresponding attribute, such as colours. So A:A might contain apple, apple, banana, banana... and the corresponding entries in B:B would be red, green, yellow, green... Elsewhere I have a horizontal list in row 1:1 starting in cell H1, with every fruit header: apple, banana... under which the formula:
{=IF(ISERROR(INDEX($A$1:$B$75,SMALL(IF($A$1:$A$75=H$1,ROW($A$1:$A$75)),ROW(1:1)),2)),"",INDEX($A$1:$B$75,SMALL(IF($A$1:$A$75=H$1,ROW($A$1:$A$75)),ROW(1:1)),2))}
can be dragged down and across to list all the attributes that ever appear with that fruit. (The apple column would have red and green in it, in this example.)
However I got this from minor edits to an existing spreadsheet and what I really want to have is a vertical list in H:H starting from H:2 with my headings which then give horizontal lists of all the attributes. I am new to array functions and really struggling to make this happen.
I would be hugely grateful if anyone can advise me.</SPAN>
{=IF(ISERROR(INDEX($A$1:$B$75,SMALL(IF($A$1:$A$75=H$1,ROW($A$1:$A$75)),ROW(1:1)),2)),"",INDEX($A$1:$B$75,SMALL(IF($A$1:$A$75=H$1,ROW($A$1:$A$75)),ROW(1:1)),2))}
can be dragged down and across to list all the attributes that ever appear with that fruit. (The apple column would have red and green in it, in this example.)
However I got this from minor edits to an existing spreadsheet and what I really want to have is a vertical list in H:H starting from H:2 with my headings which then give horizontal lists of all the attributes. I am new to array functions and really struggling to make this happen.
I would be hugely grateful if anyone can advise me.</SPAN>