Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Power excel 2016 with mrexcel Master Pivot Tables, Subtotals, Charts, VLOOKUP, IF, Data Analysis in Excel 2010–2013 (Bill Jelen) (z-lib.org).pdf
Скачиваний:
4
Добавлен:
14.08.2022
Размер:
49.75 Mб
Скачать

114

POWER EXCEL WITH MR EXCEL

 

 

Additional Details: You can change the Calculation Op- tions. Select Formulas, Calculation Options to see the vari- ous calculation options.

Figure 282 Change calculation settings.

Gotcha: Before you begin using manual calculation mode, you need to understand a dangerous situation.

The calculation mode is global for all workbooks that are currently open. Say that you open WorkbookA and it is in manual calculation mode. You then open Workbook2 through Workbook9, change a few cells and save them. All the while, WorkbookA remained open in the background. This will change the calculation mode on Workbook2 through Workbook9 to manual. While it is easy to see in Figure 281 that some- thing is wrong, it is not easy to notice that manual calculation mode is on in most workbooks. You can see how manual calculation mode can insidiously spread through your workbooks like a virus.

Gotcha: Before you go back to Automatic calculation mode, ask the person who created the worksheet why it is in Manual calculation mode. Sometimes you will find a spreadsheet with tens of thousands of calcula- tions that takes 30–45 seconds to calculate. It is very frustrating when the system pauses for 45 seconds after every single data entry. If you have a lot of data entry to do, a standard strategy is to use Manual calculation mode because in this mode, you can make several changes and then press F9 to calculate.

If you frequently use Manual calculation mode, right-click on both Automatic and Manual in the Calcula- tions Options dropdown and choose Add to Quick Access Toolbar.

Figure 283 Add both Automatic and Manual to the QAT

The result: you will have two checkboxes on the QAT that always show you if you are in Manual or Auto- matic calculation mode.

Figure 284 See at a glance if you are in Manual calculation mode.

CALCULATE ONE RANGE

Problem: I have a workbook that takes 3 minutes to calculate. I changed to manual calculation mode so I can enter data without waiting for a recalculation after each data entry. I just changed 10 cells and I only want to recalculate the 10 rows that rely on those cells. I don’t want to wait 3 minutes when there are only 10 cells that need recalculated.

Strategy: You can press F2 and Enter on each cell that has to be calculated. This will force a single cell to calculate. For 10 cells, try this trick:

1. Select the cells that should be calculated. This must include more than one cell, or Excel will calcu- late the entire worksheet.

2. Ctrl+H to display the Find and Replace dialog.

3. Type an equals sign in the Find What box. 4. Type an equals sign in the Replace With box.

PART 2: CALCULATING WITH EXCEL

115

 

 

5.Click the Options >> button. Make sure that Look In is set to Formulas and that Match Entire Cell Contents is not checked.

6.Click Replace All.

Figure 285 Replace an equals with an equals.

Result: Only the selected range will be calculated.

Additional Details: After you have done the six steps above, you can quickly recalculate the selected range by using Ctrl+H, Alt+A. This will re-open the Find and Replace dialog, then do a Replace All with the previous settings.

2

Tip: If calculation bottlenecks are causing problems, you need to check out the amazing Fast Excel V3 utility from Charles Williams. Details are at http://tinyurl.com/fastexcel.

WHY USE THE INTERSECTION OPERATOR?

Problem: What is the purpose of the intersection operator?

Strategy: The intersection is the most obscure of the operators. Let’s run through some examples of other operators first.

The simplest reference is when you point to a single cell.

Figure 286 Pointing to a single cell.

If you sum two cells and separate those cells with a comma, then Excel will add up the two individual cells. Below, the formula is adding B3 and I3.

116

POWER EXCEL WITH MR EXCEL

 

 

Figure 287 Adding two cells.

When you list two cells and separate those cells with a colon, Excel will add up everything between and including the two cells.

Figure 288 Specifying a range with a colon.

Everyone using Excel has undoubtedly seen the references as shown above.

There is a different type of reference called an intersection. In this case, you would separate two ranges by a space instead of a comma. =SUM(C2:C8 B3:I3) would give you all of the cells in common between the two ranges.

To see a useful example, it would help to add many range names to the worksheet. Follow these steps: 1. Select A1:I8.

2. From the Formulas tab, select Create From Selection.

Figure 289 This creates many names using labels in the range.

3. Leave Top Row and Left Column checked. Click OK.

PART 2: CALCULATING WITH EXCEL

117

 

 

Figure 290 Base the names on the left column and top row.

This will create 15 new range names. The name of Mar now refers to D2:D8. The name of ProdG now refers to B8:I8. This itself is a cool trick.

2

Figure 291 Each column and each row get a name.

Going back to the intersection operator, a formula of =SUM(Apr ProdC) will return the intersection of the two ranges. This provides an interesting way to do a two-way loookup.

Figure 292 Only cell E4 is in both ranges. The result will be 11.

You can use Data Validation to add a dropdown to two cells. In one cell, someone could select a product. In another cell, someone could select a month.