Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Excel Help

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion

Excel Help
Reply
 
Thread Tools
Old 16-04-2009, 10:52   #1
Dougie
Inactive
 
Join Date: Mar 2005
Location: Manchester
Age: 48
Services: Sky + VM Phone and 20MB BB
Posts: 65
Dougie is an unknown quantity at this point
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
Dougie is offline   Reply With Quote
Advertisement
Old 16-04-2009, 11:04   #2
gazzae
Inactive
 
gazzae's Avatar
 
Join Date: Jun 2003
Location: Belfast
Age: 45
Posts: 4,594
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
gazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronzegazzae is cast in bronze
Try this

http://support.microsoft.com/kb/266691
gazzae is offline   Reply With Quote
Old 16-04-2009, 20:22   #3
cookie_365
Inactive
 
cookie_365's Avatar
 
Join Date: Mar 2004
Location: Brighton
Posts: 2,583
cookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronze
cookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronze
Re: Excel Help

I'm sure there are more elegant ways, but

Code:
=ROUND(((A1*60)+B1)/60,0)
where A1 is the hours and B1 the minutes should do it.
cookie_365 is offline   Reply With Quote
Old 16-04-2009, 21:10   #4
DRZ400
Permanently Banned
 
Join Date: Mar 2009
Posts: 269
DRZ400 is a glorious beacon of lightDRZ400 is a glorious beacon of lightDRZ400 is a glorious beacon of lightDRZ400 is a glorious beacon of lightDRZ400 is a glorious beacon of lightDRZ400 is a glorious beacon of lightDRZ400 is a glorious beacon of light
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))
Id use cookies code with an addition of if it's 23:34 for example, it'll round it up to '0' rather than '24'. The 1410 is 23*60 minutes, plus the 30 minutes.

Code:
 =IF((A1*60)+B1>1410,0,ROUND(((A1*60)+B1)/60,0))
Both work.
DRZ400 is offline   Reply With Quote
Old 17-04-2009, 19:48   #5
cookie_365
Inactive
 
cookie_365's Avatar
 
Join Date: Mar 2004
Location: Brighton
Posts: 2,583
cookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronze
cookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronzecookie_365 is cast in bronze
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)
But like I said - I don't think the OP is after that.
cookie_365 is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:37.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum