![]() |
Copying
I have a situation where I have a list of items listed vetically as follows in excel eg A B C 1 Month Principal Interest 2 3 April 300 50 4 May 400 40 5 June 500 30 6 July 600 20 7 August 700 10 However I have a table that is created as follows A B C D 9 10 April Principal May Principal June Principal July Principal 11 12 =B3 I want to copy the formula in Cell A12 to B12, C12 and D12 such that it will automatically recognise cell B4 for May principal and cell B5 for June Principal etc. My spreadsheet in reality is very large so achieving this will cut down the amount of work I have to do. Thanks -- neilangelo ------------------------------------------------------------------------ neilangelo's Profile: http://www.excelforum.com/member.php...fo&userid=3504 View this thread: http://www.excelforum.com/showthread...hreadid=506747 |
Copying
Have you thought of creating your second table using the sumproduct worksheet function? -- bob777 ------------------------------------------------------------------------ bob777's Profile: http://www.excelforum.com/member.php...o&userid=28504 View this thread: http://www.excelforum.com/showthread...hreadid=506747 |
Copying
How would that sum product worksheet function work? -- neilangelo ------------------------------------------------------------------------ neilangelo's Profile: http://www.excelforum.com/member.php...fo&userid=3504 View this thread: http://www.excelforum.com/showthread...hreadid=506747 |
Copying
neilangelo,
Ignoring for the moment your comment that the spreadsheet is very large (it naturally points to other directions, e.g. subtotals etc). What you seem to want is a transposition problem. You have 12 values (no, less, you start with April) in a column and you want them transposed horizontally. In A12, in place of your current =B3 formula, use: =OFFSET($B$2, COLUMN(), 0) Copy accross. Does this help? Kostis Vezerides |
Copying
Could you give me a working example as to how this Offset function works so that I can better able apply it to my worksheet -- neilangelo ------------------------------------------------------------------------ neilangelo's Profile: http://www.excelforum.com/member.php...fo&userid=3504 View this thread: http://www.excelforum.com/showthread...hreadid=506747 |
Copying
neilangelo,
Actually I did give you a working example. Right where you are attempting to enter =B3, you should enter the suggested formula. ABout OFFSET(): it is used when we want to refer to cells by position relative to another cell. Say you want to generate the numbers 1, 2, 3 etc in a column. You could start with the number 1 in A1 and then, below, in A2, you would enter =A1+1 This formula can be copied down so that it will become =A2+1, =A3+1 etc, for each cell down A:A. An alternative method for the formula in A2 would be: =OFFSET(A2, -1, 0) +1 I.e. I want to add 1 to the value of the cell which is located -1 rows (i.e. above) A2 (the current cell) and 0 columns to the right of A2. What is the difference? Most times you would use the simpler formula. However, if you delete, say A3, then all the cells below will produce #REF!. This is because there still exists a cell called A3 but it is not the one originally, physically, referred to by A4 (which has now moved to A3). However, with the OFFSET() option you are not referring to another cell but to yourself, and calculate a relative position. Thus, with this technique, you can freely delete cells. In your case, the problem is that you want to transfer rows to columns. So this formula is using the column number of the destination, to tell Excel how many rows below the original cell you want to look for in order to get the desired number. HTH Kostis Vezerides |
All times are GMT +1. The time now is 09:11 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com