+ Reply to Thread
Results 1 to 25 of 25

Excel auto calculation formula question.

  1. #1
    Registered User
    Join Date
    06-09-2005
    Posts
    4

    Excel auto calculation formula question.

    I'm using the drag function to drag a formula from horizontally.

    My formula is simple =SUM('Enrollment Data'!H15:L15)

    When I drag it horzontally I want it to go like this.
    =SUM('Enrollment Data'!H15:L15)
    =SUM('Enrollment Data'!H16:L16)
    =SUM('Enrollment Data'!H17:L17)
    =SUM('Enrollment Data'!H18:L18)

    Instead it's going like this
    =SUM('Enrollment Data'!H15:L15)
    =SUM('Enrollment Data'!I15:M15)
    =SUM('Enrollment Data'!J15:N15)
    =SUM('Enrollment Data'!K15:O15)

    I tried using $ infront of the letters but it kept the vale all the way through. Can anyone help?

    Thx.
    Last edited by jckurk; 06-09-2005 at 01:02 PM.

  2. #2
    Registered User
    Join Date
    06-09-2005
    Posts
    4
    Corrected the typo.

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,515
    Think through what "relative" reference means. (Sometimes I think it's easier to see relative vs. absolute references in R1C1 notation). When you copy across a row like that, relative references will change the column and not the row in each reference. To get it to look in the same column but different rows, you would copy down the column. Here's what I would do:

    1) Make the column reference absolute ($H15)
    2) Copy down three rows (assuming you have four blank rows below)
    3) Select the three copied rows
    4) Select the cell to the right of the original cell
    5) Edit -> Paste Special -> check Transpose
    6) It should give you the result you're looking for.

  4. #4
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    One way:

    Say this is entered in column A:

    =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))


    If it's entered in a different column, change $A:$A to that column
    reference



    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > I'm using the drag function to drag a formula from horizontally.
    >
    > My formula is simple =SUM('Enrollment Data'!H15:L15)
    >
    > When I drag it horzontally I want it to go like this.
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!H16:L16)
    > =SUM('Enrollment Data'!H17:L17)
    > =SUM('Enrollment Data'!H18:L18)
    >
    > Instead it's going like this
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!I15:M15)
    > =SUM('Enrollment Data'!J15:N15)
    > =SUM('Enrollment Data'!K15:O15)
    >
    > I tried using $ infront of the letters but it kept the vale all the way
    > through. Can anyone help?
    >
    > Thx.


  5. #5
    Registered User
    Join Date
    06-09-2005
    Posts
    4
    I can't drag the formula vertically because I have other things below that I have formulas in.

    I also can't make H15 absolute because I need it to change horizontally for each cell (H16, H17, H18 etc.)

  6. #6
    Registered User
    Join Date
    06-09-2005
    Posts
    4
    Quote Originally Posted by JE McGimpsey
    One way:

    Say this is entered in column A:

    =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))


    If it's entered in a different column, change $A:$A to that column
    reference
    Uhmm this works. I have no idea why. I don't get it. How is that working?

  7. #7
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    When placed in column A, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,1-1,0,1,5))

    which sums a 1 row, 5 column range starting at H15.

    When you copy it to column B, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,2-1,0,1,5))

    which sums a 1 row, 5 column range starting one row down from H15. And
    so on.

    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > JE McGimpsey Wrote:
    > > One way:
    > >
    > > Say this is entered in column A:
    > >
    > > =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))
    > >
    > >
    > > If it's entered in a different column, change $A:$A to that column
    > > reference

    >
    > Uhmm this works. I have no idea why. I don't get it. How is that
    > working?


  8. #8
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    One way:

    Say this is entered in column A:

    =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))


    If it's entered in a different column, change $A:$A to that column
    reference



    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > I'm using the drag function to drag a formula from horizontally.
    >
    > My formula is simple =SUM('Enrollment Data'!H15:L15)
    >
    > When I drag it horzontally I want it to go like this.
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!H16:L16)
    > =SUM('Enrollment Data'!H17:L17)
    > =SUM('Enrollment Data'!H18:L18)
    >
    > Instead it's going like this
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!I15:M15)
    > =SUM('Enrollment Data'!J15:N15)
    > =SUM('Enrollment Data'!K15:O15)
    >
    > I tried using $ infront of the letters but it kept the vale all the way
    > through. Can anyone help?
    >
    > Thx.


  9. #9
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    When placed in column A, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,1-1,0,1,5))

    which sums a 1 row, 5 column range starting at H15.

    When you copy it to column B, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,2-1,0,1,5))

    which sums a 1 row, 5 column range starting one row down from H15. And
    so on.

    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > JE McGimpsey Wrote:
    > > One way:
    > >
    > > Say this is entered in column A:
    > >
    > > =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))
    > >
    > >
    > > If it's entered in a different column, change $A:$A to that column
    > > reference

    >
    > Uhmm this works. I have no idea why. I don't get it. How is that
    > working?


  10. #10
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    When placed in column A, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,1-1,0,1,5))

    which sums a 1 row, 5 column range starting at H15.

    When you copy it to column B, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,2-1,0,1,5))

    which sums a 1 row, 5 column range starting one row down from H15. And
    so on.

    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > JE McGimpsey Wrote:
    > > One way:
    > >
    > > Say this is entered in column A:
    > >
    > > =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))
    > >
    > >
    > > If it's entered in a different column, change $A:$A to that column
    > > reference

    >
    > Uhmm this works. I have no idea why. I don't get it. How is that
    > working?


  11. #11
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    One way:

    Say this is entered in column A:

    =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))


    If it's entered in a different column, change $A:$A to that column
    reference



    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > I'm using the drag function to drag a formula from horizontally.
    >
    > My formula is simple =SUM('Enrollment Data'!H15:L15)
    >
    > When I drag it horzontally I want it to go like this.
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!H16:L16)
    > =SUM('Enrollment Data'!H17:L17)
    > =SUM('Enrollment Data'!H18:L18)
    >
    > Instead it's going like this
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!I15:M15)
    > =SUM('Enrollment Data'!J15:N15)
    > =SUM('Enrollment Data'!K15:O15)
    >
    > I tried using $ infront of the letters but it kept the vale all the way
    > through. Can anyone help?
    >
    > Thx.


  12. #12
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    One way:

    Say this is entered in column A:

    =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))


    If it's entered in a different column, change $A:$A to that column
    reference



    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > I'm using the drag function to drag a formula from horizontally.
    >
    > My formula is simple =SUM('Enrollment Data'!H15:L15)
    >
    > When I drag it horzontally I want it to go like this.
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!H16:L16)
    > =SUM('Enrollment Data'!H17:L17)
    > =SUM('Enrollment Data'!H18:L18)
    >
    > Instead it's going like this
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!I15:M15)
    > =SUM('Enrollment Data'!J15:N15)
    > =SUM('Enrollment Data'!K15:O15)
    >
    > I tried using $ infront of the letters but it kept the vale all the way
    > through. Can anyone help?
    >
    > Thx.


  13. #13
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    When placed in column A, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,1-1,0,1,5))

    which sums a 1 row, 5 column range starting at H15.

    When you copy it to column B, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,2-1,0,1,5))

    which sums a 1 row, 5 column range starting one row down from H15. And
    so on.

    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > JE McGimpsey Wrote:
    > > One way:
    > >
    > > Say this is entered in column A:
    > >
    > > =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))
    > >
    > >
    > > If it's entered in a different column, change $A:$A to that column
    > > reference

    >
    > Uhmm this works. I have no idea why. I don't get it. How is that
    > working?


  14. #14
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    One way:

    Say this is entered in column A:

    =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))


    If it's entered in a different column, change $A:$A to that column
    reference



    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > I'm using the drag function to drag a formula from horizontally.
    >
    > My formula is simple =SUM('Enrollment Data'!H15:L15)
    >
    > When I drag it horzontally I want it to go like this.
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!H16:L16)
    > =SUM('Enrollment Data'!H17:L17)
    > =SUM('Enrollment Data'!H18:L18)
    >
    > Instead it's going like this
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!I15:M15)
    > =SUM('Enrollment Data'!J15:N15)
    > =SUM('Enrollment Data'!K15:O15)
    >
    > I tried using $ infront of the letters but it kept the vale all the way
    > through. Can anyone help?
    >
    > Thx.


  15. #15
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    When placed in column A, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,1-1,0,1,5))

    which sums a 1 row, 5 column range starting at H15.

    When you copy it to column B, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,2-1,0,1,5))

    which sums a 1 row, 5 column range starting one row down from H15. And
    so on.

    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > JE McGimpsey Wrote:
    > > One way:
    > >
    > > Say this is entered in column A:
    > >
    > > =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))
    > >
    > >
    > > If it's entered in a different column, change $A:$A to that column
    > > reference

    >
    > Uhmm this works. I have no idea why. I don't get it. How is that
    > working?


  16. #16
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    One way:

    Say this is entered in column A:

    =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))


    If it's entered in a different column, change $A:$A to that column
    reference



    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > I'm using the drag function to drag a formula from horizontally.
    >
    > My formula is simple =SUM('Enrollment Data'!H15:L15)
    >
    > When I drag it horzontally I want it to go like this.
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!H16:L16)
    > =SUM('Enrollment Data'!H17:L17)
    > =SUM('Enrollment Data'!H18:L18)
    >
    > Instead it's going like this
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!I15:M15)
    > =SUM('Enrollment Data'!J15:N15)
    > =SUM('Enrollment Data'!K15:O15)
    >
    > I tried using $ infront of the letters but it kept the vale all the way
    > through. Can anyone help?
    >
    > Thx.


  17. #17
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    When placed in column A, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,1-1,0,1,5))

    which sums a 1 row, 5 column range starting at H15.

    When you copy it to column B, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,2-1,0,1,5))

    which sums a 1 row, 5 column range starting one row down from H15. And
    so on.

    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > JE McGimpsey Wrote:
    > > One way:
    > >
    > > Say this is entered in column A:
    > >
    > > =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))
    > >
    > >
    > > If it's entered in a different column, change $A:$A to that column
    > > reference

    >
    > Uhmm this works. I have no idea why. I don't get it. How is that
    > working?


  18. #18
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    One way:

    Say this is entered in column A:

    =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))


    If it's entered in a different column, change $A:$A to that column
    reference



    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > I'm using the drag function to drag a formula from horizontally.
    >
    > My formula is simple =SUM('Enrollment Data'!H15:L15)
    >
    > When I drag it horzontally I want it to go like this.
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!H16:L16)
    > =SUM('Enrollment Data'!H17:L17)
    > =SUM('Enrollment Data'!H18:L18)
    >
    > Instead it's going like this
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!I15:M15)
    > =SUM('Enrollment Data'!J15:N15)
    > =SUM('Enrollment Data'!K15:O15)
    >
    > I tried using $ infront of the letters but it kept the vale all the way
    > through. Can anyone help?
    >
    > Thx.


  19. #19
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    When placed in column A, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,1-1,0,1,5))

    which sums a 1 row, 5 column range starting at H15.

    When you copy it to column B, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,2-1,0,1,5))

    which sums a 1 row, 5 column range starting one row down from H15. And
    so on.

    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > JE McGimpsey Wrote:
    > > One way:
    > >
    > > Say this is entered in column A:
    > >
    > > =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))
    > >
    > >
    > > If it's entered in a different column, change $A:$A to that column
    > > reference

    >
    > Uhmm this works. I have no idea why. I don't get it. How is that
    > working?


  20. #20
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    When placed in column A, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,1-1,0,1,5))

    which sums a 1 row, 5 column range starting at H15.

    When you copy it to column B, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,2-1,0,1,5))

    which sums a 1 row, 5 column range starting one row down from H15. And
    so on.

    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > JE McGimpsey Wrote:
    > > One way:
    > >
    > > Say this is entered in column A:
    > >
    > > =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))
    > >
    > >
    > > If it's entered in a different column, change $A:$A to that column
    > > reference

    >
    > Uhmm this works. I have no idea why. I don't get it. How is that
    > working?


  21. #21
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    One way:

    Say this is entered in column A:

    =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))


    If it's entered in a different column, change $A:$A to that column
    reference



    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > I'm using the drag function to drag a formula from horizontally.
    >
    > My formula is simple =SUM('Enrollment Data'!H15:L15)
    >
    > When I drag it horzontally I want it to go like this.
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!H16:L16)
    > =SUM('Enrollment Data'!H17:L17)
    > =SUM('Enrollment Data'!H18:L18)
    >
    > Instead it's going like this
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!I15:M15)
    > =SUM('Enrollment Data'!J15:N15)
    > =SUM('Enrollment Data'!K15:O15)
    >
    > I tried using $ infront of the letters but it kept the vale all the way
    > through. Can anyone help?
    >
    > Thx.


  22. #22
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    One way:

    Say this is entered in column A:

    =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))


    If it's entered in a different column, change $A:$A to that column
    reference



    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > I'm using the drag function to drag a formula from horizontally.
    >
    > My formula is simple =SUM('Enrollment Data'!H15:L15)
    >
    > When I drag it horzontally I want it to go like this.
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!H16:L16)
    > =SUM('Enrollment Data'!H17:L17)
    > =SUM('Enrollment Data'!H18:L18)
    >
    > Instead it's going like this
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!I15:M15)
    > =SUM('Enrollment Data'!J15:N15)
    > =SUM('Enrollment Data'!K15:O15)
    >
    > I tried using $ infront of the letters but it kept the vale all the way
    > through. Can anyone help?
    >
    > Thx.


  23. #23
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    When placed in column A, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,1-1,0,1,5))

    which sums a 1 row, 5 column range starting at H15.

    When you copy it to column B, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,2-1,0,1,5))

    which sums a 1 row, 5 column range starting one row down from H15. And
    so on.

    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > JE McGimpsey Wrote:
    > > One way:
    > >
    > > Say this is entered in column A:
    > >
    > > =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))
    > >
    > >
    > > If it's entered in a different column, change $A:$A to that column
    > > reference

    >
    > Uhmm this works. I have no idea why. I don't get it. How is that
    > working?


  24. #24
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    One way:

    Say this is entered in column A:

    =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))


    If it's entered in a different column, change $A:$A to that column
    reference



    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > I'm using the drag function to drag a formula from horizontally.
    >
    > My formula is simple =SUM('Enrollment Data'!H15:L15)
    >
    > When I drag it horzontally I want it to go like this.
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!H16:L16)
    > =SUM('Enrollment Data'!H17:L17)
    > =SUM('Enrollment Data'!H18:L18)
    >
    > Instead it's going like this
    > =SUM('Enrollment Data'!H15:L15)
    > =SUM('Enrollment Data'!I15:M15)
    > =SUM('Enrollment Data'!J15:N15)
    > =SUM('Enrollment Data'!K15:O15)
    >
    > I tried using $ infront of the letters but it kept the vale all the way
    > through. Can anyone help?
    >
    > Thx.


  25. #25
    JE McGimpsey
    Guest

    Re: Excel auto calculation formula question.

    When placed in column A, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,1-1,0,1,5))

    which sums a 1 row, 5 column range starting at H15.

    When you copy it to column B, the formula resolves to

    =SUM(OFFSET('Enrollment Data'!$H$15,2-1,0,1,5))

    which sums a 1 row, 5 column range starting one row down from H15. And
    so on.

    In article <[email protected]>,
    jckurk <[email protected]> wrote:

    > JE McGimpsey Wrote:
    > > One way:
    > >
    > > Say this is entered in column A:
    > >
    > > =SUM(OFFSET('Enrollment Data'!$H$15,COLUMN()-COLUMN($A:$A),0,1,5))
    > >
    > >
    > > If it's entered in a different column, change $A:$A to that column
    > > reference

    >
    > Uhmm this works. I have no idea why. I don't get it. How is that
    > working?


+ 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