#DIV-0! error Help with IF forrmula

Scrumpywill

New Member
Joined
Jul 28, 2018
Messages
23
Hello, could someone please help where and how I would place the IF formula to remove the #DIV-0! error

im using =(O18-H18)/ABS(H18) but there is on value in cell H18 so it returning an error

Many Thanks Steve
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi Steve,

Try adding some error handling to the start of your formula
eg =IF(H18<>"", (O18-H18)/ABS(H18), "")
Which in Lehmanns terms means if H18 is not blank then return the value and if it is then remain blank

Let me know if that helps
 
Upvote 0
=IF(ISNUMBER(1/H18),(O18-H18)/ABS(H18),"")

You can still run into trouble if O18 is text, i.e. not number or empty.
 
Upvote 0
thanks for the reply - sorry buddy its still got the error I used this with and without the $

=IF($H10<>"",(O10-H10)/ABS(H10),"")
 
Upvote 0
Can you show me the spreadsheet?
Also is the ABS function required?? Is it possible for the number to be less than 0?? If the answer is no then the ABS function is not required.
If it can be negative then try this =IF(H10>0, (O10-H10)/H10), "")

Otherwise copy and paste this formula =IF(H10<>"", O10-H10/(H10), "")
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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