I am using a spread sheet to calculate estimates. when i type in g7 - h7 (g7 being a positive number and h7 being 0. I am getting a negative total. it would be like subtracting 0-200 - you would still get 200. I am getting -200. any thoughts
I am using a spread sheet to calculate estimates. when i type in g7 - h7 (g7 being a positive number and h7 being 0. I am getting a negative total. it would be like subtracting 0-200 - you would still get 200. I am getting -200. any thoughts
Welocme to the board.
Not if h7 is 0.when i type in g7 - h7 (g7 being a positive number and h7 being 0. I am getting a negative total.
0 minus 200 is -200, not 200.it would be like subtracting 0-200 - you would still get 200.
Entia non sunt multiplicanda sine necessitate
how do i get that to be a posotive #
Agree with shg, 0-200 is -200 not 200
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
Regards
Ford
0-200=-200
200-0=200
ABS(0-200)=200
ABS(200-0)=200
Perhaps you are looking for the ABS() Absolute Value function?
Originally Posted by shg
Much closer Mr. Shorty - thank you. I am trying to find the difference from two cells. for example - I provide an allotment of say 100$ for a product, customer goes out and spends 150. - customer would owe me 50$ and visa versa if the amount was less.. the problem i am having when customer has not picked out anything and I put a 0 in for allotted amount then the total number is coming out negative.
http://austinist.com/2013/04/12/texa...ve_algebra.php
Reckon arithmetic is next.
Some of this just isn't making sense. You say that you want to find the difference between two cells (cell1-cell2), then, when that subtraction is performed, you are unhappy with the result. I'm not understanding (and I would guess that the others are not as well) exactly what you want.
allotted -- spent -- difference
100 -- 150 -- =150-100 -> +50 positive result indicates that spent was greater than allotted
150 -- 100 -- =100-150 -> -50 negative result indicates allotted was greater than spent
100 -- 0 (transaction pending) -- 0-100 -> -100 negative result indicates that transaction has not yet occurred (so is correctly showing that allotted is greater than spent because nothing has been spent, yet).
Is that the kind of thing you are looking at? What is wrong with the negative result in the final example? What would you like it to show instead of the "natural" difference of -100? (Perhaps what you are really looking for is an IF() function that will test for "transaction pending" and not compute the difference?)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks