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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

copy a cell with a OR fuction in excel 1

Status
Not open for further replies.

jupops

Technical User
May 15, 2003
72
GB
Good evening all

I am still having troublr with OR fuctions, what I am trying to do is when a criteia is true then it will copy the cell or place in a zero.

I am using the two formulas

=IF(MID(C1,4,1)="/",C1,0) and =IF(MID(C1,4,1)="-",C1,0)

bothe formuldas work seperately but I cant merge them. Can you help?

Thgank you

Jupops
 

Since MID(C1,4,1) cannot be both "/" and "-" at the same time, I will assume you really mean it to be an OR relationship:
Code:
=IF(OR(MID(C1,4,1)="/",MID(C1,4,1)="-"),C1,0)
 
Thank You, this as worked perfectly

Cheers

Jupops
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top