• Skip to main content
  • Skip to header right navigation
  • Skip to site footer

My Online Training Hub

Learn Dashboards, Excel, Power BI, Power Query, Power Pivot

  • Courses
  • Pricing
    • Free Courses
    • Power BI Course
    • Excel Power Query Course
    • Power Pivot and DAX Course
    • Excel Dashboard Course
    • Excel PivotTable Course – Quick Start
    • Advanced Excel Formulas Course
    • Excel Expert Advanced Excel Training
    • Excel Tables Course
    • Excel, Word, Outlook
    • Financial Modelling Course
    • Excel PivotTable Course
    • Excel for Customer Service Professionals
    • Excel for Operations Management Course
    • Excel for Decision Making Under Uncertainty Course
    • Excel for Finance Course
    • Excel Analysis ToolPak Course
    • Multi-User Pricing
  • Resources
    • Free Downloads
    • Excel Functions Explained
    • Excel Formulas
    • Excel Add-ins
    • IF Function
      • Excel IF Statement Explained
      • Excel IF AND OR Functions
      • IF Formula Builder
    • Time & Dates in Excel
      • Excel Date & Time
      • Calculating Time in Excel
      • Excel Time Calculation Tricks
      • Excel Date and Time Formatting
    • Excel Keyboard Shortcuts
    • Excel Custom Number Format Guide
    • Pivot Tables Guide
    • VLOOKUP Guide
    • ALT Codes
    • Excel VBA & Macros
    • Excel User Forms
    • VBA String Functions
  • Members
    • Login
    • Password Reset
  • Blog
  • Excel Webinars
  • Excel Forum
    • Register as Forum Member

Excel Timesheet|General Excel Questions & Answers|Excel Forum|My Online Training Hub

You are here: Home / Excel Timesheet|General Excel Questions & Answers|Excel Forum|My Online Training Hub
Avatar
sp_LogInOut Log In sp_Registration Register
sp_Search Search
Advanced Search|Last Search Results
Search
Forum Scope




Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Search Search
sp_RankInfo
Lost password?
sp_CrumbsHome HomeExcel ForumGeneral Excel Questions & Answe…Excel Timesheet
sp_PrintTopic sp_TopicIcon
Excel Timesheet
Avatar
Marsha Mattingly

New Member
Members
Level 0
Forum Posts: 2
Member Since:
August 15, 2019
sp_UserOfflineSmall Offline
1
August 15, 2019 - 3:11 am
sp_Permalink sp_Print

I have a excel time sheet that I have to enter my time in everyday.  I would like it to return a value if I put in 7:16 to 7:29 or 7:31 to 7:44 to round it to 7:30 for morning, and 3:46 to 3:59 or 4:01 to 4:14 to round it to 4:00 pm in the afternoon.  I have attached my excel sheet for reference.

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 870
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
2
August 15, 2019 - 7:45 am
sp_Permalink sp_Print

Hello,

You can use MROUND function to round up or down to nearest half hour. 

Example: The entered time of 7:12 in cell C3 will with below formula be shown as 7:00.

=MROUND(C3,30/60/24)

Just wrap it with needed functions if you want this rounding only to occur within specific time values.

Avatar
Marsha Mattingly

New Member
Members
Level 0
Forum Posts: 2
Member Since:
August 15, 2019
sp_UserOfflineSmall Offline
3
August 15, 2019 - 11:22 pm
sp_Permalink sp_Print

I just need the times as stated above "I would like it to return a value if I put in 7:16 to 7:29 or 7:31 to 7:44 to round it to 7:30 for morning, and 3:46 to 3:59 or 4:01 to 4:14 to round it to 4:00 pm in the afternoon"

So, how would I use the above formula "=MROUND(C3,30/60/24)" to make it work?

Avatar
Anders Sehlstedt
Eskilstuna, Sweden

VIP
Members


Trusted Members
Level 3
Forum Posts: 870
Member Since:
December 7, 2016
sp_UserOfflineSmall Offline
4
August 16, 2019 - 8:08 am
sp_Permalink sp_Print

Hello,

My apologies for not giving you a complete formula in my previous answer. As I do not know how you want this to work, for example where you want the rounded times to show, if you want to be able to change the time criterias without changing the formula or not, I left my previous answer incomplete.

=IF(OR(AND(C3>$B$16,C3<$B$17),AND(C3>$B$18,C3<$B$19)),MROUND(C3,30/60/24),C3)

The formula above is a complete formula. In this example I have entered the time criterias in cells B16 to B19, as listed below.

B16 = 07:15 | B17 = 07:45 | B18 = 15:45 | B19 = 16:15

By listing the criterias like this I am able to change without interfering with the formulas. I hope this answer gives you help to continue with your work.

sp_Feed
Go to top
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online: Lynnette Altomari, Jessica Stewart, Roy Lutke, Jeff Krueger
Guest(s) 12
Currently Browsing this Page:
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 870
Purfleet: 412
Frans Visser: 346
David_Ng: 306
lea cohen: 219
A.Maurizio: 202
Jessica Stewart: 202
Aye Mu: 201
jaryszek: 183
Newest Members:
Sopi Yuniarti
sandra parker
LAFONSO HERNANDEZ
Hayden Hao
Angela chen
Sean Moore
John Chisholm
vexokeb sdfg
John Jack
Malcolm Toy
Forum Stats:
Groups: 3
Forums: 24
Topics: 6214
Posts: 27243

 

Member Stats:
Guest Posters: 49
Members: 31894
Moderators: 3
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: MOTH Support, Velouria, Riny van Eekelen
© Simple:Press —sp_Information

Sidebar

Blog Categories

  • Excel
  • Excel Charts
  • Excel Dashboard
  • Excel Formulas
  • Excel PivotTables
  • Excel Shortcuts
  • Excel VBA
  • General Tips
  • Online Training
  • Outlook
  • Power Apps
  • Power Automate
  • Power BI
  • Power Pivot
  • Power Query
microsoft mvp logo
trustpilot excellent rating
Secured by Sucuri Badge
MyOnlineTrainingHub on YouTube Mynda Treacy on Linked In Mynda Treacy on Instagram Mynda Treacy on Twitter Mynda Treacy on Pinterest MyOnlineTrainingHub on Facebook
 

Company

  • About My Online Training Hub
  • Disclosure Statement
  • Frequently Asked Questions
  • Guarantee
  • Privacy Policy
  • Terms & Conditions
  • Testimonials
  • Become an Affiliate

Support

  • Contact
  • Forum
  • Helpdesk - For Technical Issues

Copyright © 2023 · My Online Training Hub · All Rights Reserved. Microsoft and the Microsoft Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries. Product names, logos, brands, and other trademarks featured or referred to within this website are the property of their respective trademark holders.