The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 OR for IF function
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

dominik.mierzwa

Poland
128 Posts

Posted - 11/24/2022 :  03:08:00 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2022
Operating System: W10

Hi,
Please forgive me for asking a stupid question. I used it but I forgot how to compare two conditionals in IF function.

if(B$=="V*"|"r*", (A-B)/(A-C),-)

I used | as OR but it does not work. Values in Col(B) are string type data.



Kind regards,
Dominik

Shirley_GZ

China
Posts

Posted - 11/24/2022 :  04:20:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Dominik,

Please try the formula below:

if(B$ =="V*"||B$ == "r*", (A-B)/(A-C),0/0)

Here, I suppose the false_value is missing value.

Thanks,
Shirley

Originlab Technical Service Team
Go to Top of Page

dominik.mierzwa

Poland
128 Posts

Posted - 11/24/2022 :  04:45:50 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by Shirley_GZ

Hi Dominik,

Please try the formula below:

if(B$ =="V*"||B$ == "r*", (A-B)/(A-C),0/0)


Thanks,
Shirley



Hi Shirley,

I am really embarrassed Thank you it works.

Kind regards,
Dominik
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000