<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/book_pages_template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Microsoft Excel Tips / Excel Tutorial / Excel Spreadsheet Help / Excel Tip .com</title>

<!-- InstanceEndEditable --> 
<style><!--
.MsoBodyText
	{text-align:justify;
	line-height:14.0pt;
	font-size:10.0pt;
	font-family:Arial;
	letter-spacing:.25pt;}
.MsoBodyTextIndent
	{text-align:justify;
	line-height:14.0pt;
	font-size:10.0pt;
	font-family:Arial;
	letter-spacing:.25pt;
	font-weight:bold;}
.MsoBodyText2
	{text-align:justify;
	line-height:14.0pt;
	font-size:10.0pt;
	font-family:Arial;
	letter-spacing:.25pt;}
.listnumber
	{text-align:justify;
	line-height:14.0pt;
	font-size:10.0pt;
	font-family:Arial;
	letter-spacing:.25pt;}
.problemsolution
	{line-height:14.0pt;
	font-size:12.0pt;
	font-family:Arial;
	color:#636363;
	letter-spacing:.25pt;
	text-shadow:auto;
	font-weight:bold;}
.Chapter
	{text-align:center;
	font-size:20.0pt;
	font-family:Arial;
	letter-spacing:.25pt;
	text-shadow:auto;
	font-weight:bold;}
.HeaderEven
	{line-height:14.0pt;
	tab-stops:center 207.65pt right 415.3pt;
	font-size:10.0pt;
	font-family:Arial;
	letter-spacing:.25pt;}
.HeaderOdd
	{text-align:justify;
	line-height:14.0pt;
	tab-stops:center 207.65pt right 415.3pt;
	font-size:10.0pt;
	font-family:Arial;
	letter-spacing:.25pt;}
.Section1
	{page:Section1;}
.Section2
	{page:Section2;}
-->
</style>
<!-- \/--OPTIMIZATION BY: IRUBIN CONSULTING --------------------------------------------------\/ -->
<meta name="description" content="">
<meta name="keywords" content="">

<meta name="robots" content="all">
<meta name="revisit-after" content="15 days">
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.weburbia.com/safe/ratings.htm" l r (s 0))'>
<meta name="Classification" content="Microsoft Excel, Excel Spreadsheet, Excel Tips and Tricks, Microsoft Office">
<meta name="Copyright" content="2002 copyright">
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<!-- /\------------------------------------------------------------/\ -->
<link rel="stylesheet" href="/css/main.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>

<body bgcolor="#F79300" text="#333333" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<!--#include virtual="/cgi-bin/engine.pl?action=header"-->

<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td width="100%" valign="top" class="mtdleft">
	    <table border="0" cellspacing="0" cellpadding="0" align="right">
  <tr>
    <td >
              		  <object width="120" height="600">
              <param name="movie" value="/swf/exceltipflash_vertical.swf">
              <param name="quality" value="high">
              <embed src="/swf/exceltipflash_vertical.swf" quality="high" width="120" height="600"></embed>
			  </object> 
            </td>
  </tr>
</table>

	  <!-- InstanceBeginEditable name="Main Content Area" -->
      <p align="center"><font class="chaptertitle">Chapter 7 continued ...</font><br>
        </p>
        <br>
        Using <b>F4</b> twice is annoying, but there is a way to avoid this repetitive
        task. Copy and paste the formula from the formula bar back to the formula
        bar, instead of from cell to cell.</p>
      <p ><b>For example: </b>Cell A1 contains the formula =A$1. Select the text
        from the formula bar (that is, select the formula) and press <b>Ctrl+C</b>
        (copy). Leave the formula bar by hitting <b>Esc</b> or by clicking <b>Enter</b>
        or <b>Cancel</b> (click the &#8730; or the X to the left of <i>fx</i>
        on the formula bar). Select another cell in the sheet and press <b>Ctrl+V</b>.</p>
      <p align=center  style='text-align:center'> <img width=374 height=252
