Sometimes inserting rows and columns causes formula problems and sometimes it does not. What makes the difference is where you are inserting and what the formula range includes.
|   | Step-by-Step: Inserting & Formulas |  | 
| What you will learn: | to insert row without breaking formula 
 to fix a formula broken when cells were inserted | 
Start with:  trips28-Firstname-Lastname.xlsx (saved in previous lesson)
 trips28-Firstname-Lastname.xlsx (saved in previous lesson)
After you have gotten your worksheets all fixed up and formatted, you find that you have omitted some trips. Whoops! You need to insert some more trips on the sheet Specials. Since rows and columns behave the same, you can learn about handing this kind of problem by looking at the what happens to rows.
You will find out what happens when you insert...
The first new trip to add is to New Zealand, sold by Gardner to Midland Associates for 5 people. (He must be a good salesman to sell them a second trip so soon!)
You need to put this information in the middle of the table between rows 14 and 15.
 Save 
            As trips29-Lastname-Firstname.xlsx in the excel project4 folder of your Class 
            disk.
Save 
            As trips29-Lastname-Firstname.xlsx in the excel project4 folder of your Class 
            disk. On 
            the sheet Specials select row 15.
On 
            the sheet Specials select row 15.What changed?
The Totals for the table in cells D26 and F26 are larger than before. They automatically included values from the new row.
 The ranges of the formulas changed to include the 
                  inserted row and plus all the original rows. 
                  The 
                  new row was inside the range of the original formula: =SUM(F5:F24). Cool!
 Save.
Save.The second trip to be added is in the Other category
 Select cell F26 and inspect its formula =SUM(F5:F25).
Select cell F26 and inspect its formula =SUM(F5:F25).Click in the Formula bar inside the 
    formula.
    A colored outline surrounds the range that the formula 
    uses.
 Drag outline handles: The 
    colored outline has handles at the corners that you can drag to 
    change the range. This is a quick an easy way to correct some kinds of errors in 
    a formula.
Drag outline handles: The 
    colored outline has handles at the corners that you can drag to 
    change the range. This is a quick an easy way to correct some kinds of errors in 
    a formula.
 Hover over the Format Options button below your new row and 
            click the arrow.
Hover over the Format Options button below your new row and 
            click the arrow. In 
            the new row 25 enter the following:
In 
            the new row 25 enter the following:Again, the Total sale formula automatically calculates and the Totals for the table includes the new values. The new row wound up inside the formula's range for both Totals. This is working out pretty easy!
 But wait...  the formatting is wrong for E25 and F25.
              Recall that you chose Format Same As Below. The row below was a 
              blank line. You may have included that row when you applied formatting 
              and maybe not!
  If 
              necessary, select cells E23:F23 and copy their formatting to E25:F25.
If 
              necessary, select cells E23:F23 and copy their formatting to E25:F25. 
(You know more than one way to do this. You can do it manually, use Format Painter, you can Copy and Paste Formats, or use AutoFill > Formatting only.)
Why did we use E23:F23 instead of the row right above, E24:F24 to copy the formatting? In row 23 the background is white. In row 24 it's blue!
 Save.
Save.You will add the third trip to the Other category also, but outside the range of the Total for the whole table. This row is between the data and the cell with the formula and there is no blank row.
 Trip: Other
    
            Trip: OtherExcel automatically inserts the formula for column F in this row and updates the Totals in row 27. Hurrah! Older versions of Excel did not do this.
 Save.
Save. Select row 5 and insert a new row.
Select row 5 and insert a new row.  Add the following information to row 5:
Add the following information to row 5:The Total sale is not calculated. The totals in row 28 do not 
              change. 
          
 Save.
Save. AutoFill from cell F6 to F5.
AutoFill from cell F6 to F5.  Drag the handle of the colored outline up to include
Drag the handle of the colored outline up to include  Save.
Save. Print the selection.
 Print the selection.  
 
You added four rows to the original data for 1st Bank, Midland Associates, Rachel Williams & Associates, and Thomas Smith. Did any of your sheets with linked cells pick up the new data?
Select each of the other sheets in turn and look for changes.
Only one sheet shows a change. The sheet Formatted Groups does not show the new rows but does show the new totals in D28 and F28 on the sheet Specials. Those cells were linked directly to the Specials cells.
Linking cells does not link ranges, just individual cells. The new rows do not show up on the sheets with linked cells. You would have to Paste Link all over again to update the other sheets.
We also have not updated the lower table with new values for the sales in each week.
Since this is not the "real world", we can save you some effort and let those sheets stay as they are. Broken!