+ Reply to Thread
Results 1 to 11 of 11

formula to copy cells with a repeating pattern

  1. #1
    Registered User
    Join Date
    02-19-2011
    Location
    New york
    MS-Off Ver
    Excel 2003
    Posts
    5

    formula to copy cells with a repeating pattern

    I am trying to find a formula for the following:
    I am creating a dashboard view of a spreadsheet.
    In column F from F22 to F93, each cell needs to show a dollar amount.
    These dollar amounts begin in I163 and repeat every 54 cells until I3997
    Is there a formula I can use in F22 that can be copied down to F93. Currently I am writting into each cell F22 =I163, F23=I217, F24=I271..... I have 8 other columns like this and it is very time consuming.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: formula to copy cells with a repeating pattern

    Try this in F22 and drag across:

    =INDEX($I$109:$I$3997,COLUMNS($F22:F22)*54,1)

  3. #3
    Registered User
    Join Date
    02-19-2011
    Location
    New york
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: formula to copy cells with a repeating pattern

    Doesn't seem to work. when I open the cell formulas it highlights the column where the information is, but doesn't populate the cells.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: formula to copy cells with a repeating pattern

    Can you upload a sample file (with any personal/sensitive data removed)?

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: formula to copy cells with a repeating pattern

    Oops. My bad - change the 109 to 110

  6. #6
    Registered User
    Join Date
    02-19-2011
    Location
    New york
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: formula to copy cells with a repeating pattern

    That worked to a point, but it only picked up the first value and carried that down the column.

  7. #7
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: formula to copy cells with a repeating pattern

    Sorry, I misread how you are dragging the formula. I thought you were dragging across but you are dragging down.

    Change COLUMNS($F22:F22) to ROWS(F$22:F22)
    Last edited by Cutter; 02-20-2011 at 09:23 AM.

  8. #8
    Registered User
    Join Date
    02-19-2011
    Location
    New york
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: formula to copy cells with a repeating pattern

    I uploaded the file. Take a look at it. Maybe I am doing something wrong.
    Attached Files Attached Files

  9. #9
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: formula to copy cells with a repeating pattern

    You didn't change the placement of the $ in the reference.

    Use: =INDEX($I$110:$I$3997,ROWS(F$22:F22)*54,1)


    BTW - you should update your profile to show what Excel version you are using. It often has a bearing on the responses given.
    Last edited by Cutter; 02-20-2011 at 09:50 AM.

  10. #10
    Registered User
    Join Date
    02-19-2011
    Location
    New york
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: formula to copy cells with a repeating pattern

    Thanks! Works like a charm.

  11. #11
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: formula to copy cells with a repeating pattern

    You're welcome. Don't forget to mark your thread as SOLVED (if needed, click on the FAQ button at top of forum page to see directions).

+ 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