+ Reply to Thread
Results 1 to 7 of 7

How to make formula automatically increase by one?

  1. #1
    Forum Contributor
    Join Date
    07-28-2009
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    99

    How to make formula automatically increase by one?

    I'm trying to drag this formula across about 200 columns:

    =INDEX($B$21:$BI$215,MATCH(C14,$A$21:$A$215,0)+2,2)

    but for every column it gets dragged over I need that last number (which I bolded) to go up by one.

    So it needs to be..
    =INDEX($B$21:$BI$215,MATCH(C14,$A$21:$A$215,0)+2,2)
    =INDEX($B$21:$BI$215,MATCH(C14,$A$21:$A$215,0)+2,3)
    =INDEX($B$21:$BI$215,MATCH(C14,$A$21:$A$215,0)+2,4)
    =INDEX($B$21:$BI$215,MATCH(C14,$A$21:$A$215,0)+2,5)
    =INDEX($B$21:$BI$215,MATCH(C14,$A$21:$A$215,0)+2,6)

    etc...

    It really sucks having to do it manually, is there an easier way?

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: How to make formula automatically increase by one?

    Try:

    =INDEX($B$21:$BI$215,MATCH(C14,$A$21:$A$215,0)+2,1+ROWS($A$21:A21)/10)

  3. #3
    Forum Contributor
    Join Date
    07-28-2009
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: How to make formula automatically increase by one?

    Same problem, doesn't work when you copy it across

  4. #4
    Forum Contributor
    Join Date
    07-28-2009
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    99

    Re: How to make formula automatically increase by one?

    =INDEX($B$21:$BI$215,MATCH(C14,$A$21:$A$215,0)+2,COLUMN()-1)

    worked for me =)

  5. #5
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: How to make formula automatically increase by one?

    Quote Originally Posted by Tommy1005 View Post
    Same problem, doesn't work when you copy it across
    Yes, sorry it was for rows... For column you need to use COLUMNS formula:

    =INDEX($B$21:$BI$215,MATCH($C14,$A$21:$A$215,0)+2,1+COLUMNS($A$21:A$21)/10)

  6. #6
    Registered User
    Join Date
    06-11-2012
    Location
    grass valley ca usa
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: How to make formula automatically increase by one?

    Hello,
    Can you think of any way to increase this day value in the middle of this formula?

    it's the 1,2,3 value...

    ='O:\BSC\DAILY_OP_POS\DAILY OP POS TOOLS\[DAILY OP POS for 11.1.12.xlsx]OVERALL SUMMARY'!$B$13='O:\BSC\DAILY_OP_POS\DAILY OP POS TOOLS\[DAILY OP POS for 11.2.12.xlsx]OVERALL SUMMARY'!$B$13
    ='O:\BSC\DAILY_OP_POS\DAILY OP POS TOOLS\[DAILY OP POS for 11.3.12.xlsx]OVERALL SUMMARY'!$B$13

    -thanks, Ron M.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: How to make formula automatically increase by one?

    @ ronmaltese...
    Welcome to the Forum, unfortunately:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread. It makes sense to have a new thread for your question because a thread with numerous replies can be off putting & difficult to pick out relevant replies.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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