Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Maarten
 
Posts: n/a
Default automatically fill in a range of cells

Hello,

Im looking for a method in Excel to automatically fill in a range of cells
(column A), given a value for the step and an end value. The calculations in
the adjacent column (B) are based on column A. Consequently, the range in
column B should automatically be adjusted to that of A. In the example below,
column A goes from 0.5 to 1 in steps of 0.1. The values in column B are
calculated from column A. If I adjust the step to 0.05, column A becomes 2
times longer and B should adjust automatically.
Can somebody help me with this?
Thanks,
Maarten

Initial value: 0.5
Step: 0.1
End: 1

A B
0.5 A1/SUM(A1:A6)
0.6 A2/SUM(A1:A6)
0.7 A3/SUM(A1:A6)
0.8 A4/SUM(A1:A6)
0.9 A5/SUM(A1:A6)
1 A6/SUM(A1:A6)

  #2   Report Post  
Domenic
 
Posts: n/a
Default

Assumptions:

B1: contains the initial value

B2: contains the step value

B3: contains the end value



First define the following reference...

Insert Name Define

Name: Values

Refers to:

=Sheet1!$A$5:INDEX(Sheet1!$A$5:$A$65536,MATCH(9.99 999999999999E+307,Sheet
1!$A$5:$A$65536))



Then, enter the following formulas...

A5, copied down:

=IF($B$1+($B$2*(ROW()-ROW($A$5)))<=$B$3,($B$1+($B$2*(ROW()-ROW($A$5)))),"
")

B5, copied down:

=IF(A5<"",A5/SUM(Values),"")

Hope this helps!

In article ,
"Maarten" wrote:

Hello,

Im looking for a method in Excel to automatically fill in a range of cells
(column A), given a value for the step and an end value. The calculations in
the adjacent column (B) are based on column A. Consequently, the range in
column B should automatically be adjusted to that of A. In the example below,
column A goes from 0.5 to 1 in steps of 0.1. The values in column B are
calculated from column A. If I adjust the step to 0.05, column A becomes 2
times longer and B should adjust automatically.
Can somebody help me with this?
Thanks,
Maarten

Initial value: 0.5
Step: 0.1
End: 1

A B
0.5 A1/SUM(A1:A6)
0.6 A2/SUM(A1:A6)
0.7 A3/SUM(A1:A6)
0.8 A4/SUM(A1:A6)
0.9 A5/SUM(A1:A6)
1 A6/SUM(A1:A6)

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
Applying formula to only NON-EMPTY cells in range Tasi Excel Discussion (Misc queries) 5 March 29th 05 10:48 PM
need to fill cells automatically Feltond Excel Worksheet Functions 2 February 18th 05 10:56 PM
Formula to count the cells in a range that have a fill color. Slainteva Excel Discussion (Misc queries) 2 January 19th 05 08:25 PM
How do i get an average that ignores blanks in the range of cells. ucastores Excel Worksheet Functions 7 November 11th 04 05:01 PM
Excel-value in a range of cells for two cross references K.S.Warrier Excel Worksheet Functions 2 November 2nd 04 08:24 AM


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