Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
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б
Скачать

PART 4: MAKING THINGS LOOK GOOD

 

497

 

 

 

COPY WITHOUT CHANGING BORDERS

Problem: I have built a report in Excel and used numerous borders to outline the data. After entering a formula to calculate profit in E3,

I want to copy the formula down to E4 through E7.

However, because cell E3 has a top border, copying the formula causes all the cells in E4 through E7 to also have a top border, ruining the effect of my borders.

Figure 1277 Excel copies the borders, too.

Figure 1276 Copy this formula.

Strategy: You can select Home, Paste dropdown, Paste Special, All Except Borders to copy the formula and the numeric formatting but not disturb the borders.

Figure 1278 Copy all except borders.

Results: The formula is successfully copied, but the borders remain as they were.

Figure 1279 Excel will not disturb the borders.

Alternate Strategy: In the data set described here, it appears that you decided to show the currency sym-

bol on only the first row and the total row. In this case, it might have been more appropriate to use Paste 4 Special, Formulas just to copy the formula.

The Paste dropdown offers two icons in the first row that will help in this situation. The fx icon will copy formulas. The %fx icon will copy the formulas and number formatting.

Figure 1280 The Paste dropdown offers Paste Formulas.

498

POWER EXCEL WITH MR EXCEL

 

 

 

POWER UP FORMAT PAINTER

Problem: I have to paste formatting to many sections of a report.

Figure 1281 Double-click the Format Painter.

Here is an example:

1. Select the original range and double-click the Format Painter icon. The Format Painter icon will stay lit. The mouse pointer is a paint brush.

2. Click the top-left cell of the first destination range. As you click each top-left cell, the formats from the entire original range will be copied to a similar-shaped area.

Figure 1282 Three format painter clicks copies the format three times.

3. When you are done copying formats, you need to exit Format Painter mode. Either press Esc or click the Format Painter again.

FILL FORMATTING

Problem: I have a thousand rows of data. I want to apply red and blue to every other row. Nothing in the Format as Table looks exactly like I want it to look and

I don’t want to define my own table style.

Strategy: This technique temporarily wipes out all of your data, but you get it back. It is a fast way to go.

Figure 1283 Copy this formatting.

PART 4: MAKING THINGS LOOK GOOD

499

 

 

1.Select the data in rows two and three. You will see a fill handle in the bottom right corner of the selection.

2.Double-click the fill handle. All of your data is destroyed. Don’t panic. Open the icon at the bottom right.

3.Choose Fill Formatting Only. All of your data comes back. The formatting is copied throughout.

Result: the formatting is copied. Your data that was overwritten comes back.

Figure 1286 Only the formatting is copied!

Figure 1284 Double-click the fill handle.

Figure 1285 Open the Fill Options icon.

 

 

 

CHANGE ALL RED FONT CELLS TO BLUE FONT

 

 

Problem: I’ve marked a few hundred cells in a large workbook using a red font. My manager is supersti-

 

tious and wants all the red cells changed to blue. The red cells are not contiguous. I did not use cell styles

 

to apply red.

 

Strategy: You can use Find and Replace to change formats. Here’s what you do:

 

1.

 

Select the entire range that contains the red cells.

 

2.

 

Press Ctrl+H. Excel will display the Find and Replace dialog.

 

3.

 

Click the Options button to show additional options.

 

4.

 

Leave the Find What and Replace With boxes blank.

 

4

5.

 

On the right side, choose the dropdown next to the top Format button. Choose Format From Cell.

 

 

Click on a cell with a red font.

 

6.

 

Assuming you don’t already have a cell formatted in blue, click on the bottom Format button. Excel

 

 

 

will display the Find Format dialog. Go to the Font tab and choose a blue color. Click OK to return

 

7.

 

to Find and Replace.

 

 

Click Replace All.

 

Figure 1287 Replace cell formatting with Find and Replace.

Results: The red fonts are changed to blue.

Gotcha: When you choose the format from an existing cell, Excel picks up all the formats. When you perform the Replace, if a format does not match exactly, the cell will not be replaced. For example, if some cells were left-justified instead of right-justified, they will not be replaced.

500

POWER EXCEL WITH MR EXCEL

 

 

 

REPLACE PARTIALLY BOLD CELLS

Problem: I have some cells that are partially bold. When I use Find and Replace to change the text in these cells, I am losing the bold.

Figure 1288 Do a replace all and the bold will be lost.

Figure 1289 The bold is lost.

I tried adapting the last topic, choosing Bold as the format in the second box, but then the entire cell become bold whenever the text is found.

Strategy: Excel really does not deal well with cells that are partially formatted. It pains me to say this, but here is an example where Microsoft Word can save the day.

1. Copy your data in Excel.

2. Open Word. (If you’ve never used Word, think of it as an add-in for people who can’t seem to type their letters in Excel).

3. Paste the cells to Word.

Figure 1290 Do the Replace in Word.

4. Use Ctrl+H. Change ABC to XYZ. Click Replace All. Word keeps the bold.