Re calculate Date and Time

Steven1985

Board Regular
Joined
Mar 2, 2011
Messages
66
Column A3 shows Date and Time

30/08/2011 15:07:00

I need in Column AL to replicate that time but change date by 1 day

i.e 31/08/2011 15:07:00

Current formual used is - =IF(A3="","",WORKDAY(A3,1,Controls!$A$10:$A$47)) which changed the date but not the time.

Any ideas?

Thanks
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Assuming your cell value is a number, formatted as an actual date and time, you simply add 1 to it

In Excel, all dates and times are actually stored as numbers, where the date is an integer, and time is a decimal where 1 hour = 1/24 or 0.0417

To see the underlying number, simply format the cell as a number. Don't start trying to swap from time to decimals in your own way, its an absolute minefield and an extremely common mistake! Just think in terms of 1 = 1 day, 0.5 = 12 hours etc
 
Upvote 0
I need to make it simple for management looking at the data as they wont understand.

So i need it to read 30/08/2011 15:07:00 in Column A and read 31/08/2011 15:07:00 in column AL.

I then have a forumla to count how many days hours and mins it has taken to work.
 
Upvote 0
I need to make it simple for management looking at the data as they wont understand

well, good luck with that then :rofl:

Moving swiftly on, I assume that it is indeed a number underneath, that we are working with

You can simply add the 1 as I suggested. You can then also perform other calculations as required, such as subtracting an end time/date from a start time/date

Your results will look unusual though, including the year 1900 or 1904. This is because Excel's date system starts in either 1900 or 1904, depending on version / settings etc. However, your result is actually correct, you just need to play around with it a bit - this year is implying there are no years in your result, as would be expected in the result, say, 10 days. It is usually this type of result that makes people think they are doing something wrong, and yes, it is annoying

Do your calculation, then put INT() around it, to pull out the integer value. This is the number of days, format it as a number as required

Subtract this INT() result from your total days & time, and you are left with just the time. Format this as a time only

Or you can look at custom time / date formats, e.g. [dd"d" hh:mm]

You can also use hour() and minute() functions if needed
 
Upvote 0
calculate with simple addition / subtraction on the times and dates, assuming these are numeric values as described above, and not for example, text strings

use the INT() function on your results, to work out the integer section i.e. the whole number bit before the decimal (this whole number is the number of days taken)

Subtract int(x) from x to leave only the decimal bit, which is effectively the % of a whole day, and is the value that represents a normal time, in Excel time format

Use cell formatting to show your results as you need them. Numbers for the days, and an appropriate time format for the hours and minutes

If you want to show the time differently, you can use =Hour() and =Minute() to break out those sections
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,917
Members
452,949
Latest member
beartooth91

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