Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Possible to auto-fill in gaps between numbers on straight line bas

Guys,

I have some time series data but with gaps in between. Is there a way to get
Excel to fill in the blanks between two numbers on a straight line basis?

Eg: If I have in A1 the number 5 and in A4 the number 11, is there a way to
automatically fill A2 with 7 and A3 with 9?

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Possible to auto-fill in gaps between numbers on straight line bas

Hi,

the auto-fill (fill handle) can't do this. If you knew that the cells would
always have two blank cells between them you can use a formula.

If 5 is in A1 and 11 in A4 the formula in A2 would be

=A1+(A$4-A$1)/3

And copy this down.

If the number of blanks can vary, say your first number is in D1 and the
second in D5 then a more general approach would be

=D1+(D$5-D$1)/(ROWS($D$1:$D$5)-1)

enter this formula in D2 and fill it down.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"sticky" wrote:

Guys,

I have some time series data but with gaps in between. Is there a way to get
Excel to fill in the blanks between two numbers on a straight line basis?

Eg: If I have in A1 the number 5 and in A4 the number 11, is there a way to
automatically fill A2 with 7 and A3 with 9?

Thanks in advance.

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
Straight Line is not straight klm Excel Discussion (Misc queries) 2 September 13th 07 07:19 PM
straight line equation WaqB Excel Worksheet Functions 0 November 22nd 06 08:22 AM
straight line graph, really straight line.. Jason Excel Discussion (Misc queries) 2 July 20th 06 10:08 PM
best fit straight line Priscilla Charts and Charting in Excel 1 May 17th 06 11:32 AM
I have a list of data, fill in the gaps. FILL function won't work Triv Excel Discussion (Misc queries) 1 September 17th 05 02:33 PM


All times are GMT +1. The time now is 07:41 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"