Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Worksheet Function to Create Array of Size n with values x Through

Trying to use combination of Rept function to generate an array of like
values. I then want to use this array to plot a straight line on a chart.

Is there an easier way to do this, is it possible.

Cheers


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Worksheet Function to Create Array of Size n with values xThrough

REPT is used for text values - not much use for graphs.

You could put this formula in A1:

=ROW()

and this one in B1:

=A1*C$1 + D$1

where C1 represents the slope that you want (eg set it to 2), and D1
represents the intercept on the Y axis. Then just highlight A1:B1 and
copy down for as many points as you need. Column A then contains your
x values, and column B the y values.

Hope this helps.

Pete

On Dec 6, 9:58 am, Dial222 wrote:
Trying to use combination of Rept function to generate an array of like
values. I then want to use this array to plot a straight line on a chart.

Is there an easier way to do this, is it possible.

Cheers


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Match function with duplicate values in an array Richard Excel Worksheet Functions 3 April 22nd 23 07:45 PM
Non-Array Function result in non-accurate values Salman Excel Discussion (Misc queries) 1 April 11th 07 07:00 AM
Non-Array Function result in non-accurate values Salman Excel Worksheet Functions 0 April 10th 07 08:04 AM
Array Pasted from One Worksheet Converts Null Values to Zeros BK Waas Excel Discussion (Misc queries) 0 November 22nd 06 05:21 PM
Create a Chart with Values from Array AND NOT from Ranges syrhus Charts and Charting in Excel 5 March 19th 05 02:37 AM


All times are GMT +1. The time now is 09:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"