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
 subtracting reference data from multiple data sets
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

SevLaur19

USA
1 Posts

Posted - 10/20/2021 :  2:09:55 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,
I'm wondering if there is a way to subtract a reference data set from a number of different workbooks in one go. As far as I see, I can only add a single input (selecting more does not work) and manually doing this for hundreds of workbooks is tedious and prone to errors. Is there a smart way to do this?
Thanks!
Origin Ver. Origin Pro 2020 and Service Release: 9.7.0.188
Operating System: Windows 10


LS

snowli

USA
1386 Posts

Posted - 10/20/2021 :  5:12:33 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You can write a script to loop through all books and subtract col B of each book with col A in Sheet1 of Book1

Choose Window: Script window and put the following code in. Highlight all and press Enter key

range ref=[book1]1!1;
doc -e LB {
col(B)=col(B)-ref;
}

Thanks, Snow
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