Make a cell blank if the product does not fall between -9.99% and 9.99%

zack.harmon

New Member
Joined
Jul 23, 2012
Messages
3
I would like to make a cell blank if the product of H12/F12 is equal to or falls within the range of -9.99% and 9.99%. If the product falls outside of that range I would like the product to display in that same cell. Also in some instances I will have a Zero in either cell H12 and/or F12 and I do not want #DIV/0! to appear. This formula will span across 55 tabs in a workbook.

For added clarification: H12=-2,838 and F12=6,814 which has a product of -42% so I would like that product to display in cell I12. However in other circumstances such as:

H12=4,995 and F12=873,236 my product is 1% and since that falls in between the threshold of -9.99% and 9.99% I want a blank cell to show in I12. Thank yu for any help.
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Try

=IF(F12=0,"",IF((ABS(H12/F12)<=0.0999)*(H12<>0),"",H12/F12))
 
Upvote 0
Ben, that seems to work well, however there is a scenario that still displays a product of 0% in instances where Col. H has a 0 value. Btw thank you for your quick and dedicated reply the first go around.
 
Upvote 0
Try

=IF((F12=0)+(H12=0),"",IF((ABS(H12/F12)<=0.0999)*(H12<>0),"",H12/F12))
 
Upvote 0
No problem :) Glad I could help :beerchug: Appreciate the feedback!
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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