Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
When I put a formula in B87 [=SUMIF(B5:B81,"3A",H5:H81)*24] and then select
B87:B94 and use the Ctrl D function, it will copy the formula but the range will change by 1 line each time so that B88 will start with the range (B6:B82, "3A", H6:H82), etc. By the time I reach B94, the formula range is completely off and I have to go into each formula and manually change the range back to what it should be. What am I doing wrong? I need to freeze the formula so that it keeps the same range. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I'm not going to ask why you want the same formula several times but try this =SUMIF($B$5:$B$81,"3A",$H$5:$H$81)*24 Mike "NEHicks" wrote: When I put a formula in B87 [=SUMIF(B5:B81,"3A",H5:H81)*24] and then select B87:B94 and use the Ctrl D function, it will copy the formula but the range will change by 1 line each time so that B88 will start with the range (B6:B82, "3A", H6:H82), etc. By the time I reach B94, the formula range is completely off and I have to go into each formula and manually change the range back to what it should be. What am I doing wrong? I need to freeze the formula so that it keeps the same range. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
NEHicks wrote...
When I put a formula in B87 [=SUMIF(B5:B81,"3A",H5:H81)*24] and then select B87:B94 and use the Ctrl D function, it will copy the formula but the range will change by 1 line each time so that B88 will start with the range (B6:B82, "3A", H6:H82), etc. By the time I reach B94, the formula range is completely off and I have to go into each formula and manually change the range back to what it should be. You could make the row 'absolute' (unchanging when the formula is filled or copied and pasted) by inserting $ before the row numbers in the cell addresses. In other words, you could change the B87 formula to =SUMIF(B$5:B$81,"3A",H$5:H$81)*24 When you fill this down into B88:B94, the formula in B88 would be the same as the formula in B87, namely, =SUMIF(B$5:B$81,"3A",H$5:H$81)*24 But it's unclear why you'd want exactly the same formula in B87:B94 rather than the SUMIF formula in B87 and =B87 in B88, =B88 in B89, etc. |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Add the $ signs
=SUMIF($B$5:$B$81,"3A",$H$5:$H$81)*24 See help on absolute and relative referencing. Gord Dibben MS Excel MVP On Wed, 17 Dec 2008 12:15:00 -0800, NEHicks wrote: When I put a formula in B87 [=SUMIF(B5:B81,"3A",H5:H81)*24] and then select B87:B94 and use the Ctrl D function, it will copy the formula but the range will change by 1 line each time so that B88 will start with the range (B6:B82, "3A", H6:H82), etc. By the time I reach B94, the formula range is completely off and I have to go into each formula and manually change the range back to what it should be. What am I doing wrong? I need to freeze the formula so that it keeps the same range. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007: Ctrl+PgUp or Ctrl+PgDn with Protected Sheets | Excel Discussion (Misc queries) | |||
use CTRL key inside a macro IE CTRL + ; | Excel Worksheet Functions | |||
Anyone having Ctrl+C / Ctrl+V problems in E2007? | Excel Discussion (Misc queries) | |||
How to forbid ctrl+c and ctrl+X in sheet? | Setting up and Configuration of Excel | |||
Does Ctrl + F works in protected file with formulas? | Excel Worksheet Functions |