SOLVED

Call a certain name in a cell IF certain conditions are met

Copper Contributor

Hello,

 

I have three columns of data, name, gender and age. In a separate cell, I want to call show a name based on conditions on certain age and gender. For instance showing me the name of the person (in the new cell) who is 50 years old and is a Female. Having said that, I have repeatition in my list, how do I do that without having to worry about repeatition?

 

Second senario is the same as above but this time I want to call names of people who satisfy a certain age range (e.g. between 40 - 50 years old) and are Female. Again not having repeatition.

 

Thanks in advance for the help.

Ali

5 Replies

@AliMosayyebi 

Depends on version of Excel you use.

As variant, you may have 3 cells, with drop-down lists if desired, for min age, max age and gender. Based on them you FILTER() the names and wrap result by TEXTJOIN() for the case if more than one of such names.

I use Excel (office 365). Could you be able to share an example with me, please?
best response confirmed by AliMosayyebi (Copper Contributor)
Solution

@AliMosayyebi 

That could be like this

image.png

 

Thanks very much, that works.

@AliMosayyebi 

You are welcome, glad it helped

1 best response

Accepted Solutions
best response confirmed by AliMosayyebi (Copper Contributor)
Solution

@AliMosayyebi 

That could be like this

image.png

 

View solution in original post