Stuck on simple formula.

PACULA

New Member
Joined
Aug 12, 2020
Messages
6
Could you some help, a co-worker and I have been stuck forever on this.

Jungle.JPG


When the Location is the Jungle and the Country US AND the description is EITHER Tiger or Lion, return Animal. Otherwise, return column B (not found).

In the green section I can get Animal but the formula always returns FALSE if any of the conditions isn't true instead of not found.

Formula is below...what am I doing wrong?

=IF(AND(A2="Jungle",LEFT(D2,2)="US"),IF(ISNUMBER(SEARCH("Lion",N2)),"Animal",IF(AND(A2="Jungle",LEFT(D2,2)="US"),IF(ISNUMBER(SEARCH("Tiger",N2)),"Animal",IF(AND(A2="Jungle",LEFT(D2,2)="US"),B2)))))
 
I send a little example here:
Mappe1
ABCDEF
1
2
3DogCatDogUS22Ways of the Dog Inc.
4CatCatUS22ways of the Cat Inc.
5
6
Ark1
Cell Formulas
RangeFormula
C3:C4C3=IF(AND(A3="Dog",LEFT(D3,2)="US"),IF(ISNUMBER(SEARCH("Dog",E3)),"Dog",B3),B3)
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Ebea, I'm new to this board (as a poster, anyways) and hope that I'm ok in posting a link to my file on Google Drive. If I'm supposed to follow another process, happy to.

If you try to input the formula suggested, you'll see the error message/suggested correction. If the correction is made, it's still false. If the correction isn't made, the formula fails.

MREXCEL file
In you'r example, the B3 at the end of you'r Formula, are still missing. That's why you get the FALSE in return.
 
Upvote 0
Thanks Ebea. Yep, I left it out so you could see that the ; didn't work when added in. But that looks like the comma issue and is solved. I'm working through the implications and if the model will work now.

Either way, I'll check back in to either ask more questions for offer more thanks to you and Dave: ).
 
Upvote 0

Forum statistics

Threads
1,215,036
Messages
6,122,794
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top