+ Reply to Thread
Results 1 to 4 of 4

Increasing cell values with offset?

  1. #1
    Registered User
    Join Date
    05-16-2008
    Posts
    11

    Increasing cell values with offset?

    Hi Again Everyone -

    I was wondering if there was an easier way to copy and increase the cell value of a formula? Let me explain – W17 has this formula ='FJ'!$B$318 now in W18 I need 'FJ'!$B$340 and W17 I need 'FJ'!$B$362 and so on. I have about 4000 entries like this to go and sure could use an easier quicker way of getting it done - any help would be great and thanks.

    I tried doing an offset but was unsure how to write it so I kept getting an error message.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    If this is put in W17 and dragged down, I think it will do what you want.

    =INDEX('FJ'!$B:$B, 22*ROW(W18)-78, 1)

    OFFSET is another approach

    =OFFSET('FJ'!$B$1, 22*ROW(W18)-79, 0, 1, 1)
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Registered User
    Join Date
    05-16-2008
    Posts
    11

    Thanks Mike!

    It works - you just saved me millions of hours - Thank you!

    Can you explain where you got the 78 from tho? When I move the formula over to another column and change the column from W to Z the formula stops working?

    Thanks again Mike - you are a life saver!

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    The INDEX formula in W17 needs to have 318 as its second argument.

    (340-318) * ROW(W18) - x = 318
    22 * ROW(W18) - x = 318
    22 * 18 - x = 318
    x = 78

    When copy/pasting that formula from one column to another, be sure that the row pasted to is the same as the one copied from.
    Last edited by mikerickson; 05-22-2008 at 02:10 AM.

+ 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