Home |
Search |
Today's Posts |
#1
|
|||
|
|||
formula will not fill correctly due to odd number rows
I am using a formula to add sales in one workbook in the second book,
xxxx[2005 Sales 04.xls]Sheet1'!B9:B10), the problem is when I try to copy by filling it assumes the rows are in order when in reality they are like this b9:b10, b11:b12, b13:b14.... is there a way to do this, other wise I'll be spending a lot of time editing. Thank you and have a wonderful day |
#2
|
|||
|
|||
Hi Barb,
You have to revise the formula like shown below =SUM(OFFSET([2005 Sales 04.xls]Sheet1!$B$9,(ROW()-1)*2,0,2,1)) The above assumes that the formula is being entered in row 1 (column does not matter). The formula works because it offsets the fixed Cell B9 by two rows each time you drag the formula down by one row and the size of the area is determined by the second to the last parameter to the offset function. HTH Alok Joshi "Barb" wrote: I am using a formula to add sales in one workbook in the second book, xxxx[2005 Sales 04.xls]Sheet1'!B9:B10), the problem is when I try to copy by filling it assumes the rows are in order when in reality they are like this b9:b10, b11:b12, b13:b14.... is there a way to do this, other wise I'll be spending a lot of time editing. Thank you and have a wonderful day |
#3
|
|||
|
|||
It works if I delete the title row, but does not work when I change that 1 to
a 2. Hopefully my boss won't mind. Thank you very much! Have a wonderful day! Barb "Alok" wrote: Hi Barb, You have to revise the formula like shown below =SUM(OFFSET([2005 Sales 04.xls]Sheet1!$B$9,(ROW()-1)*2,0,2,1)) The above assumes that the formula is being entered in row 1 (column does not matter). The formula works because it offsets the fixed Cell B9 by two rows each time you drag the formula down by one row and the size of the area is determined by the second to the last parameter to the offset function. HTH Alok Joshi "Barb" wrote: I am using a formula to add sales in one workbook in the second book, xxxx[2005 Sales 04.xls]Sheet1'!B9:B10), the problem is when I try to copy by filling it assumes the rows are in order when in reality they are like this b9:b10, b11:b12, b13:b14.... is there a way to do this, other wise I'll be spending a lot of time editing. Thank you and have a wonderful day |
#4
|
|||
|
|||
Thank you! Got it to work with row 2, I must really be brain dead today!
Thanks for helping me, I can get some sleep tonight! Have a wonderful week! Barb "Alok" wrote: Hi Barb, You have to revise the formula like shown below =SUM(OFFSET([2005 Sales 04.xls]Sheet1!$B$9,(ROW()-1)*2,0,2,1)) The above assumes that the formula is being entered in row 1 (column does not matter). The formula works because it offsets the fixed Cell B9 by two rows each time you drag the formula down by one row and the size of the area is determined by the second to the last parameter to the offset function. HTH Alok Joshi "Barb" wrote: I am using a formula to add sales in one workbook in the second book, xxxx[2005 Sales 04.xls]Sheet1'!B9:B10), the problem is when I try to copy by filling it assumes the rows are in order when in reality they are like this b9:b10, b11:b12, b13:b14.... is there a way to do this, other wise I'll be spending a lot of time editing. Thank you and have a wonderful day |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Possible? formula in one cell can fill another cell | Excel Worksheet Functions | |||
Formula to count the cells in a range that have a fill color. | Excel Discussion (Misc queries) | |||
When I copy down into the next cell the formula changes correctly. | Excel Discussion (Misc queries) | |||
Excel - formula to calculate colored fill cells within a range wi. | Excel Worksheet Functions | |||
Identifying the Active Fill Color | Excel Discussion (Misc queries) |