+ Reply to Thread
Results 1 to 5 of 5

r1c1 and autofill horizontal.. please help

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    52

    r1c1 and autofill horizontal.. please help

    Hello.
    In sheet "QC" cells b4 to b27, i want the formulae
    =AVERAGE(DO!R2C[1]:R10000C[1])
    =AVERAGE(DO!R2C[2]:R10000C[2])
    =AVERAGE(DO!R2C[3]:R10000C[3])
    =AVERAGE(DO!R2C[4]:R10000C[4])
    =AVERAGE(DO!R2C[5]:R10000C[5])
    I.E. sheet "QC" cells b4 to b27 refer to the averages of rows for columns 3-26 (c-z) on sheet "DO"

    When I can do this I will use similar formulae for standard deviations, min, max, ect in columns c,d,e...


    This is my code so far:
    Please Login or Register  to view this content.
    I need the c[1] to increase with each row on autofill.
    Is this possible?
    I could do it with a loop, but i can't refer to "x" in a formula, can i? [dim x as integer, for x = 1 to.. next x]

    Can anyone help?

    Moderator's Edit: Use code tags when posting code. To do so in future, select your code and click on the # icon at the top of your post window.
    Last edited by arlu1201; 12-04-2012 at 08:03 AM.

  2. #2
    Registered User
    Join Date
    10-30-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: r1c1 and autofill horizontal.. please help

    perhaps I could use the indirect function?

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: r1c1 and autofill horizontal.. please help

    Can you explain with the help of a sample excel file?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  4. #4
    Registered User
    Join Date
    10-30-2012
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    52

    Re: r1c1 and autofill horizontal.. please help

    Here you go thanks
    Attached Files Attached Files

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: r1c1 and autofill horizontal.. please help

    Try this -
    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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