The Community will be temporarily unavailable starting on Friday February 28. We’ll be back as soon as we can! To learn more, check out our Announcements blog post.
Jul 02, 2020 02:51 PM
I’ve got a start date in one column and I’d like to add hours from another column to have it output a date and hour for me. For instance, I start a job June 26 12:00 and I want to add 40 hours to that date. I’d like it to output “June 27 4:00” for me.
I tried the following:
DATEADD({Ramp Start Time},{Ramp Length Hours})
“Ramp start time” is a date field and “ramp length hours” is a duration field.
Currently I’ve got "ramp start time as “6/27/2020 10:00” and “ramp length hours” at 40 and it’s giving me “6/27/2020 10:02”
What am I missing?
Jul 02, 2020 04:22 PM
You need to add ‘hours’ into your DATEADD
formula like this:
DATEADD({Ramp Start Time},{Ramp Length Hours},'hours')
Jul 06, 2020 09:50 AM
Thank you for this. For some reason, it’s giving me a crazy way in the future date with that formula?
So:
"ramp start time is “6/27/2020 10:00” and “ramp length hours” at 40
the result now is “11/30/2036 5:00pm”
Jul 06, 2020 11:16 AM
Oh, sorry — your “Ramp Length Hours” field needs to be a number field, not a duration field.
Jul 17, 2020 11:04 AM
That was it. Thanks so much for the help!
Jul 17, 2020 11:44 AM
You’re welcome! Glad I could help! :slightly_smiling_face: If you don’t mind, could you please mark one of my comments above as the solution to your question? This will help other people who have a similar question in the future. :slightly_smiling_face: