P. 1
Fixing Errors in Excel

# Fixing Errors in Excel

|Views: 7|Likes:

### Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

07/25/2014

pdf

text

original

# Suppress #DIV/0 Error Value

To keep #DIV/0! from appearing, use the following formula in place of the standard division formula:

=IF(denominator=0,"",numerator/denominator)

"Numerator" refers to the cell to be divided. "Denominator" refers to the cell that is the divisor.

This formula checks to see if the denominator equals zero (or is blank); if so, a blank cell is displayed. For example, if you want to divide cell A1 by cell A2 and put the result in cell A3, the formula in cell A3 would be:

\$A\$3: =IF(A2=0,"",A1/A2)
Cell A3 appears blank if cell A2 is blank or contains a zero. Otherwise, A3 contains the result of the expression A1/A2. To display other information in the cell if the divisor is blank or zero, type the necessary information in the formula where the quotation marks ("") appear. If you want to display text, type it between these quotation marks. If you want to display anything else (values), type it instead of the quotation marks. NOTE: If the denominator is a nonzero value, the division is calculated.

Dividing by Zero in Excel
Without getting into a semantics debate, Excel does allow you to divide by zero. It also lets you know you have an error. In the resulting cell, it shows the famous line of #DIV/0!. It’s one of those error messages where the letters and numbers make sense, but you also wonder if your PC is swearing at you. Although your PC isn’t mad, the message may fluster users. Some look at the alert and see the help text “The formula or function used is dividing by zero or empty cells” as shown below. Others might question the data integrity. Personally, I think it’s an aesthetic issue.

The reason I got this Excel error was that I tried to divide my Cost value in C7 by my Catalog Count in D7. This test ad cost \$77.45 and generated 0 catalog requests. A similar error occurs if the Catalog Count cell was blank.

1

(e. Column E Conv Cost) 2. Otherwise.There are several ways to fix this error. Excel can continue as normal. You do have control of Excel and an easy way to change this message is to use the IF function. 4.g. In the Insert Function dialog. The process is similar in other versions. In this case. Click Insert Function on the Excel ribbon. Click the next cell down in that column. these steps are using Excel 2007. How to Display a Blank Value instead of #DIV/0! (For illustration purposes. E2) 3. select IF 2 . This is a logic function where you can direct Excel to do one action if a condition is TRUE and another action if the condition is FALSE. The best way would be to produce test ads that converted better.g. (e. but you may not have control of this item. Create a column for your formula.) 1. I want Excel to take a different action if I have a Catalog Count of “0”.

