#Div/0! issue

brazill23

New Member
Joined
Dec 18, 2018
Messages
11
HI All,

I have slightly long formula but i have some issues with #Div/0! fault in some of the returns. Do you know how I can adjust formula to return 0 in case of issue ?:confused:

=IF(Q8>Q9,Q9/Q8,IF(Q8+R8>Q9,1+(Q9-Q8)/R8,IF(Q8+R8+S8>Q9,2+(Q9-Q8-R8)/S8,IF(Q8+R8+S8+T8>Q9,3+(Q9-Q8-R8-S8)/T8,IF(Q8+R8+S8+T8+U8>Q9,4+(Q9-Q8-R8-S8-T8)/U8,IF(Q8+R8+S8+T8+U8+V8>Q9,5+(Q9-Q8-R8-S8-T8-U8)/V8,IF(Q8+R8+S8+T8+U8+V8+W8>Q9,6+(Q9-Q8-R8-S8-T8-U8-V8)/W8,IF(Q8+R8+S8+T8+U8+V8+W8+X8>Q9,7+(Q9-Q8-R8-S8-T8-U8-V8-W8)/X8,"8+"))))))))

any ideas ?

Thank You all
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
You could just wrap the whole formula in an IFERROR formula:
Code:
[COLOR=#ff0000]=IFERROR([/COLOR][COLOR=#333333]IF(Q8>Q9,Q9/Q8,IF(Q8+R8>Q9,1+(Q9-Q8)/R8,IF(Q8+R8+S8>Q9,2+(Q9-Q8-R8)/S8,IF(Q8+R8+S8+T8>Q9,3+(Q9-Q8-R8-S8)/T8,IF(Q8+R8+S8+T8+U8>Q9,4+(Q9-Q8-R8-S8-T8)/U8,IF(Q8+R8+S8+T8+U8+V8>Q9,5+(Q9-Q8-R8-S8-T8-U8)/V8,IF(Q8+R8+S8+T8+U8+V8+W8>Q9,6+(Q9-Q8-R8-S8-T8-U8-V8)/W8,IF(Q8+R8+S8+T8+U8+V8+W8+X8>Q9,7+(Q9-Q8-R8-S8-T8-U8-V8-W8)/X8,"8+"))))))))[/COLOR][COLOR=#ff0000],0)[/COLOR][COLOR=#333333][/COLOR]
 
Upvote 0

Forum statistics

Threads
1,217,367
Messages
6,136,141
Members
449,994
Latest member
Rocky Mountain High

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