Dividing a positive and negative value giving #div/0 answer

NICKRENN

New Member
Joined
Sep 6, 2017
Messages
22
Hi all

I have a weird problem that seems to only be affecting a new work book.

The formula is the following =(sum(A2:C2))/(D2-(sum(A2:C2)))

A2 = 0
B2 = 1
C2 = 1
D2 = 1

So in effect you have =2/(1-2) or 2/-1 - my results are being shown as a % and so this should show a negative % answer but i'm getting #DIV/0 ?

Does anyone have any tips for things i can look for, bugs, formatting issues, number errors anything :)

I made a copy of a previous workbook and this formula works in the other one just not this one.

Thanks in advance.

Nick
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Does anyone have any tips for things i can look for, bugs, formatting issues, number errors anything :)

Hi, welcome to the board!

Maybe a couple things to get you started:

1. Check that those values are proper numbers and not text that looks like numbers : i.e. =COUNT(A2:C2) should return 4
2. Check that the values are really what you expect : i.e. =COUNTIF(B2:D2,1) should return 3 and =A2=0 should return TRUE
 
Upvote 0
thank you so much! i went though a process of elimination found C2 which was pull its number from another data set was showing a 0 using =count

In the data set which was a converted CSV file the numbers were stored as text so, even if C2 was a number it was being read as text from the other sheet.

i have now converted them all and it works again!

Thanks
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,212
Members
452,618
Latest member
Tam84

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