Show Negative Time

gmazza76

Well-known Member
Joined
Mar 19, 2011
Messages
769
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

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
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,223,766
Messages
6,174,373
Members
452,560
Latest member
Turbos

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