if(or(left Formula

G

Guest

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"),"Active","Inactive"))

Any ideas?

Thanks in advance
 
B

Bob Phillips

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


--
---
HTH

Bob

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

Guest

You just have a couple of brackets wrong.

Try this:

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

Judith
 
G

Guest

Thanks Bob and Judith, so close but so far :)
It works perfectly now!
Much appreciated
 

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