=IF(LEFT(C1,1)="F",C1,"")
Main Topics
Browse All TopicsI was trying to use Excel if statement for string using wildcard character. I was trying to use luke this
=If (C1="F*","F")
But, it didnot work. I know that LEFT command does this. But, can we use IF in this case?
Secondly, I want to string from one cell to another. I was doing like this
=IF (C1.value="F-1", "F-1", (C1.value=0, ""))
Can anyone please help me fix this.
Thanks.
OKD
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi all,
I was looking for an answer to a similar question and came up with this. Hope this helps somebody.
=IF(ISERROR(SEARCH("Test",
The search function will look to see if Test is in the field at all, so it may not be exactly what you were looking for.
Just be aware that ISERROR returns false if it does find it rather than the other way around. That's why the ouput may seem backwards.
Hope this helps somebody,
Danny
Business Accounts
Answer for Membership
by: byundtPosted on 2006-05-25 at 18:07:01ID: 16765763
Hi okd, ue to return if C1 does not begin with F)
,"", value if C1 is neither of the preceding))
1) IF does not take wildcards. COUNTIF, MATCH and VLOOKUP do take wildcards, however. For you immediate problem, I suggest using LEFT:
=IF(LEFT(C1,1)="F","F",val
2) A formula in one cell cannot change the value in another cell.
It is possible to nest IF functions to handle multiple possibilities:
=IF(C1="F-1","F-1",IF(C1=0
Hoping to be helpful,
Brad