Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=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 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You just have a couple of brackets wrong.
Try this: =IF(OR(LEFT(D2,4)="A123",LEFT(D2,4)="A234"),"Activ e","Inactive") Judith -- Hope this helps "EJB" wrote: 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 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Bob and Judith, so close but so far :)
It works perfectly now! Much appreciated "JudithJubilee" wrote: You just have a couple of brackets wrong. Try this: =IF(OR(LEFT(D2,4)="A123",LEFT(D2,4)="A234"),"Activ e","Inactive") Judith -- Hope this helps "EJB" wrote: 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 |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try this:
=IF(OR(LEFT(D2,4)={"A123","A234"}),"Active","Inact ive") "EJB" wrote: 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
LEFT &RIGHT formula on the same cell | Excel Discussion (Misc queries) | |||
Array Formula - using LEFT("text",4) in formula | Excel Worksheet Functions | |||
Question about using the right or left formula | Excel Discussion (Misc queries) | |||
How to change the right-to-left worksheet to left-to-right workshe | Excel Discussion (Misc queries) | |||
LEFT formula doesn't works.. | Excel Worksheet Functions |