Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formula problem

Status
Not open for further replies.

brutus6294

Technical User
Aug 16, 2007
41
US
For some reason I'm having difficulty with this formula. All I want to do is look in the value in the next column. If the value is ABC or ABD, return ABCD . These are all text. If it is not, ABC or ABD, return whatever the value was unchanged..
Something along these lines...
=IF(F2='ABD' or F2='ABC','ABCD',F2)
 



Hi,

use "doubel quotes" to delimit text.

Skip,
[sub]
[glasses] When a group touring the Crest Toothpaste factory got caught in a large cooler, headlines read...
Tooth Company Freeze a Crowd! and
Many are Cold, but Few are Frozen![tongue][/sub]
 



Hi,

use "double quotes" to delimit text.

Skip,
[sub]
[glasses] When a group touring the Crest Toothpaste factory got caught in a large cooler, headlines read...
Tooth Company Freeze a Crowd! and
Many are Cold, but Few are Frozen![tongue][/sub]
 
Still having an issue.. Must be Monday!!!

=IF((F4="ABC" or F4="ABD"),"ABCD",F4)

My or statement is incorrect... If I take it out, works ok.. Is my syntax wrong?
Thanks!!
 



Sorry, I missed the OR thing...
[tt]
=IF(OR(F4="ABC",F4="ABD"),"ABCD",F4)
[/tt]


Skip,
[sub]
[glasses] When a group touring the Crest Toothpaste factory got caught in a large cooler, headlines read...
Tooth Company Freeze a Crowd! and
Many are Cold, but Few are Frozen![tongue][/sub]
 
-> Is my syntax wrong?

yes

=Or(condition1, condition2)

[tt]_____
[blue]-John[/blue][/tt]
[tab][red]The plural of anecdote is not data[/red]

Help us help you. Please read FAQ 181-2886 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top