2

I have an excel sheet where I want to make a list based on data in 3 columns. See the image for how the basic things looks currently.

Example of data

I have names in column A and then in column B,C and D is a mixture of colours.

How can I get excel to list the names of those who choose for example Red despite Red possibly being in B,C or D? So it looks a little like:

  • Harry Red
  • Sara Red
  • Sue Red

When it's finished it will have something like 2500 rows and "colour" choice of 27.

The output hopefully would look like this image with the ability to choose which colour it looks for

Output view

3
  • can you give more information about the desired output? maybe an image showing what the output would be in excel?
    – Brtrnd
    Jul 13, 2016 at 11:57
  • Something like i.stack.imgur.com/tOjYn.jpg would be great with the ability to choose the colour it looks for
    – NFhere
    Jul 13, 2016 at 12:04
  • you need to un-pivot your data first (there are plenty of tips for that even this site), then just create a pivot table and filter for your desired colour. Jul 13, 2016 at 12:06

1 Answer 1

1

We can use a "helper column" to gather all the names associated with the colour Red without using array functions. In E2 enter:

=IF(OR(B2="Red",C2="Red",D2="Red"),1+MAX($E$1:E1),"")

and copy down. Then in some other cell enter:

=IFERROR(INDEX(A:A,MATCH(ROWS($1:1),E:E,0)),"")

and copy down:

enter image description here

The "helper column" identifies the rows of interest. Other colours can be handled in a similar fashion.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .