+ Reply to Thread
Results 1 to 7 of 7

Drag Formula Question...

  1. #1
    Forum Contributor
    Join Date
    07-02-2006
    Location
    Love City, USA
    Posts
    183

    Question Drag Formula Question...

    Hi once again

    I actually have been facing this issue for quite some time and hav'nt taken the time
    to get my question out there on this. So here it is, Hope there's a solution...

    Is it possible, or how do you, drag a particular formula and have the increments
    focused on ONE data you want accumulated (Increased)? I know this sounds
    confusing, but it is hard to explain, so here an example of what I'm asking:

    I have the need to drag down a formula 1000 rows, but I only want the
    "Sheet#" (worksheets) incremented as I drag, but I want the cell "B2" to remain
    constant... The formula looks like this: =Sheet1!B2 ... I want to drag this
    formula down so it resembles this:

    =Sheet1!B2
    =Sheet2!B2
    =Sheet3!B2

    on and on....

    When I drag I get increments in the cell B2 only:

    =Sheet1:B2
    =Sheet1:B3
    =Sheet1:B4

    etc...

    is there a way to tell the drag to increase the sheets only without incrementing
    the cell B2?

    This has boggled me for sometime now, I hope it's possible

    Thank You For Any Help On This...
    Last edited by Mhz; 03-23-2007 at 08:00 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    Hi Mhz,

    In the formula bar, click on B2 and then hit F4. It'll become $B$2 which means it is now an absolute reference and will not change whichever way you drag the formula.

    HTH,

    SamuelT

  3. #3
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by Mhz
    Hi once again

    I actually have been facing this issue for quite some time and hav'nt taken the time
    to get my question out there on this. So here it is, Hope there's a solution...

    Is it possible, or how do you, drag a particular formula and have the increments
    focused on ONE data you want accumulated (Increased)? I know this sounds
    confusing, but it is hard to explain, so here an example of what I'm asking:

    I have the need to drag down a formula 1000 rows, but I only want the
    "Sheet#" (worksheets) incremented as I drag, but I want the cell "B2" to remain
    constant... The formula looks like this: =Sheet1!B2 ... I want to drag this
    formula down so it resembles this:

    =Sheet1!B2
    =Sheet2!B2
    =Sheet3!B2

    on and on....

    When I drag I get increments in the cell B2 only:

    =Sheet1:B2
    =Sheet1:B3
    =Sheet1:B4

    etc...

    is there a way to tell the drag to increase the sheets only without incrementing
    the cell B2?

    This has boggled me for sometime now, I hope it's possible

    Thank You For Any Help On This...
    hI,

    One way,

    =Indirect("Sheet"&Row()-3&"!B2")

    adjust the Row()-3 to suit.

    hth
    ---
    Si fractum non sit, noli id reficere.

  4. #4
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Bryan,

    You always go where I forget to go! You are a master of the row() and Column() functions

    Ed

  5. #5
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by EdMac
    Bryan,

    You always go where I forget to go! You are a master of the row() and Column() functions

    Ed
    they can be useful sometimes.
    ---

  6. #6
    Forum Contributor
    Join Date
    07-02-2006
    Location
    Love City, USA
    Posts
    183

    Thumbs up Thanks Very Much..

    Samuel, your info will be very useful in the future for me, although the "Sheets"
    does not increment when dragging, but this is Very Useful for future references... Thanks Alot!

    Bryan, That is definately the formula I needed! Although, I didn't understand
    what the World that (-3) was all about until I tampered around with it..

    I see it actually subtracts the row count you are using the formula on.. How
    Unique..! I used to do BASIC programming back in the early 80s, but some
    of the new formulas with VB is a bit menacing to me now.. Dropped
    out of programming in the mid 80s.. I Really Appreciate all The forum's Help..
    I would be a 'Nut Case' Without the wonderful help Here... THANKS TO YOU ALL....

    Works great now, and added knowledge for this challeng in the future...
    Megahertz

  7. #7
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by Mhz
    Samuel, your info will be very useful in the future for me, although the "Sheets"
    does not increment when dragging, but this is Very Useful for future references... Thanks Alot!

    Bryan, That is definately the formula I needed! Although, I didn't understand
    what the World that (-3) was all about until I tampered around with it..

    I see it actually subtracts the row count you are using the formula on.. How
    Unique..! I used to do BASIC programming back in the early 80s, but some
    of the new formulas with VB is a bit menacing to me now.. Dropped
    out of programming in the mid 80s.. I Really Appreciate all The forum's Help..
    I would be a 'Nut Case' Without the wonderful help Here... THANKS TO YOU ALL....

    Works great now, and added knowledge for this challeng in the future...
    good to see it working for you, and yes, using the Row() or Column() to increment or decrement a number is often useful. Thanks for the feedback.
    ---

+ 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