src="images/image006.gif" v:shapes="_x0000_i1026"> </p>
      <div align=left >
        <table border=0 cellspacing=0 cellpadding=0>
          <tr>
            <td width=64 valign=top class="Normal"> <p > <img width=28 height=45
  src="images/image007.jpg" v:shapes="_x0000_i1027"> </p></td>
            <td width=399 valign=top class="Normal"> <h1 ><a name="_Toc25998313">Tip
                – Copy and paste a range of cells containing formulas without
                changing the relative reference</a></h1>
              <p >Select a range of cells containing formulas. Press <b>Ctrl+H</b>
                to replace the = sign with the # sign. After pasting the cells
                in a different location, replace the # sign with the = sign.</p></td>
          </tr>
        </table>
      </div>
      <p class=head-2 ><a name="_Toc25863138"></a><a name="_Toc26773925">Nesting
        Formulas</a></p>
      <p >Nesting is the term for a formula within a formula.</p>
      <p ><b>For example:</b></p>
      <p class=listnumber >In Cell A1, type the number 100. In Cell A2, type the
        number 200.</p>
      <p class=listnumber >In Cell B1, enter the formula =SUM(A1:A2) (the result
        = 300).</p>
      <p class=listnumber >In Cell B2, enter the formula =A2-B1 (the result =
        -100).</p>
      <p class=listnumber >In Cell C1, enter the formula  =IF(A1&gt;A2,B1,B2).</p>
      <p >When the formula in Cell C1 is calculated, the result depends on the
        values in Cells A1:B2.</p>
      <p >In this case, the result in Cell C1 is –100.</p>
      <p align=center  style='text-align:center'> <img width=430 height=204
src="images/image009.jpg" v:shapes="_x0000_i1028"> </p>
      <p align=center  style='text-align:
center'> <img width=430 height=203
src="images/image011.jpg" v:shapes="_x0000_i1029"> </p>
      <p ><b>In the figure above</b>, note the formula in Cell D1. The IF formula
        links two formulas.</p>
      <p >Excel’s method of nesting formulas is not particularly easy if you are
        interested in using complex formulas.</p>
      <p ><b>For example:</b> For Cell E1, type =IF in the formula bar, and press
        <b>Ctrl+A</b>.</p>
      <p >In the first edit box for the IF formula, select the relevant cells
        to enter the formula A1&gt;A2.</p>
      <p >Notice the <b>Name box </b>to the left of the formula bar. The <b>Name
        box</b> has changed to <b>Paste Function</b>. Click the little arrow on
        the right to open the list of formulas, and select the formula SUM. In
        the first line of the SUM formula, select Cell A1. In the second line
        of the SUM formula, select Cell A2. Click <b>OK</b>. </p>
      <p > <img width=456 height=288
src="images/image013.jpg" v:shapes="_x0000_i1030"> </p>
      <p >The IF box has disappeared. In the formula bar, click between the two
        right-hand parentheses and type a comma (,); this brings back the IF formula
        palette. Then type the formula A2-B1, and click <b>OK</b>.</p>
      <p >This is clearly a tedious process. Chances are you will not manage to
        nest complex formulas by this method without lots of practice.</p>
      <p class=head-3 ><a name="_Toc25863139"></a><a name="_Toc26773926">Copying
        and pasting a formula within a formula</a></p>
      <p >This technique is easy. Copy and paste one formula into another by copying
        the first formula from the formula bar. Then select a new cell, click
        on the formula bar, and paste using <b>Ctrl+V</b>.  See <b>Copying a Formula,
        Relative and Absolute Reference</b>; the technique is similar.</p>
      <p ><b>For example:</b></p>
      <p >In Cell D1, enter the formula        =SUM(A:A)</p>
      <p >In Cell E1, enter the formula        =SUM(B:B)</p>
      <p >In Cell F1, enter the formula        =SUM(D1+E1)</p>
      <p >Copy and paste all the formulas into a single formula in a single cell,
        instead of three formulas in three cells. For Cell D1, select in the formula
        bar SUM(A:A) without the = sign. Press <b>Ctrl+C</b> and click the X to
        exit edit mode for the cell. In the formula bar for Cell F1, select the
        reference D1, and press <b>Ctrl+V</b>.</p>
		  <p >&nbsp;</p>
      <p align="center"><a href="/excel_book/chapter7/p1.html">PREVIOUS</a> &nbsp;<a href="/excel_book/chapter7/p1.html">1</a>
        <a href="/excel_book/chapter7/p2.html">2</a> <a href="/excel_book/chapter7/p3.html">3</a>
        <a href="/excel_book/chapter7/p4.html">4</a> <a href="/excel_book/chapter7/p5.html">5</a>
        <a href="/excel_book/chapter7/p6.html">6</a> <a href="/excel_book/chapter7/p7.html">7</a>
        <a href="/excel_book/chapter7/p8.html">8</a> <a href="/excel_book/chapter7/p9.html">9</a>
        &nbsp;&nbsp;<a href="/excel_book/chapter7/p3.html">NEXT</a></p>
      <!-- InstanceEndEditable --> 
    </td>
	      
    <td valign="top" class="mtdright">
	
	<!--#include virtual="/cgi-bin/engine.pl?action=right_side"-->


	 </td>
  </tr>
</table>
<!--#include virtual="/cgi-bin/engine.pl?action=footer"-->


</body>
<!-- InstanceEnd --></html>