Click OK. For example. They might prefer something like a text value or even the contents from another cell. 6. You can see in the example below. In the same text field after the cell reference type =0. I could’ve used “na”. 10. In the Function Arguments dialog. The blank value in the Excel formula is represented as the double quotes. Copy the Excel formula down to each cell in the column. Click the top cell in the column which you’re dividing by. 12. 7. you’ll start entering this function directly in the Excel formula bar rather than using the Insert Function dialog. (e. click in the Logical_test field. =IF(D2=0.5. Other Substitutions for #DIV/0! Just as some people don’t like the divide by zero error messages. Excel left the Conv Cost value in Column E blank.g. in each case where I had a “0” or a blank cell in Column D (Catalog Count). You can substitute text or a cell reference instead of having the cell be blank. others might object to blank cell values or the zero."na". Leave the Value_if_true field blank. In short order. (The field should show something like D2=0) 9. Click OK. D2) 8. enter your formula such as C2/D2 11.C2/D2) 3 . In the Value_if_false field.

Therefore. and then click OK in the New Formatting Rule dialog box. Excel allows you to fix this error in several ways. Back to the top 4 . and cell A2 returns the #NAME? error value. 9. You can find more details on ERROR. As you can see there are several ways you can remove the divide by zero error in Excel. 3. Enter the following data in a worksheet: 2. 10. using the Cost value might be better than “0” or a blank. and then click New Rule. On the Home tab. Microsoft has assigned an error value of “2” for this #DIV/0 example. Another popular solution from readers mentioned that the ERROR. and then click the White square in the Color list. This occurs because the nofunction() function that is used in cell A2 is not a valid function.TYPE on the Microsoft site. Click OK.C2/D2) In this last example. In the Format Cells dialog box. Excel would insert the Cost value in the Conv Cost cell instead. 7. click Use a formula to determine which cells to format. 5. Click the Format button. 6. Depending on your situation this may be more accurate.or =IF(D2=0. In my example of catalog conversion costs. click the Font tab. any other cells in column A that return error values will not display the error value. Select column A. A1: =B1/C1 A2: =nofunction()*B2 B1: 5 B2: 6 C1: 0 C2: 0 Note Cell A1 returns the #DIV/0! error value. all the cells in column A were formatted with this conditional format. In the Edit the Rule Description box. In the New Formatting Rule dialog box. Chances are whichever method you choose will be less annoying for your users than seeing #DIV/0! Microsoft Office Excel 2007 1. Note Because you selected column A in step 2.TYPE method works well. click the arrow next to Conditional Formatting in the Styles group.C2. type the following formula in the Format values where this formula is true field: =ISERROR(A1) 8. 4.

/02489.0.990.3.7077474.9970/94/.94:  94:4:7!83 92.9.1:8907:8078 \$42044.:78190.44:393 %8 9089.007747.9.90/ .08 .471:3.3/8009005909 %0 1472:.8434998.  9 8430419480077472088.4706:0898 82.88:0    %070.080380 -:94:.8443/0714:7!880..0472:.3/3:2-0782.0807090 099078.3/0307.73.   .9.8-..8843-04  9078296:0894390 /.943:80/8/.489 ./.:03-2..02.39079 !07843.44:39.944:7. 939 8.08909./ 902088.89.079.9./3-074470259.3  //4.

094/4430.    49485..43.43/9438%#&.3..0790/-09907 -:94: 2..30...44:3941  90780 .943  %88.0.%070..9.943190 ..9..0....94..34907.0.4397441.89419807747 %0-089.9430704:.9431.0./41'.30982088.43/9438\$  398.:03890./89.3/..3'.3/70.07.4:/-094574/:.4..9431.39.0.9.4393:0 .83472.80 .8.0.0949.09089..0894:80 901:3.1:3.349./1107039.7080.439744198902 4:/4.3/.

90309.943/.90.489   .  0  4:2343.  47:897.078438    70.9   .0  %0574.088882.9.70:83.4 800.38079:3.4:231474:71472:.9434390.9435:754808 908089058.4:23  0     .07--43   39038079:3.0/4339.734907..

9437:20398/.3904.8010/ 039074:71472:.:0*1*1.:0*1*97:010/-.*908910/   .90945..07010703.    390:3. ..8.3   390'.4: 70/.4 .0950  %010/84:/848420930   0.190790../3-  0     3908.4:23.0390.8:..090'.2090910/.

.9.:0390.034:23 .:034:23-.79039073981:3..3.00199043.01472:..01472:.3./43940.890 /4:-06:4908    3847947/07 4: 89.943/70.87057080390/.80070.0390...    4590.3 %0-.9079.  .01472:.44:39  .9390.250-04 30.943/..4:23   4:.3:839038079 :3.-.77./.-. 47.4  907\$:-899:9438147'..38003900.489..

4:/ ..  :89.8842050450/43 9090/.3..08 49078294-0.:0470.07010703.34907./41.0-0-..03890.250 .    3. .390.0  4:.43903981742.3 470..994-.909..0:80/ 3.:084790 074 %0295701078420930.0./0-074077472088.0390.38:-899:9090947.

    .

47    .

-02470.25041.943 982..0.250 .90 320.:7..990 ## # %!2094/4780 .4.:039043.  398.307747.484:9419807747380.3 47./0782039430/9.:041  14798'...04:/3807990489./ 0503/3434:789:.4898 :8390489.8...07843.07.03890.43..784:943174270.8830/.:029-0-099079.748419.-.890.489.9.3  .8 34907545:.

.3 13/2470/09.33431474:7:80789.748419890  84:..37024./0-074077473.07 2094/4:.7080.38009070.84:..843## # %!4390.3.08.70.0 .4480-0088.07.0..090/.38003'. 0.250 4:.

3.  .0    3907901443/.478009   .9.0.748419 11.

    341:3.943         4900709:73890'.

:0  .4:239..3/903.0709:7389007747.9..9  %0701470 .908/.:08349/85.943    \$00./1:3.993#:0/...390472.3/903.34907..90/...0#:0    3900472..90. 3900472.:08070981472:.&80.7743099443/943.9709:7307747.4-4   4900.4:230701472.90472.9490945    .4:2338905 ..7039044789    .43/943.4-4 .4-4 .993390\$90874:5 .943 1:3..:8090 341:3..08349.083.909086:..75943-4 9509014431472:.9    390/990#:008.08941472..993#:0/..897:0 10/ \$## #     .1472..1472:...4:23    3904209.9007747.3/903.:78-0..90.  .472.3/.98:80/3.:0 . 07747.:0 %84...9439.94/0907230.083.904399.:804:800.9...990/998.9-:9943    390472.

scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->