THREE "HOURS WORKED" FORMATS.....3RD ONE NOT WORKING

JuicyMusic

Board Regular
Joined
Jun 13, 2020
Messages
210
Office Version
  1. 365
Platform
  1. Windows
Hi, I spent a lot of yesterday reading some blogs about DATE & TIME formats in Excel and the consensus I read was that it can be difficult and tricky. I have this three column little table and the 3rd column isn't giving me the correct results if the manual entry in column F is

I have this three column little table. Employees can work over twelve hours, in case you need to know.

1) Manual entry will be in column F. It is for "how many hours worked" only. It won't be a time or an "o'clock".
2) The formula in column G is returning good results.
3) The formula in column H is giving me an AM or PM. It's giving me the same results as in col G and it should only give the round up or down to the next quarter hour depending on what is in column F.

Formula in col G:
Excel Formula:
=F7/(24)
Formula in col H:
Excel Formula:
=IF(F7="","",
MROUND(G7,"0:15"))

My data set snapshot will be attached since I can't install XL2BB. Thank you so much
 

Attachments

  • Capture_time format issue.PNG
    Capture_time format issue.PNG
    16.5 KB · Views: 7

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Col H in your image is giving the time to the nearest 15 mins.
 
Upvote 0
Fluff, Yes it is giving me that correct round up to the next quarter hour. Not AM or PM.

For example, 14.27 in F should give me a 14.25 in column H - not 2:15PM. 14.27 would be how many hours someone worked - not a clock in time.

I added 0.47 as an additional entry so you can see. The result should be .5 not 12:30AM. I hope that helps. I wrote better column headers too. THanks!
 

Attachments

  • Capture_time format issue...with better column headers.PNG
    Capture_time format issue...with better column headers.PNG
    8.8 KB · Views: 5
Upvote 0
In that case use
Excel Formula:
=MROUND(F2,0.25)
 
Upvote 0
Solution
SOLVED! Just taking out the ""? Wow thank you so simple wow. Plus I changed the format in the third column from Time to Number. Thank you !
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,941
Members
449,094
Latest member
teemeren

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