View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default if(or(left Formula

=IF(OR(LEFT(D2,4)="A123",LEFT(D2,4)="A234"),"Activ e","Inactive")


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"EJB" wrote in message
...
Hi, I am trying to write a "combination" IF formula that will look at the
first 4 characters in a cell (in total in a cell there are 8 characters)
and
if they equal "A123" or "A234" - a result will display in another cell.

I was trying this
=IF(Or(LEFT(D2,4)="A123",(LEFT(D2,4)="A234"),"Acti ve","Inactive"))

Any ideas?

Thanks in advance