Back

About MrExcel
Consulting Services
Learn Excel Resources
Challenge of the Month
MrExcel Seminars

Message Board

MrExcel Store
Podcast
Search
Contact
Home

 

 
Dave asks: I have a worksheet with monthly columns of data in B through M. The total is in row 34. In column N, I entered a formula to calculate the percentage of the total for column B. I entered a formula of =B4/B34. Since I have about 25 cells I want to reference cell B34, when I try to copy the formula down to the next 24 cells holding the control key, it simply skips the same number of cells and divides the total by the wrong cell (not B34).

I solved this by placing dollar signs ($B$34) and then copying down, but when I try to copy everything and set up the next month, it copies $B$34 to the next month also. This is wrong because my new sales total is C34 not not B34.

Do you know how I can get around this?

You'll notice there are two dollars signs in $B$34. Each dollar sign holds one portion of the address as fixed or "absolute". The $34 says "always point to row 34". The $B says "always point to column B". Change you $B$34 to B$34 in the formula. You can then copy the formula, it will always point to row 34, but will point to new months as you copy the formula over.

By Bill Jelen on 21-May-2002

MrExcel.com Consulting can be hired to implement this concept, or many other cool applications, with your data.

MrExcel.com provides examples of Visual Basic procedures for illustration only, without warranty either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. The Visual Basic procedures on this web site are provided "as is" and we do not guarantee that they can be used in all situations.

 

Excel is a registered trademark of the Microsoft® Corporation.

All contents Copyright 1998-2008 by MrExcel Consulting.