Excel spread sheet : related to formula copying

  • Thread starter Thread starter manjuvenamma
  • Start date Start date
  • Tags Tags
    Excel Formula
AI Thread Summary
A user is seeking to create a new 12x12 table in Excel, where the first row and column are duplicates of the original table. The remaining cells in the new table should be populated by the product of three values: the original cell value, the first element of its row, and the first element of its column. The user initially considered manually entering formulas but is looking for a more efficient method to automate this process. The discussion highlights that while VBA can accomplish this easily, it is also possible to use Excel formulas. The user learns to write a formula in the first cell and then drag it to copy across the desired range, maintaining the correct references. The importance of relative and absolute cell referencing is clarified, with the user realizing that both types can be used effectively to achieve the desired outcome. The conversation concludes with the user successfully implementing the solution.
manjuvenamma
Messages
102
Reaction score
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
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:
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.
 
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.
 
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.
 
I came across a video regarding the use of AI/ML to work through complex datasets to determine complicated protein structures. It is a promising and beneficial use of AI/ML. AlphaFold - The Most Useful Thing AI Has Ever Done https://www.ebi.ac.uk/training/online/courses/alphafold/an-introductory-guide-to-its-strengths-and-limitations/what-is-alphafold/ https://en.wikipedia.org/wiki/AlphaFold https://deepmind.google/about/ Edit/update: The AlphaFold article in Nature John Jumper...
Thread 'Urgent: Physically repair - or bypass - power button on Asus laptop'
Asus Vivobook S14 flip. The power button is wrecked. Unable to turn it on AT ALL. We can get into how and why it got wrecked later, but suffice to say a kitchen knife was involved: These buttons do want to NOT come off, not like other lappies, where they can snap in and out. And they sure don't go back on. So, in the absence of a longer-term solution that might involve a replacement, is there any way I can activate the power button, like with a paperclip or wire or something? It looks...

Similar threads

Back
Top