Excel spread sheet : related to formula copying

In summary, the table will have every other cell replaced with the product of corresponding cell from the original table, except for the first row and the first column which will have copies of the first cell of the corresponding row and the first cell of the corresponding column.
  • #1
manjuvenamma
102
0
I have a table of numbers say 12 X 12 i.e A1 cell to L12 cell. All of them have numbers filled in.

I have to create another table of identical size. first row and first column numbers are just duplicated in the new table i.e.A1 to A12 (first column) A1 to L1 (first row) cells are just copied into the new table without any changes.

All other cells of the new table are to be populated as follows:
for example: cell corresponding to b9 is to replaced by the product of three numbers (i) b9,
(ii) a9 (first element of the same row) and b1 (first element of the same column).

Another example: j6 is to replaced by the product of j6, a6 (first element of the same row) and j1 (first element of the same column).

I can do this manually by writing formula in each cell. I want to do automatically by writing a formula in one cell and copying the same in all other cells of interest.

Can this be down and how?
 
Computer science news on Phys.org
  • #2
it can be done very easily w/ VBA but I wouldn't know how to do it with a cell formula although I wouldn't be surprised if it COULD be done w/ a cell formula

EDIT: I've done the VBA --- if you want it, send me an email (NOT a PM)
 
Last edited:
  • #3
There is a simple copy paste for that.

Write the formula in the first cell. Note that there is a little black dot in the lower right corner of the cell where the cursor is. Aim the mouse on that and the pointer changes to a small cross. Now drag the mouse over all the cells where you want the formula copied.

Note that the relative geometry of the copies stay in tact. so if you drag the formula =a6*a7 one to the right and one down, the copy will read =b7*b8 etc

If you want absolute geometry, you put a $ before the row or column that should remain pointing to the same column ($b6) or row (b$6) or both ($b$6) if the copy needs to look at the single cell only.
 
  • #4
Andre, thanks for the reply. Here neither I need neither the absolute addressing nor the relative addressing. Basically in the new table (except the first row and the first column) every other cell is to be replaced by the product of corresponding cell in the original table,
the first cell of the corresponding row and the first cell of the corresponding column in which this cell sits. So it changes with each cell but NOT in the relative fashion.
 
  • #5
Thank you, very much, Andre. I got it now and it is working. I was thinking that we can use $ in singly like $A37. Now I realized we could used like A$37 too.
 

1. What is the easiest way to copy a formula in Excel?

The easiest way to copy a formula in Excel is by using the fill handle. Simply click and drag the fill handle (small black square at the bottom right corner of the selected cell) to the cells where you want to copy the formula.

2. How do I copy a formula without changing the cell references?

To copy a formula without changing the cell references, you can use the absolute cell reference. This can be done by adding a dollar sign ($) before the column letter and/or row number in the cell reference. For example, if you want to keep the row reference constant, you would use $A2. This will allow you to copy the formula without changing the row number.

3. Can I copy a formula across multiple sheets in an Excel workbook?

Yes, you can copy a formula across multiple sheets in an Excel workbook. Simply select the cell with the formula, click on the fill handle, and drag it across the sheets where you want the formula to be copied.

4. Is there a shortcut to copy a formula in Excel?

Yes, there is a shortcut to copy a formula in Excel. You can use the keyboard shortcut Ctrl + C to copy the formula and then use Ctrl + V to paste it in the desired cells.

5. How can I copy a formula to only certain cells in Excel?

To copy a formula to only certain cells in Excel, you can use the drag-and-drop method. Select the cells where you want the formula to be copied, then click and drag the fill handle from the cell with the formula to the first cell in the selected range. This will only copy the formula to the selected cells without affecting the other cells in the worksheet.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
4
Views
637
  • Set Theory, Logic, Probability, Statistics
Replies
32
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
18
Views
5K
  • Computing and Technology
Replies
4
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
5
Views
13K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
3K
  • Programming and Computer Science
Replies
17
Views
2K
  • Programming and Computer Science
Replies
3
Views
877
Replies
7
Views
1K
Replies
1
Views
2K
Back
Top