Copying formulas

Peter083

Board Regular
Joined
Feb 26, 2011
Messages
53
Hi, is it possible to copy a formula over a predetermined number of cells and if so how can this be done. For example if a formula is to be copied over 4 cells only then rather than copy and drag the formula over the next 3 cells, is it possible to have the 4 in a separate cell somewhere else in the worksheet and the formula will be copied 4 times only?
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
To copy something you'd have to use vba. On the other hand you could populate a larger number of cells, and only operate the calculation depending on the number in your separate cell, using a IF function.
 
Upvote 0
Thanks Glenn. I really appreciate your getting back to me. When it comes to VBA, I am in the VB section only (Very Basic) and have no clue as to how it works. I am trying to create a simple cash flow model of a 4 phase housing project which consists of various tasks (for simplicity I am using months only) and have created a separate sheet for each phase. In each of these spreadsheets I have created a timeline chart for each task, so that cell C2 is the month a task (assume March 2011) starts and cell C3 is the number of months the task will take (assume 3 months) (Using EDATE and actual days). I have then put a formula into each of the relevant cells in the cash flow spreadsheet that divides the cost of the task by 3 and copied the formula into each of the relevant cells in the cash flow (assume that they are E10,E11 and E12. I am trying to find a way that will enable the cash flow to look at cell C2 to know that it must start in E10 and to then divide the cost of the task by the number of months in cell C3 and to do the same thing in cels E11 and E12 only, but if I change the values in C2 and C3 to say start in June 2011 and to run for 6 months that the cash flow will automatically recalculate to reflect the new start date and the new number of months that the cost must be divided over. If you can assist or point me in the right direction I will be most grateful. Cheers.
 
Upvote 0
So you mean like in cell E10
=cashflow/C3

and E11
=IF((ROW()-9)>C$3),0,cashflow/C$3)
.. copied to E12, E13, E14 etc etc etc
 
Upvote 0

Forum statistics

Threads
1,224,534
Messages
6,179,390
Members
452,909
Latest member
VickiS

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top