+ Reply to Thread
Results 1 to 5 of 5

How do only change one variable when dragging down a column to auto-complete

  1. #1
    Registered User
    Join Date
    02-25-2013
    Location
    California, United States
    MS-Off Ver
    Excel 2010
    Posts
    7

    How do only change one variable when dragging down a column to auto-complete

    Hello there.

    I have a quick question.
    How do you drag down a column to auto complete the values but do it so it only changes one variable.
    For example, I am dragging down =IF(ROW()<=$B$5,MOD(E2*B1,B2),"") down my column.
    However, I only want the "E2" value to change, and I want B1 and B2 to stay that way. Whenever I drag down, it keeps changing all three values. Is there a way to make it just so that the E2 value is the only one that changes?

    Thanks in advance and I hope I am making sense.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,069

    Re: How do only change one variable when dragging down a column to auto-complete

    =IF(ROW()<=$B$5,MOD(E2*B$1,B$2),"")


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,694

    Re: How do only change one variable when dragging down a column to auto-complete

    Change the cells to absolute referebce by useing $

    =IF(ROW()<=$B$5,MOD(E2*$B$1,$B$2),"")

    A tutorial on Absolute Reference: http://www.cpearson.com/excel/relative.aspx
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    02-25-2013
    Location
    California, United States
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How do only change one variable when dragging down a column to auto-complete

    Thanks guys! Much appreciated!

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,069

    Re: How do only change one variable when dragging down a column to auto-complete

    You're welcome. Thanks for the rep.



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


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    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


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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