Date Changes After Midnight

bern75

New Member
Joined
Sep 19, 2017
Messages
5
We have certain processes at work that have several steps and also span several days. We often take too much time for one step which in turn eats into the time that we have for other steps. I am developing a spread sheet that allows us to ensure that we only spend a certain time on each step. I start by entering the time that we are beginning the process and how much time we have for the whole process. The spreadsheet then allocates how much time we will have for each step and the time it ends. The problem I have is that it only shows the time and sometimes these steps can go over several days so I would like to have the date represented also. This is where I run into a problem.

I currently have the time in one column and the date in another. I have been able to combine them into one cell but have backed away from that because I am having trouble adding a date/time cell.

I tried this one formula below but it doesn’t work because after it changes the date once when it passes midnight it just keeps adding a new day even when it is not needed =IF(B2+C2>=1,A2+1,A2) (A2 = Start Date, B2 = Start Time, Shift).

I have been stuck for this for a long time and any help would be greatly appreciated, thanks!!!!

P.S. I also have another sheet in the same workbook that I use for certain formulas so if I need to do something out of the ordinary, I have room.

Q: How do I have the date accurately change after the time rolls into another new day.

Starting Date:

Beginning Time
Beginning Date
Time for Whole Process
Hour
Minute
Day
Month
Year
Hour
Minute
14
24
14
11
2018
48
27

<tbody>
</tbody>





Displayed Data:

Steps
Percentage Allocated
for Each Step

Time Allocated
for Each Step

Time Step Will
Be Completed

Date Step Will
Be Completed

Step 1:
5%
1:11
15:36

Step 2:
20%
4:47
20:24

Step 3:
10%
2:23
22:48

Step 4:
30%
7:11
6:00

Step 5:
5%
1:11
7:12

Step 6:
15%
3:35
10:48

Step 7:
15%
3:35
14:24


<tbody>
</tbody>
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
The date will really help, why not just add the date & time within the formula?

Gaz
 
Upvote 0
I originally didn't about the date, just the time. Once I finished that is when I noticed that I should add the date. When you said "add the date & time within the formula" what do you mean by that? I tried to do a date/time combine into one cell using the =TEXT(A2,"m/dd/yy ")&TEXT(B2,"hh:mm:ss"). I haven't been able to add using this process and I'm not sure if it is because the date and time was cmbined as a text. Any help you could give is appreicated, thanks.
 
Upvote 0

Forum statistics

Threads
1,215,095
Messages
6,123,072
Members
449,093
Latest member
ripvw

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