#division/0!

candlelights

New Member
Joined
Nov 1, 2018
Messages
5
How do I receive (N/A) in this case ?
[TABLE="width: 500"]
<tbody>[TR]
[TD]
ABCD
1Brandmonthmonth2
2SEPT 18OCT 18DIFF (%)
3AUDI0150=C3/B3-1

<tbody>
</tbody>
[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]This returns: #DIVISION/0! in D3.
How can I get a (N/A) instead ?
Some kind of (IF) function, but I cant get ir right :([/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
you can put whatever message within the " " marks

=IFERROR(C3/B3-1,"…")
 
Upvote 0
If you are getting #DIV/0! and you have wrapped it correctly in an IFERROR, it cannot show #DIV/0!.

Can you post the exact formula you put in your worksheet?
 
Upvote 0
Just note that IFERROR will capture ALL errors, not just the division by 0 errors.
If you want to be sure to limit it to just the division by zero answers, use this instead:
Code:
[COLOR=#333333]=IF(B3-1=0,NA(),C3/B3-1)[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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