replace #DIV/0 with dash "-"

Buck4145

New Member
Joined
Sep 10, 2014
Messages
13
Good afternoon, I've been puzzling over this for quite a bit now. I have this formula which works perfectly untill such times as a nil value is part of the base data (as part of a seperate formula):

=AVERAGE(IF('Archived Trainees'!H8:H38="074-0",IF('Archived Trainees'!L8:L38="Complete - RTU",'Archived Trainees'!AP8:AP38))).

I know that I have to add in [Value if False] or an ISERROR however wherever I put it I get an error. Basically instead of #DIV/0 i would like it to return a dash "-". Thanks in advance.

Working from excel 2003.
 
Last edited:

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi,

Like this:

=IF(ISERROR(formula),"-",formula)

in your case,

=IF(ISERROR(AVERAGE(IF('Archived Trainees'!H8:H38="074-0",IF('Archived Trainees'!L8:L38="Complete - RTU",'Archived Trainees'!AP8:AP38)))),"-",AVERAGE(IF('Archived Trainees'!H8:H38="074-0",IF('Archived Trainees'!L8:L38="Complete - RTU",'Archived Trainees'!AP8:AP38))))
 
Upvote 0
Thankyou for this, I have one more issue to the above. I need to insert a condition ('Archived Trainees'!$F$8:$F$500<=DATE(2013,8,1) However I'm unsure where to place it within the formula. I have used this within the SUMPRODUCT and it works however wherever I place it in the below it comes up with an error.

=IF(ISERROR(AVERAGE(IF('Archived Trainees'!H8:H38="074-0",IF('Archived Trainees'!L8:L38="Complete - RTU",'Archived Trainees'!AP8:AP38)))),"-",AVERAGE(IF('Archived Trainees'!H8:H38="074-0",IF('Archived Trainees'!L8:L38="Complete - RTU",'Archived Trainees'!AP8:AP38))))

Cheers for your continued help
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,094
Latest member
teemeren

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top