+ Reply to Thread
Results 1 to 5 of 5

Change Reference by dragging formula every 10th time

  1. #1
    Registered User
    Join Date
    03-14-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    20

    Change Reference by dragging formula every 10th time

    Hey guru,

    I've been fiddling with Offset,Row,Indirect without success.

    Here is the problem:

    Say, I have a row from A1:D1 and another row from E1:H1.

    The first column/row goes from 1 to 100 and the second column row goes from 1:10.

    Now, I want to do matrix multiplication MMULT(A1:D1,transpose(E1:H1)). This works perfectly fine.

    However, when dragging that formula down, I want to shift the second vector down only by 1 every 10th time for my A1:D1 vector.

    In other words, this means for the first 10 filling, the column E1:H1 stays locked.

    For 11th until 20th the column should be E2:H2. Basically, I want to shift that reference cell every 10th time.

    Is there a way to do this without VBA?

    Attached is a spreadsheet for your comfort.

    Thanks alot folks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Change Reference by dragging formula every 10th time

    I think you would need to use a combination of indirect and round, something like:
    MMULT(A1:D1,transpose(INDIRECT("E" & ROUNDUP(ROW(A1)/10,0) & ":H" & ROUNDUP(ROW(A1)/10,0))).

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Change Reference by dragging formula every 10th time

    I used a series of helper columns to get the repeat of the range that you require. These helpers are orange coloured.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    03-14-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Change Reference by dragging formula every 10th time

    Thanks guys, I appreciate your efforts!!!

    I need to have some time to digest your solutions. It's kinda complicated to understand.

    It's kinda sad that there is no easier way to do this simple logic in Excel.

  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: Change Reference by dragging formula every 10th time

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    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]

+ 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. [SOLVED] How to change reference area automatically by dragging Index Match Formula down
    By Nuada in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-20-2013, 01:19 PM
  2. Change column reference while dragging formula vertically
    By ekatecohn in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2013, 07:23 PM
  3. [SOLVED] Change sheet reference OF ANOTHER WORKBOOK automatically by dragging
    By Marc Poos in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-13-2013, 09:50 PM
  4. Dragging formula, change sheet reference, but not cell reference
    By Kalilaya0419 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-13-2013, 04:50 PM
  5. [SOLVED] Change sheet reference automatically by dragging
    By Marc Poos in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-22-2013, 10:56 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