+ Reply to Thread
Results 1 to 7 of 7

Dragging formula's

  1. #1
    Registered User
    Join Date
    05-17-2017
    Location
    Nottingham, England
    MS-Off Ver
    Version 1703
    Posts
    42

    Dragging formula's

    Hello.

    I am trying to reference data from another sheet, and then just drag the cell down that normally just adjusts the formula accordingly.

    However the data I'm trying to reference, is horizontal and not vertical on the other sheet, so for example I'm trying to reference formulas;

    =SUM(ROTA!C16:I16)
    =SUM(ROTA!J16:P16)
    =SUM(ROTA!Q16:W16)

    If I have to do this, I have to do it 52 times, 4 times. When I just drag the formula down it adjusts to the below, moving it down horizontal.

    =SUM(ROTA!C16:I16)
    =SUM(ROTA!C17:I17)
    =SUM(ROTA!C18:I18)

    I'd appreciate any help, as I'd be stuck here all day as I have to do this a few times.

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Dragging formula's

    Without sample file not clear idea. Attach sample file with desire result.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Dragging formula's

    You can use this formula for your first range:

    =SUM(INDEX(ROTA!$16:$16,(ROWS($1:1)-1)*7+3):INDEX(ROTA!$16:$16,ROWS($1:1)*7+2))

    then copy down as required.

    Hope this helps.

    Pete

  4. #4
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Dragging formula's

    @avk: As OP drags the formula down the range to be summed should increase across the page in columns so

    C:I columns 3 to 9
    J:P columns 10 to 16
    Q:W columns 17 to 23

    This looks easy but blowed if I can see a simple solution
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Dragging formula's

    Quote Originally Posted by Special-K View Post
    ... but blowed if I can see a simple solution
    Mine's quite simple !!

    Pete

  6. #6
    Registered User
    Join Date
    05-17-2017
    Location
    Nottingham, England
    MS-Off Ver
    Version 1703
    Posts
    42

    Re: Dragging formula's

    I've attached an example, hope this helps?

    Thanks in advance
    Attached Files Attached Files

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Dragging formula's

    Amending my formula to suit your (different) sheet names, put this in B3 of Sheet2:

    =SUM(INDEX(Sheet1!$16:$16,(ROWS($1:1)-1)*7+3):INDEX(Sheet1!$16:$16,ROWS($1:1)*7+2))

    then copy down. I don't know what your other headings in that sheet are meant to be, but perhaps you can use the same formula and change the $16 references to $23 and $26 in those other columns.

    Hope this helps.

    Pete

+ 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. Dragging formula down/across - help
    By colleendeborah in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2019, 02:42 PM
  2. dragging sheets like dragging cells.
    By cyclop2509 in forum Excel General
    Replies: 2
    Last Post: 03-02-2017, 05:33 AM
  3. Replies: 2
    Last Post: 06-15-2016, 06:59 PM
  4. VBA Macro: Plugging an Array-Formula into a Cell and Dragging Formula Down Columns
    By Brianandstewie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-20-2013, 02:57 PM
  5. Replies: 3
    Last Post: 03-28-2013, 12:41 PM
  6. Replies: 1
    Last Post: 04-30-2012, 10:01 PM
  7. Dragging down a formula
    By spread in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-09-2007, 09:34 AM

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