lookup multiple search criteria but only return a value if both tr

S

se7098

is there a way to lookup multiple criteria but only return the value if both
criteria true?

i.e., column a find "bilingual" column b find "miami" return value found in
column c?
 
J

John C

=SUMPRODUCT(--(A2:A100="bilingual"),--(B2:B100="miami"),(C2:C100))

Hope this helps.
Note: If there are multiple occurances of bilingual miami, then the values
in C will be added together.
 
S

se7098

it does help for one of my situations...thank you very much.

however, i also have a situation where bilingual is in a string of words...

i.e., Home Solutions Specialists Bilingual

is there a way for it to just find the word bilingual within a string of
words in column a & then find miami in column b & return the value from
column c? or am i wishing for the stars?
 
J

John C

=SUMPRODUCT(--(B2:B100="Miami")*NOT(ISERR(SEARCH("bilingual",A2:A100)))*(C2:C100))

Hope this helps.
 
S

se7098

It worked! OMG...you have NO idea how much time this is going to save
me...thank you, thank you, thank you!
 
S

se7098

definitely :)

new issue...now i need to be able to bring back the value of all those that
do NOT contain bilingual in column a...same exact set up...is that doable?
 
J

John C

Assuming you are still wanting the Miami match, but the total that don't have
bilingual somewhere, just remove the NOT from you statement given earlier.
 
S

se7098

you are a genius...saved my life...again!

John C said:
Assuming you are still wanting the Miami match, but the total that don't have
bilingual somewhere, just remove the NOT from you statement given earlier.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top