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
 Selecting alternate rows
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

DS123

United Kingdom
1 Posts

Posted - 02/21/2013 :  06:06:34 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi guys,

I'd just like to know if there was any way to select and/or delete alternate rows? essentially I have some data of which I may only need to analyse every other row and am hoping to find a way in which i can select these (or delete the others) without having to go through doing it manually.

Thanks

Hideo Fujii

USA
1582 Posts

Posted - 02/21/2013 :  10:49:48 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi DS123,

I think you can use the Worksheet Query tool ("Worksheet> Worksheet Query" menu). In this tool, for example, you can use the following condition formula:
i-(int(i/2)*2)=0
to select the rows which are at the even-number row numbers. ("i" is a system variable to show the index.)
In this tool, you can choose "Select" radio button for the output option just to select the hit rows. (If you choose "Extract New Worksheet", you can create a worksheet with the hit records.)

After selecting the alternated rows, you can delet the rows by right-clicking the worksheet, and select "Delete" flyout. (or choose "Edit> Delete" menu).

Hope this is what you wanted.

--Hideo Fujii
OriginLab
Go to Top of Page

cpyang

USA
1406 Posts

Posted - 02/21/2013 :  10:52:24 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Choose Worksheet->Reduce Rows

CP
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