Hi guys, when dragging a cell down to repeat a formula throughout a column, what is the trick that avoids having the #DIV/0! error display on rows without data in them?
Hi every one,
As Bruno said, I should not add anything after Aladin and Hotpepper, I am just adding to see if I am correct,
I used a formula that was given to me by Aladin, with a little change.
=IF(COUNT(D136,P136)=2,(D136-P136)/ABS(P136),"").
The reason is that if OP has divisor (denominator) and numerator is blank?
Please correct me, if I am wrong so I can learn more.
Thanks
That will do the division if there is a number in D136 and P136. However, it won't protect against #DIV/0! if there is an actual 0 in P136 because 0 is a number. However, the last formula Aladin posted should.
It's getting longer and longer. It's only advantage is that it doesn't use the "If" function, which I try not to overuse for aethetic reasons. If you wish to use the "If" solutions, just change the "" to 1.
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.