Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default Range of averages

Can anyone help

I have a value for T1 and a value for T11 (which might be greater or
lesser.)

I want to fill T2 through T10 with a series of averages to smoothly fill the
gap so to speak.

So if T1 were 1 and T11 were 11, the series would count out 1 to 11
And if T1 were 22 and T2 were 2, then the series would count backwards from
22 to 2, even number only.

Anyone know how?


  #2   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Range of averages

Sub LinearFill()
Dim StepValue
Range("T1:T11").Select
StepValue = (Selection(Selection.Count) - Selection(1)) /
(Selection.Count - 1)
Selection.DataSeries Rowcol:=xlColumns, Type:=xlLinear, Date:=xlDay, _
Step:=StepValue, Trend:=False
End Sub

--
Regards,
Tom Ogilvy

"teepee" wrote in message
...
Can anyone help

I have a value for T1 and a value for T11 (which might be greater or
lesser.)

I want to fill T2 through T10 with a series of averages to smoothly fill

the
gap so to speak.

So if T1 were 1 and T11 were 11, the series would count out 1 to 11
And if T1 were 22 and T2 were 2, then the series would count backwards

from
22 to 2, even number only.

Anyone know how?




  #3   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel
external usenet poster
 
Posts: 11,058
Default Range of averages

In T2 put:
=T1+($T$11-$T$1)/10
and copy down to T10.


--
Gary's Student


"teepee" wrote:

Can anyone help

I have a value for T1 and a value for T11 (which might be greater or
lesser.)

I want to fill T2 through T10 with a series of averages to smoothly fill the
gap so to speak.

So if T1 were 1 and T11 were 11, the series would count out 1 to 11
And if T1 were 22 and T2 were 2, then the series would count backwards from
22 to 2, even number only.

Anyone know how?



  #4   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Range of averages

Some wordwrap problems:

Sub LinearFill()
Dim StepValue
Range("T1:T11").Select
StepValue = (Selection(Selection.Count) - _
Selection(1)) /(Selection.Count - 1)
Selection.DataSeries Rowcol:=xlColumns, _
Type:=xlLinear, Date:=xlDay, _
Step:=StepValue, Trend:=False
End Sub

or manually
select your range and do Edit=Fill=Series.

select Row and linear

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
Sub LinearFill()
Dim StepValue
Range("T1:T11").Select
StepValue = (Selection(Selection.Count) - Selection(1)) /
(Selection.Count - 1)
Selection.DataSeries Rowcol:=xlColumns, Type:=xlLinear, Date:=xlDay, _
Step:=StepValue, Trend:=False
End Sub

--
Regards,
Tom Ogilvy

"teepee" wrote in message
...
Can anyone help

I have a value for T1 and a value for T11 (which might be greater or
lesser.)

I want to fill T2 through T10 with a series of averages to smoothly fill

the
gap so to speak.

So if T1 were 1 and T11 were 11, the series would count out 1 to 11
And if T1 were 22 and T2 were 2, then the series would count backwards

from
22 to 2, even number only.

Anyone know how?






  #5   Report Post  
Posted to microsoft.public.excel.misc,microsoft.public.excel.programming,microsoft.public.excel
external usenet poster
 
Posts: 27
Default Range of averages


"Gary''s Student" wrote in message
...
In T2 put:
=T1+($T$11-$T$1)/10
and copy down to T10.


of course. brilliant yet obvious.
Thanks


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
Changing the range for averages with out changing the formula. JessLRC Excel Worksheet Functions 0 April 20th 10 03:10 PM
Averages sailor Excel Discussion (Misc queries) 3 September 8th 09 05:13 PM
Averages Help Excel Discussion (Misc queries) 3 August 25th 09 03:28 PM
Averages Jimenda Excel Worksheet Functions 1 December 21st 05 11:24 PM
Range of averages teepee Excel Discussion (Misc queries) 4 October 16th 05 09:53 AM


All times are GMT +1. The time now is 10:09 AM.

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

About Us

"It's about Microsoft Excel"