+ Reply to Thread
Results 1 to 3 of 3

Slight Tweak to Click and Drag

  1. #1
    Registered User
    Join Date
    10-21-2014
    Location
    Kashgar, China
    MS-Off Ver
    2007 Home
    Posts
    7

    Slight Tweak to Click and Drag

    Hello,

    I would like to make a slight modification to the click and drag feature in Excel. Click and drag works well for simple patterns, like if you have a column with: A1: 1, A2: 2, A3: 3, click and drag can let you go as far as you want, suppose ... A2000: 2000. However if you have some other things in the cell, I noticed click and drag gets a little confused.

    In my case:

    A1: var(-1)
    A2: var(-2)
    A3: var(-3)

    I want to click and drag to var(-n) or at least var(-200), but the parentheses seem to throw it off. Unfortunately, I absolutely need the parentheses.

    So how can I fix it? Is there anything in the UI where I can toggle this? Or do I have actually edit the click and drag code itself? If so, please describe that process as best you can.

    Many thanks,

    Diggety

  2. #2
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Slight Tweak to Click and Drag

    try like this
    ="var(-"&(ROWS($1:1)&")")
    would start at 1
    ="var(-"&(ROWS($1:200)&")") would start at 200
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    10-21-2014
    Location
    Kashgar, China
    MS-Off Ver
    2007 Home
    Posts
    7

    Re: Slight Tweak to Click and Drag

    Hey martindwilson,

    wow, it works! A clever solution, no coding required or anything. I like devising formulas that work in new ways.

    I appreciate your help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. slight tweak needed excel 2002
    By anon125 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-18-2014, 04:31 AM
  2. Click and Drag not Calculating Properly
    By joelbrattin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-20-2012, 06:05 AM
  3. How do I click and drag a formula changing only 1 value?
    By scottghansen79 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-25-2010, 07:34 PM
  4. Click & Drag Formulae Problem
    By stuartbuckle in forum Excel General
    Replies: 4
    Last Post: 02-26-2009, 05:38 PM
  5. click & drag not working
    By Teresa in forum Excel General
    Replies: 2
    Last Post: 02-24-2006, 09:55 PM

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