This article gives you an example of where we may need to keep our formulas intact.

Suppose there are two tabs- Jan and Feb. And they both contain the same fields with exactly the same location. For e.g. Both Jan and Feb have 4 fields as shown below:

Aggregate Formulas
Now in the Summary tab, we want to bring in this information for both the months.
If you already have formulas in place for Jan and now you just want to fill up Feb numbers.

aggregate-formulas_1.JPG
For Feb, you want Feb!B1 in cell C1 of summary. There is no point in linking all over again by going to Feb tab each time.
We want the same formulas as in Jan column but we just want to swap Jan with Feb.Like you have Jan!B1 in cell B1 of summary for Jan and we want Feb!B1 for Feb.

However, if we just copy the formulas from Jan to Feb, it will not stay the same but would change B to C.

aggregate-formulas_2.JPG
In order to get around this, we need to do two things:
1) Freeze Jan formulas so that we can transport them to Feb.
2) Replace Jan with Feb.

In order to do the first step, just select the entire column B of the summary tab(Jan) and do “find and replace” and just replace = with any letter say s. This will keep our formulas intact.

aggregate-formulas_3.JPG
Now just paste these in column C and then select column C and then using find and replace, just replace Jan with Feb.

aggregate-formulas_5.JPG

 Once that is done, then select both  columns B and C, and replace back “s” with “=”.

aggregate-formulas_6.JPG

And it is done as you can see below.

aggregate-formulas_7.JPG

The above example can also be done using indirect function.Here is a link to the article which talks about “Indirect Function“.
 

Share This

Popularity: 26%



Reader's Comments

  1. Fazrul | October 5th, 2008 at 11:31 pm

    Thank you for your effort. Will come in handy in the future indeed.

    Fazrul
    http://bijakexcel.blogspot.com

  2. Furqonk | October 30th, 2008 at 4:01 am

    Thanks for sharing.

  3. Philip | February 22nd, 2009 at 10:26 pm

    Or we could put

    =Jan!$B1

    in Summary B2, and copy it to C2, then using find and replace, replace Jan with Feb. As usual with Excel, same result, different approach.

Leave a Comment

Close
E-mail It