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
 Different data ranges in a column

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
freddie_mclair Posted - 01/23/2016 : 11:23:27 AM
Hi,

I would like to have a column with different sequential data, from 0.001 to 1, with increments of 0.001, and then from 1 to 10000 with increments of 1. How can I do this?

I know how to work out the "datarange" function, but I don't know if it is possible to concatenate two different data ranges functions sequentially.

Here's what I would like to have:

A(Y)
--------
0.001
0.002
0.003
...
1
2
3
...
10000
--------

Thanks in advance!

Freddie

Origin Ver.: OriginPro 2016
Operating System: Windows 7 Professional
4   L A T E S T    R E P L I E S    (Newest First)
freddie_mclair Posted - 01/26/2016 : 12:54:47 PM
Hi Sean,

Wow, thanks a lot, this worked out perfectly!

Regards!

Freddie
SeanMao Posted - 01/25/2016 : 7:35:57 PM
Hi,

I should have mentioned this earlier. You can run script to set maximum row number wks.nrows = 10999; before running the formula in Before Formula Scripts section as shown below:



Regards!

Sean



quote:
Originally posted by freddie_mclair

Hi Sean!

Thanks a lot! This worked, but in order to get the full column (up to 10000) I had to set "Row(i): From 1 To 10999" in the "Set Values" menu.
Is there any other way to make it automatically? Because the first time I tried it, it only filled the values until Row 32 (which was the default number of rows when I opened the Workbook).

Thanks again

Regards!

Freddie

freddie_mclair Posted - 01/25/2016 : 1:44:47 PM
Hi Sean!

Thanks a lot! This worked, but in order to get the full column (up to 10000) I had to set "Row(i): From 1 To 10999" in the "Set Values" menu.
Is there any other way to make it automatically? Because the first time I tried it, it only filled the values until Row 32 (which was the default number of rows when I opened the Workbook).

Thanks again

Regards!

Freddie
SeanMao Posted - 01/24/2016 : 9:11:21 PM
Hi,

You can use Set Column Value dialog to enter the formula i<=1000?i*0.001:(i-999) as shown in the figure below:




Regards!

Sean

OriginLab Tech.

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