+ Reply to Thread
Results 1 to 6 of 6

Retaining Formula Pairs

Hybrid View

  1. #1
    Registered User
    Join Date
    08-06-2009
    Location
    Hunterdon County, NJ
    MS-Off Ver
    Excel 2003
    Posts
    3

    Red face Retaining Formula Pairs

    I have a spreadsheet where each month we show a set of formulas for the three most current months. To add a new month, I hide the oldest (e.g., April), and insert a column in between the remaining two (May and June). This carries over mappings from some other graphs. I then copy/paste (June) into the new inserted column and change the other one to the current month (July).

    When I do this, there is a conversion of the formula mappings for (June). For example,

    Cell O5:
    =(+'Data'!T6+'Data'!U6)/('Data'!T14+'Data'!U14)

    after relocating becomes

    Cell N5:
    =(+'Data'!S6+'Data'!T6)/('Data'!S14+'Data'!T14)

    but I want to keep
    =(+'Data'!T6+'Data'!U6)/('Data'!T14+'Data'!U14)

    It looks like Excel always assumes that you just want the next thing in sequence in the new cell. But in this case we want unique formulaic pairs, QR then ST then UV. What Excel gives me is QR then RS then TU. There's always a plus or minus one to all the references, even if I update the "Data" sheet first. The only method I've found to fix this is to manually update each set of formulas, which requires a good deal of care across some thirty cells.

    Any advice is appreciated!
    Last edited by coachlink; 08-06-2009 at 02:19 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Retaining Formula Pairs

    Kind of difficult to visualize what you are doing... but does this work?

    =('Data'!$T6+'Data'!$U6)/('Data'!$T14+'Data'!$U14)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    08-06-2009
    Location
    Hunterdon County, NJ
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Retaining Formula Pairs

    Yep, that's the formula I want to keep for that one line. But how do I keep it via a copy/paste? I don't want to have to retype it for every instance.

    It is hard to picture. Maybe if you just try it...insert a column in between two that have forumulas and then move the rightmost item to the middle. You'll see it change. Excel is thinking it's being helpful, and in most cases that would be great.

    I've played around with "Paste Special" too...maybe the key is in there? Or the Auto-Fill tool. But everything increments the formulas rather than keeping them as-is.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Retaining Formula Pairs

    You can move the formula instead of copying it.. it will retains it references.

    Just hover over the edge of the cell or ranges until you get a black cross with 4 arrowheads, click and drag over.

  5. #5
    Registered User
    Join Date
    08-06-2009
    Location
    Hunterdon County, NJ
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Retaining Formula Pairs

    Cool - but I think that puts me in the same boat in a different place. I then need to copy and paste the formula to the cell I moved from, updating it with the next logical sequential pair. So if I move the TU references, I need to get VW references in the now-empty cell.

    I tried this just to be sure. And if I copy from the moved TU, and paste it to the source, I get QR in the old cell. But what I want is VW. By the by, I'm using Excel 2003.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Retaining Formula Pairs

    Hmmm.. if you are not overlapping cells, the only the thing I can think of is to insert another blank column temporarily and copy the newly moved cell across to that new column (i.e. 2 columns over), then move (per my previous instruction back to the column you want... then delete the temporary column...

+ 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