ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   stop automatically changing fomula ... (https://www.excelbanter.com/excel-worksheet-functions/28985-stop-automatically-changing-fomula.html)

caryn

stop automatically changing fomula ...
 
i have a countif function
COUNTIF(Locking!I16:I40,"f")
when i copy this and paste it to the next cell, the formula automatically
change to COUNTIF(Locking!J16:J40,"f")

How do I stop it from changing column I to J?!?!?!
thanks.



JE McGimpsey

Take a look at Help's "The difference between relative and absolute
references" topic.


In article ,
"caryn" wrote:

i have a countif function
COUNTIF(Locking!I16:I40,"f")
when i copy this and paste it to the next cell, the formula automatically
change to COUNTIF(Locking!J16:J40,"f")

How do I stop it from changing column I to J?!?!?!


Duke Carey

Put a $ before each I, making the columns absolute

=COUNTIF(Locking!$I16:$I40,"f")

If you enter this formula by pointing at cells, pressing the F4 key will
cycle you through absolute rows & columns, absolute rows & relative columns,
relative rows & absolute columns, and completely relative.

Check Help to find out about absolute & relative addresses


"caryn" wrote:

i have a countif function
COUNTIF(Locking!I16:I40,"f")
when i copy this and paste it to the next cell, the formula automatically
change to COUNTIF(Locking!J16:J40,"f")

How do I stop it from changing column I to J?!?!?!
thanks.





All times are GMT +1. The time now is 09:25 PM.

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