#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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,225,743
Messages
6,186,777
Members
453,370
Latest member
juliewar

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