Hello! I've painted myself into a corner here with an IF/AND/OR statement. This is a generalization of what I'm trying to accomplish in Excel 2016. The column VEHICLE doesn't always contain the word "TRUCK" so it needs to be scrutinized. The following string causes Excel to tell me there is an error but I can't see where? I'm almost certain I'm overthinking this. Any assistance would be appreciated. Thanks!
[TABLE="class: grid, width: 30"]
<tbody>[TR]
[TD="align: center"]VEHICLE
[/TD]
[TD="align: center"]MAKE
[/TD]
[TD="align: center"]RESULT[/TD]
[/TR]
[TR]
[TD]TRUCK[/TD]
[TD]GMC[/TD]
[TD]USA[/TD]
[/TR]
[TR]
[TD]TRUCK[/TD]
[TD]FORD[/TD]
[TD]USA[/TD]
[/TR]
[TR]
[TD]TRUCK[/TD]
[TD]HONDA[/TD]
[TD]JAPAN[/TD]
[/TR]
[TR]
[TD]TRUCK[/TD]
[TD]DIAHATSU[/TD]
[TD]MISC[/TD]
[/TR]
</tbody>[/TABLE]
Code:
=IF(AND(ISNUMBER(SEARCH("TRUCK",U2,OR(I2="GMC",I2="FORD")))),"USA",IF(AND(ISNUMBER(SEARCH("TRUCK",U2,OR(I2="HONDA","JAPAN","MISC"))))))
[TABLE="class: grid, width: 30"]
<tbody>[TR]
[TD="align: center"]VEHICLE
[/TD]
[TD="align: center"]MAKE
[/TD]
[TD="align: center"]RESULT[/TD]
[/TR]
[TR]
[TD]TRUCK[/TD]
[TD]GMC[/TD]
[TD]USA[/TD]
[/TR]
[TR]
[TD]TRUCK[/TD]
[TD]FORD[/TD]
[TD]USA[/TD]
[/TR]
[TR]
[TD]TRUCK[/TD]
[TD]HONDA[/TD]
[TD]JAPAN[/TD]
[/TR]
[TR]
[TD]TRUCK[/TD]
[TD]DIAHATSU[/TD]
[TD]MISC[/TD]
[/TR]
</tbody>[/TABLE]