+ Reply to Thread
Results 1 to 7 of 7

Click and Drag not Calculating Properly

  1. #1
    Registered User
    Join Date
    12-19-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Click and Drag not Calculating Properly

    Hello, I am trying to use the click and drag function that used to work on my old computer but it is no longer following the pattern.

    Value in:
    E7 is 0
    E8 is 10
    E9 is 0
    E10 is 0.

    I highlight all those cells, click on the drag bar, start dragging and I get the value of "3.33" in all the subsequent cells. It is not following the pattern. I would like to see 0,10,0,0,0,10,0,0,0,10,0,0,0...

    Regards,

  2. #2
    Valued Forum Contributor Miraun's Avatar
    Join Date
    04-03-2009
    Location
    New England
    MS-Off Ver
    2003, 2007, 2010, 2013
    Posts
    554

    Re: Click and Drag not Calculating Properly

    There's no way for it to know that the next cell should be 0 then 10... gotta go through enough iterations of the cycle to ensure that there can't be any other pattern for it to interprate.

    Example: If I just showed you a sequence:
    0, 0, 0, 5, 2, 7, 0, 2
    What number should come next?
    Going for Guru! Click the Star to the bottom left of this post if I helped!

  3. #3
    Registered User
    Join Date
    12-19-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Click and Drag not Calculating Properly

    Ok, I put 1,2,1,2, copied them and the next cells became 2.2, 2.4, 2.6, 2.8... Same issue.

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Click and Drag not Calculating Properly

    Preface this by saying that I almost never use the click and drag feature. In part because I guess I'm not quite sure how good the "pattern recognition algorithms" are. In general I prefer to make my own patterns like this from formulas -- if for no other reason than I distrust the built in pattern recognition stuff. The first example, it almost looks like Excel is "averaging" the 10 and 0's to get 3.33 (=10/3). For the second example, it looks like it is using a linear regression type algorithm (I can replicate the 2.2, 2.4,... using the TREND() function).

    If Excel seems unable to recognize the pattern you want, then it would seem that you will have to create your own algorithm for generating the pattern. The second pattern could maybe be generated using something like (pseudocode of sorts - these aren't real formulas): =IF(row number is odd,1,2). The first pattern might look like =IF(both cells above are 0,10,0). Using a formula like this and you won't be dependent on Excel's pattern recognition algorithms. You'll be able to tell Excel what pattern to create.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Registered User
    Join Date
    12-19-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Click and Drag not Calculating Properly

    Actually I figured it out. Just hold CTRL down when dragging.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Click and Drag not Calculating Properly

    hmm interesting ) you learn something new every day in here
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Click and Drag not Calculating Properly

    or use a right-click and drag then choose copy instead of a fill option
    Josie

    if at first you don't succeed try doing it the way your wife told you to

+ 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