+ Reply to Thread
Results 1 to 5 of 5

Change each formula by 1

  1. #1
    Registered User
    Join Date
    03-09-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    59

    Question Change each formula by 1

    Hi Guys,

    Is it possible to have a list of formulae and have the cell reference change by 1 without having to go into each one and change it manually?

    Example:

    You have;
    =a1
    =a3
    =a5
    =a7

    And change them all to;
    =a2
    =a4
    =a6
    =a8

    So the reference cell changes by one digit.

    Thanks in advance!

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,283

    Re: Change each formula by 1

    Is this an existing list of formulas? If so, then no, you will need to alter each one, though you can do that fairly quickly if the pattern is regular. If not, then you could use a different formula that allows you to specify the start cell and then have each subsequent formula offset by two rows from that.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    03-09-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: Change each formula by 1

    Hi, Thanks for the quick reply.

    Yes they existing formulas. And I need each formula to change the cell reference by 1 to indicate the cell below it. There are over 100 formulae to change to the new numbers for about 10 people so was hoping there was a quicker way of performing the change.

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,283

    Re: Change each formula by 1

    Select the formulas, choose Edit-Replace, and enter:
    Find: =
    Replace: XX
    and press Replace all.
    Then alter the first two cells to XXA2 and XXA4, select those two cells and copy down using the fill handle. Now select the cells again and do a Find-Replace but this time use:
    Find: XX
    Replace: =
    and you should be set.

  5. #5
    Registered User
    Join Date
    03-09-2010
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: Change each formula by 1

    Thanks! I guess thats a good workaround.

+ 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