Formula producing a negative value

Pheonix2332

New Member
Joined
Feb 3, 2021
Messages
20
Office Version
  1. 2013
Platform
  1. Windows
Afternoon all,

I'm in the process of making a calculator for my work place an have run into a slight mind block I'm trying to calculate differences on 2 variables which is based on a pass or fail scenario the code I'm using is this "=IF(R3="Fail",IF(AND(G3="",N3=""),ROUND((H3-O3),3),ROUND((G3-N3),3))& " KG","N/A")" however its producing a negative value and needs to have the negative value removed to a positive - i know its caused buy the figures being rounded up under the last if function "ROUND((G3-N3),3)" but need it to be a positive result. I've tried the absolute function but getting conflicting error message on excel anybody able to help please ?
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
How about
Excel Formula:
=IF(R3="Fail",IF(AND(G3="",N3=""),ABS(ROUND((H3-O3),3)),ABS(ROUND((G3-N3),3)))& " KG","N/A")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
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