Can't get my IF formula just right

G

Greg

This is my formula =IF(=OR(Summary!A15<>"H*",Summary!A15<>"P*"),=Summary!A15))

What I want to do is if the cell starts with the Letter H or P than I want
to return that cell as the true statment. If not than nothing. What am I
doing wrong. Somebody please help.
 
G

Guest

Hi

Here's one way around it:
=IF(OR(LEFT(Summary!A15,1)<>"H",LEFT(Summary!A15,1)<>"P"),Summary!A15)

Hope this helps.
Andy.
 
S

Sloth

=IF(OR(LEFT(Summary!A15,1)="H",LEFT(Summary!A15,1)="P"),Summary!A15,"")

you had some eraneous "=". Also, the wildcard can't be used in this manner.
 
S

SteveG

Try it this way.

=IF(OR(LEFT(Summary!A15,1)="H",LEFT(Summary!A15,1)="P"),Summary!A15,"")

Does that help
 
G

Greg

All your help is perfect. Except I want one more piece of the puzzle. I
only want the data from A15 if it starts with an H or P. Is there something
needed if it's false.
 
G

Greg

All your help is perfect. Except I want one more piece of the puzzle. I
only want the data from A15 if it starts with an H or P. Is there something
needed if it's a false statement. If it's false I want to return it blank.
 
G

Greg

All your help is perfect. Except I want one more piece of the puzzle. I
only want the data from A15 if it starts with an H or P. Is there something
needed if it's a false statement. If it's false I want to return it blank.
 
Top