ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Drag formula problem (https://www.excelbanter.com/excel-discussion-misc-queries/184915-drag-formula-problem.html)

Killer

Drag formula problem
 
Im using this formula below but when I try to drag down the formula row B45
& B46 is moving down as well, when actually it should remain in B45 & B46
only B8 should be B9 C8 should be C9 and so on.

=(B8=$B45)*5+($B46=C8)*(($B46-4)+(B8=$B45)*(9-C8))

Thanks ahead


Tyro[_2_]

Drag formula problem
 
Buy a book on basic Excel and read it? Concerning absolute and relative
addressing?
I know that reading a book is hard work. But ....................
$B locks the column in, $45 locks the row in: as in $B$45 DUH!!!


"Killer" wrote in message
...
I'm using this formula below but when I try to drag down the formula row
B45
& B46 is moving down as well, when actually it should remain in B45 & B46
only B8 should be B9 C8 should be C9 and so on.

=(B8=$B45)*5+($B46=C8)*(($B46-4)+(B8=$B45)*(9-C8))

Thanks ahead




yshridhar

Drag formula problem
 
Modify $b45 as $b$45, $b46 as $b$46
=(B8=$B4$5)*5+($B46=C8)*(($B$46-4)+(B8=$B45)*(9-C8))
Best wishes
Sreedhar
"Killer" wrote:

Im using this formula below but when I try to drag down the formula row B45
& B46 is moving down as well, when actually it should remain in B45 & B46
only B8 should be B9 C8 should be C9 and so on.

=(B8=$B45)*5+($B46=C8)*(($B46-4)+(B8=$B45)*(9-C8))

Thanks ahead



All times are GMT +1. The time now is 10:38 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com