Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
tiggatattoo
 
Posts: n/a
Default Locking portions of a formula


Hi,
I am looking to find out how to lock a specific cell in a formula.

for example: when I copy and paste a formula, it automatically grabs
the next cell in line in the column.

In the same row I would like to keep two cells locked so it only
changes the column heading not the row.

I have about 100 or so columns to do this for and 4,000 rows.
How can I copy and paste or paste special or something to get this to
work without manually typing the formula for each cell. See example
below.

ex: column BM Row 2 formula =if(BM1=BK2,BL2,0)
column BM Row 3 formula =if(BM1=BK3,BL3,0)
column BM row 4 formula =if(BM1=BK4,BL4,0)
column BN Row 2 formula =if(BN1=BK2,BL2,0)
column BN Row 3 formula =if(BN1=BK3,BL3,0)
column BN Row 4 formula =if(BN1=BK4,BL4,0)
column BO Row 2 formula =if(BO1=BK2,BL2,0)
column BO Row 3 formula =if(BO1=BK3,BL3,0)
column BO Row 4 formula =if(BO1=BK4,BL4,0)


Thanks Candie


--
tiggatattoo
------------------------------------------------------------------------
tiggatattoo's Profile: http://www.excelforum.com/member.php...o&userid=35104
View this thread: http://www.excelforum.com/showthread...hreadid=548597

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Miguel Zapico
 
Posts: n/a
Default Locking portions of a formula

You can lock the column that you need using the $ sign before it. For example:
column BM Row 2 formula =if(BM1=$BK2,$BL2,0)
When you copy this formula, the reference to the columns Bk and BL won't
change.

Hope this helps,
Miguel.

"tiggatattoo" wrote:


Hi,
I am looking to find out how to lock a specific cell in a formula.

for example: when I copy and paste a formula, it automatically grabs
the next cell in line in the column.

In the same row I would like to keep two cells locked so it only
changes the column heading not the row.

I have about 100 or so columns to do this for and 4,000 rows.
How can I copy and paste or paste special or something to get this to
work without manually typing the formula for each cell. See example
below.

ex: column BM Row 2 formula =if(BM1=BK2,BL2,0)
column BM Row 3 formula =if(BM1=BK3,BL3,0)
column BM row 4 formula =if(BM1=BK4,BL4,0)
column BN Row 2 formula =if(BN1=BK2,BL2,0)
column BN Row 3 formula =if(BN1=BK3,BL3,0)
column BN Row 4 formula =if(BN1=BK4,BL4,0)
column BO Row 2 formula =if(BO1=BK2,BL2,0)
column BO Row 3 formula =if(BO1=BK3,BL3,0)
column BO Row 4 formula =if(BO1=BK4,BL4,0)


Thanks Candie


--
tiggatattoo
------------------------------------------------------------------------
tiggatattoo's Profile: http://www.excelforum.com/member.php...o&userid=35104
View this thread: http://www.excelforum.com/showthread...hreadid=548597


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David Biddulph
 
Posts: n/a
Default Locking portions of a formula

"tiggatattoo"
wrote in message
...

Hi,
I am looking to find out how to lock a specific cell in a formula.

for example: when I copy and paste a formula, it automatically grabs
the next cell in line in the column.

In the same row I would like to keep two cells locked so it only
changes the column heading not the row.

I have about 100 or so columns to do this for and 4,000 rows.
How can I copy and paste or paste special or something to get this to
work without manually typing the formula for each cell. See example
below.

ex: column BM Row 2 formula =if(BM1=BK2,BL2,0)
column BM Row 3 formula =if(BM1=BK3,BL3,0)
column BM row 4 formula =if(BM1=BK4,BL4,0)
column BN Row 2 formula =if(BN1=BK2,BL2,0)
column BN Row 3 formula =if(BN1=BK3,BL3,0)
column BN Row 4 formula =if(BN1=BK4,BL4,0)
column BO Row 2 formula =if(BO1=BK2,BL2,0)
column BO Row 3 formula =if(BO1=BK3,BL3,0)
column BO Row 4 formula =if(BO1=BK4,BL4,0)


Try
=if(BM$1=$BK2,$BL2,0)

I suggest you look at the help on absolute and relative addressing.
--
David Biddulph


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
assign formula to another cell Dannycol Excel Worksheet Functions 3 May 12th 06 09:46 PM
locking formula cell references Superchikn Excel Worksheet Functions 3 March 16th 06 07:32 PM
"Unable to set the Formula property of the Series class" with a tw PeterQ Charts and Charting in Excel 1 February 15th 06 07:37 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
adding row to forumla carrera Excel Discussion (Misc queries) 9 August 23rd 05 10:24 PM


All times are GMT +1. The time now is 06:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"