If the cell starts with. or with..

Solved
loeh -  
Raymond PENTIER Posted messages 58545 Registration date   Status Contributeur Last intervention   -
Hello,

I would like to know in Excel 2003 the function
IF the cell starts with X or Y or Z, THEN... ELSE nothing

I have the function IF(MID(A1,1,3)="abc",d,"")
but I don't know how to integrate the OR, for example: if the cell starts with abc, def or ghi.

Thank you all!! :-))

Configuration: Windows XP / Internet Explorer 6.0

2 réponses

Vaucluse Posted messages 27336 Registration date   Status Contributeur Last intervention   6 453
 
Hello
=IF(LEFT(A1,1)="X",result,"")

if all the coded letters must give the same result:
=IF(OR(LEFT(A1,1)="X",LEFT(A1,1)="Z",....,....),result,"")

Regards

12
loeh
 
Thank you very much for responding so quickly, I'm trying right away!!
0