+ Reply to Thread
Results 1 to 4 of 4

Locking column, but not row

  1. #1
    Registered User
    Join Date
    05-19-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    13

    Locking column, but not row

    Hi all,
    What I am trying to do is copy a formula by row and have the following changes.

    When I copy the formula across the next formula should be.

    =(I34-((E15-408)*1.138))*0.1

    and the one after should be

    =(I35-((F15-408)*1.138))*0.1

    and so on and so forth - so the "i" bit should increase in number i34 - becomes i35

    and the "15" bit should increase in letter so "E" becomes "F"
    Last edited by danwhitehouse; 05-19-2011 at 08:02 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Locking column, but not row

    Thanks for changing the title to something more descriptive.

    The formula

    =COLUMN(AH1)

    will return the number 34. Copied across, it will increment to 35, 36, etc.

    So you could use something like

    =(INDIRECT("I"&COLUMN(AH1))-((E15-408)*1.138))*0.1

    When copied across, the next cell to the right will show

    =(INDIRECT("I"&COLUMN(AI1))-((F15-408)*1.138))*0.1
    =(INDIRECT("I"&COLUMN(AJ1))-((G15-408)*1.138))*0.1

    etc.

    cheers,

  3. #3
    Registered User
    Join Date
    05-19-2011
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Locking column, but not row

    Thanks man, works well!

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Locking column, but not row

    I take it that "man" covers all kinds of genders and aliens. Thanks for the feedback.

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Last edited by teylyn; 05-19-2011 at 08:40 AM.

+ 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