+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Lock part of formula in cell

Hybrid View

  1. #1
    Registered User
    Join Date
    04-20-2010
    Location
    Central Florida
    MS-Off Ver
    Excel 2007
    Posts
    2

    Question Lock part of formula in cell

    I am trying to lock part of a formula in a cell so it wont change when I drag and copy cell down. Example: B5=21.3%.......B13=$2500.00......C13 shows "=Sum(B5*B13)"-so cell shows result as $532.50.......I want to lock B5 of the formula so I can drag and copy the formula down to multiple cells without changing the formula from B5 to B6, B7, etc....can anyone help me? I tried the $ before the B5, but it still changes the cell.
    Last edited by ritkar2; 04-21-2010 at 12:12 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Cant figure out how to lock part of formula in cell

    You have to make it absolute with $ in front of the row number...

    e.g

    =Sum(B$5*B13)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-20-2010
    Location
    Central Florida
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Cant figure out how to lock part of formula in cell

    Thank you so much...it worked..I apparently was putting the $ in the wrong spot. Can you help me with one more issue. When I copy the formula down the rows, it puts a "$-" in each cell since there is no amounts to calculate yet. Is there a way to keep the cells blank until I put a dollar amount in B14 or B15, etc. Then the formulated result will show up C14 or C15 etc.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Lock part of formula in cell

    Maybe...

    =IF(OR(B14="",C14=""),"",the SUM formula above)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1