Date calculation

bullhead14

New Member
Joined
Jul 29, 2013
Messages
2
Can't see the wood for the trees on this......

I am trying to calculate the hire period for standing pieces of kit.
Col A is Erect Date
Col B is Dismantle Date
Col C is Off Hire date

Col D is calculating the number of hire days =IF(A2="",0,IF(C2="",DATE-A2,C2-A2)) this works when I have dates allocated within Col A and C but when Col A date is inserted and is yet to be dismantled it returns a negative in number form.

Any guidance would be greatly appreciated.
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

Momentman

Well-known Member
Joined
Jan 11, 2012
Messages
4,142
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
DO you have a formula in C2, 'cos I dont see any formula linking erect date and dismantle date i.e column A and column B

In what cell is the negative value returned? and whats the formula in that cell
 

bullhead14

New Member
Joined
Jul 29, 2013
Messages
2
Dates are entered manually as there is no set time frame. Negative value is returned in Col D if no dismantle date has occurred.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,479
Messages
5,831,915
Members
430,091
Latest member
Generally_confused

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