# dismissing errors

#### silentcoates

##### New Member
Hello,

I have quite a few probs that I need to resolve I will try to list them all. I just want to thank you all for your help as this website has been invaluable to me.

I have a table and in one of the columns I have some percentage scores (this column has a formula in each cell =VLOOKUP(B4,'Input Sheet'!H2:L130,5,0) )some of the cells show DIV/0! (an error value or something like it) How do I get the cells to show a 0 value so whe I add a total cell at the bottom of the column it works as at the moment it shows DIV/0!

Also I have a list of names in alphabetical order next to which I have a list of scores (a percentage) on sheet two I have a list of 5 names from that original list. I need a formula to show the average score for the 5 names.

hope these all make sense

thanks

### Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

#### NBVC

##### Well-known Member
Why are you getting the Div/0 error? You should really try to fix that first. If you can't, then try:

If(iserror(VLOOKUP(B4,'Input Sheet'!H2:L130,5,0) ),0,VLOOKUP(B4,'Input Sheet'!H2:L130,5,0))).

For the second question Try:

=Sumif(range to check,criteria,range to sum)/Countif(range to check,criteria)

#### Zack Barresse

##### MrExcel MVP
Hi,

To dismiss a #DIV/0! error you can use something like htis ..

=Numerator/MAX(1,Denomenator)

And it sounds like you want an IF/AVERAGE formula. You can use a CSE formula for this (assuming your data ranges ..

=AVERAGE(IF(Sheet1!\$A\$1:\$A\$20=A1,Sheet1!\$B\$1:\$B\$20))

This is assuming your range of names to check is in Sheet1!\$A\$1:\$A\$20 and your name to check is in A1. Also that your range of figures associated with your names are in the neighboring B column of Sheet1.

The Avg formula(s) must be confirmed with Ctrl + Shift + Enter, not just enter; hence them being called CSE formulas, or array formulas.

Is this what you were looking for?

#### silentcoates

##### New Member
the only reason I can think of that I am getting this error is because the data that the link links to is entered over a period of time so some of the cells are blank untill I need to add data to them.

can you help?

#### NBVC

##### Well-known Member
Where is the division being done?

Perhaps at that point, you can say something like, =If(cell1="",0,cell2/cell1) or whatever your division statement might be. The important thing is to replace the error with something more tangeable.

Then you could use your original vlookup statement:

=VLOOKUP(B4,'Input Sheet'!H2:L130,5,0)))

Replies
3
Views
229
Replies
3
Views
298
Replies
20
Views
504
Replies
0
Views
99
Replies
1
Views
151

1,170,935
Messages
5,872,805
Members
432,948
Latest member
Yordi

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back