calculating a negative number

Doggerry

New Member
Joined
Aug 20, 2007
Messages
37
Office Version
  1. 365
Platform
  1. Windows
Can anybody help at all. I am trying to calculate a number that may be a negative from a predetermined number.

eg

=150 minus -2.5 for some reason it returns the answer as 152.5.

Plaese help.
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Willem!

Board Regular
Joined
Mar 6, 2009
Messages
139
Hi,


150 - -2.5 = 152.5

If you want to use the absoluut value of -2.5, try:

=150-ABS(-2.5) = 147.5

HTH
thumbup.gif
 
Upvote 0

schielrn

Well-known Member
Joined
Apr 4, 2007
Messages
6,941
Because 150 - (-2.5) is really 150 + 2.5, since double negatives become a positive.

Maybe you want 150 + -2.5 .

Or maybe:

-2.5 + 150

Hope that helps?
 
Upvote 0

Willem!

Board Regular
Joined
Mar 6, 2009
Messages
139
What are you trying to accomplish?

(you can BTW still use the ABS()-formula around formulas).
 
Upvote 0

Doggerry

New Member
Joined
Aug 20, 2007
Messages
37
Office Version
  1. 365
Platform
  1. Windows
I am adding up employees timesheets.

I have calculated their daily hours. then weekly. At the end of the month I need to know if they have worked more or less than 150 hours that month.

So one week they may have worked only 37 hours and the next week 37.5, by the end of the month an employee may have worked 149.5 hours and I want this to show.

The =150 - ABS() function does not work, if someone has worked over 150 hours it does not calculate correctly.
 
Upvote 0

Willem!

Board Regular
Joined
Mar 6, 2009
Messages
139
I do not quite understand you. Do you want the following?

Person1 works 155 hours in 1 month
Person2 works 145 hours in 1 month

You want to show the following:

Person1 +5 hours
Person2 -5 hours

Am I right? Do you want this? In that case, just do '# hours worked' minus 150...

HTH
 
Upvote 0

Doggerry

New Member
Joined
Aug 20, 2007
Messages
37
Office Version
  1. 365
Platform
  1. Windows
The spreadsheet was built by somebody else and given to me to tweak.

I have since found out that said sheet has been passed to numerous people to have a look at, who have then corrupted all the the formulae.

Going to start it again using my calculations.

Thanks for your help.
 
Upvote 0

Forum statistics

Threads
1,191,125
Messages
5,984,786
Members
439,911
Latest member
dk73

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
Top