HeRoseInThree

Board Regular
Joined
Jan 11, 2018
Messages
106
Office Version
  1. 365
Platform
  1. Windows
Hey there! I am using Microsoft 365. Could you help write me a excel formula that adds the hours (column q), minutes (column r) and seconds (column s))? Additionally, any seconds that total more than 59 make it a zero and add one minute to the corresponding cell in column r and the same for minutes in column r to hours in column q?

This is what I have and it works on a few rows, but not on all... =IF(OR(Q7="",R7="",S7=""),"",TEXT(Q7+INT((R7+INT(S7/60))/60),"0")&":"&TEXT(MOD(R7+INT(S7/60),60),"00")&":"&TEXT(MOD(S7,60),"00"))

Thanks SO much in advance!!
 

Attachments

  • Screenshot 2025-03-27 135004.jpg
    Screenshot 2025-03-27 135004.jpg
    28.3 KB · Views: 5
How about
Excel Formula:
=IF(COUNTIFS(Q7:S7,">0")=3,TIME(Q7,R7,S7),"")
 
Upvote 0
Thanks for the reply, but there are a lot of blanks and incorrect results.
 

Attachments

  • Screenshot 2025-03-27 140446111.jpg
    Screenshot 2025-03-27 140446111.jpg
    24.3 KB · Views: 3
Upvote 0
Can you post that using the XL2BB add-in. Also what are the correct values.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Thanks. I am trying. I am at work, and our security is not letting me. I'll try from home tonight with my laptop.
 
Upvote 0

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