#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

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
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,215,514
Messages
6,125,273
Members
449,219
Latest member
daynle

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