SOLVED

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

%3CLINGO-SUB%20id%3D%22lingo-sub-2215287%22%20slang%3D%22en-US%22%3ECall%20a%20certain%20name%20in%20a%20cell%20IF%20certain%20conditions%20are%20met%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2215287%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20three%20columns%20of%20data%2C%20name%2C%20gender%20and%20age.%20In%20a%20separate%20cell%2C%20I%20want%20to%20call%20show%20a%20name%20based%20on%20conditions%20on%20certain%20age%20and%20gender.%20For%20instance%20showing%20me%20the%20name%20of%20the%20person%20(in%20the%20new%20cell)%20who%20is%2050%20years%20old%20and%20is%20a%20Female.%20Having%20said%20that%2C%20I%20have%20repeatition%20in%20my%20list%2C%20how%20do%20I%20do%20that%20without%20having%20to%20worry%20about%20repeatition%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESecond%20senario%20is%20the%20same%20as%20above%20but%20this%20time%20I%20want%20to%20call%20names%20of%20people%20who%20satisfy%20a%20certain%20age%20range%20(e.g.%20between%2040%20-%2050%20years%20old)%20and%20are%20Female.%20Again%20not%20having%20repeatition.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance%20for%20the%20help.%3C%2FP%3E%3CP%3EAli%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2215287%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2215328%22%20slang%3D%22en-US%22%3ERe%3A%20Call%20a%20certain%20name%20in%20a%20cell%20IF%20certain%20conditions%20are%20met%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2215328%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F985221%22%20target%3D%22_blank%22%3E%40AliMosayyebi%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDepends%20on%20version%20of%20Excel%20you%20use.%3C%2FP%3E%0A%3CP%3EAs%20variant%2C%20you%20may%20have%203%20cells%2C%20with%20drop-down%20lists%20if%20desired%2C%20for%20min%20age%2C%20max%20age%20and%20gender.%20Based%20on%20them%20you%20FILTER()%20the%20names%20and%20wrap%20result%20by%20TEXTJOIN()%20for%20the%20case%20if%20more%20than%20one%20of%20such%20names.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional 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 (Occasional Contributor)
Solution

@AliMosayyebi 

That could be like this

image.png

 

Thanks very much, that works.

@AliMosayyebi 

You are welcome, glad it helped