Solutions and training for business users of Microsoft Excel.
Solutions and training for business users of Microsoft Excel.

 Excel User's Home
 ExcelUser Blog      
 Site Map              
 Contact              
 Excel for Business
 Excel Dashboards   
 Excel Solutions   
 Exploring Excel   
 BI for Excel    
 Business Tools   
 Excel Catalog   
 Affiliate Program   
 Excel Help Portal  
 
   
     
   
     
 

Home > Excel for Business

Using Absolute and Relative
References in Excel Formulas


"Could someone send me more details about using $'s like the following: =AVERAGE($6:$6) averages all data in ROW 6. I'd like more details of usages, examples, as this is a great feature that I cannot find information on." -- Alan Y.

Alan,

The $ sign in a cell reference affects only one thing. It tells Excel how to treat your references when you copy the cell. If a dollar sign precedes a row number or column letter, the row or column doesn't change when you copy it. Otherwise, it does change.

To illustrate, suppose the following formulas are in cell D3 and you copy them to cell E4. Here are the results in each case:

=B3 copies as: =C4
=$B$3 copies as: =$B$3
=B$3 copies as: =C$3
=$B3 copies as: =$B4

That is, the $ sign "anchors" a row number or column letter when you copy it.

Here's an easy way to set the $ sign combination you want: Enter a reference like =B3 and then tap the F4 key. Each time you hit F4, Excel cycles to another option. To illustrate:

=B3 tap {F4} to get:
=$B$3 tap {F4} to get:
=B$3 tap {F4} to get:
=$B3 tap {F4} to get:
=B3 (etc)

You also asked about a reference to an entire row. To reference one or more entire rows or columns, refer only to the row number(s) or column letter(s). Examples:

=SUM(11:11)
=SUM(13:22)
=SUM(K:K)
=SUM(M:P)

Finally, to sum discontiguous rows or columns, separate each group with a comma.

This formula sums row 11 and rows 13 through 22:

=SUM(11:11, 13:22)

This formula sums column K and columns M through P:

=SUM(K:K, M:P)

Hope this helps,

Charley Kyd
July, 2006


 


ExcelUser, Inc.
http://www.ExcelUser.com

Copyright © 2004 - 2012 by Charles W. Kyd, all rights reserved. Content, graphics, and HTML code are protected by US and International Copyright Laws, and may not be copied, reprinted, published, translated, hosted, or otherwise distributed by any means without explicit permission. Terms of Use | Privacy Policy | Earnings Policy.

 

Excel Dashboards

Learn how to create top-quality dashboard reports with Excel.