Show Negative Time

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
767
Office Version
  1. 365
Platform
  1. Windows
Good morning,

I am new to Power Pivot and could do with some help please.

I have 2 columns (Requested & Actual) showing time and I need to confirm if we are above or below the actual requested time allowance.

I want to show if the Actual is lower than the Requested in a time value.

I am using the formula below, but the calculation always shows the value but not in a negative (-) value if the Actual is less than the Requested

Code:
='Tablename'[Actual]-'Tablename'[Requested]

Sorry if this is a simple question
thanks in advance.
Gavin
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi Gavin
what display format do you have set for your calculated value? what does it show, please provide example of the output

you could also wrap your calculation in an if
for example:
VBA Code:
=if('Tablename'[Actual] < 'Tablename'[Requested], "Text to denote better than requested" , "Text to denote after requested") & 
'Tablename'[Actual]-'Tablename'[Requested]
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,575
Members
449,039
Latest member
Arbind kumar

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