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
 Different data ranges in a column
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

freddie_mclair

United Kingdom
7 Posts

Posted - 01/23/2016 :  11:23:27 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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

Edited by - freddie_mclair on 01/23/2016 11:24:22 AM

SeanMao

China
288 Posts

Posted - 01/24/2016 :  9:11:21 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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.
Go to Top of Page

freddie_mclair

United Kingdom
7 Posts

Posted - 01/25/2016 :  1:44:47 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Edited by - freddie_mclair on 01/25/2016 1:47:38 PM
Go to Top of Page

SeanMao

China
288 Posts

Posted - 01/25/2016 :  7:35:57 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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

Go to Top of Page

freddie_mclair

United Kingdom
7 Posts

Posted - 01/26/2016 :  12:54:47 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Sean,

Wow, thanks a lot, this worked out perfectly!

Regards!

Freddie
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