calculating a negative number

Doggerry

New Member
Joined
Aug 20, 2007
Messages
40
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

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
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
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
What are you trying to accomplish?

(you can BTW still use the ABS()-formula around formulas).
 
Upvote 0
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
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
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,214,635
Messages
6,120,660
Members
448,975
Latest member
sweeberry

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