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
 All Forums
 Origin Forum
 Origin Forum
 Selecting alternate rows

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
DS123 Posted - 02/21/2013 : 06:06:34 AM
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
2   L A T E S T    R E P L I E S    (Newest First)
cpyang Posted - 02/21/2013 : 10:52:24 AM
Choose Worksheet->Reduce Rows

CP
Hideo Fujii Posted - 02/21/2013 : 10:49:48 AM
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

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000