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
 if and then in Origin
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

TimSch

4 Posts

Posted - 01/06/2019 :  06:51:23 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin 2017G (64-bit) SR2; b9.4.2.380

Hello,

I need your help! At the attached image you see three books. I want to do following thing:

I want to use the Data Y of Book1 and say: If the value in this column is >1 then use the value of Column Data Y of Book2 and put this value in column B(Y) of Book3. If the value in B(Y) of Book1 is <1 then put the value 0 in column B(Y) of Book3.

Thank you for your help!

Edited by - TimSch on 01/06/2019 07:15:33 AM

AmandaLu

439 Posts

Posted - 01/07/2019 :  02:09:00 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Please try conditional operator (?:). For example, define such in the “Before Formula Script”

range nB1=[book1]Sheet1!col(2);
range nB2 = [book2]Sheet1!col(2);

then enter

nB1>=1 ? nB2 : 0

in the formula edit box.

Thanks,
Amanda
OriginLab Technical Service
Go to Top of Page

TimSch

4 Posts

Posted - 01/07/2019 :  03:34:56 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

it is working! Thanks a lot!

Best Regards
Tim
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