![]() |
Excel Help
Hello, are there any advanced Excel users on here that can help me?
I have a monthly report that details hours and minutes run for various items. Unfortunately the source of the spreadsheet creates the hours in one column and the minutes in another column. I want to combine these two cells and round them up or down to the nearest hour. Does that make sense, is it even possible to automate this process? Thank You |
|
Re: Excel Help
I'm sure there are more elegant ways, but
Code:
=ROUND(((A1*60)+B1)/60,0) |
Re: Excel Help
Or much less elegant if you try hard!!
Code:
=IF(AND(A1=23,B1>30),0,IF(B1>30, A1+1,A1))Code:
=IF((A1*60)+B1>1410,0,ROUND(((A1*60)+B1)/60,0)) |
Re: Excel Help
I'm not sure you'd want to reset above 24 down to 0 - aren't we working on numbers of hours, not clock times?
But if you were working on times and wanted to combine separate hour and minute readings into the nearest hour, then I'd go for Code:
=ROUND(MOD(((A1*60)+B1)/60,24),0) |
| All times are GMT +1. The time now is 23:10. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum