Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Removing minutes from hours:minutes in Excel

I am trying to track the number of online transactions throughout the day by
hour. I have exported from a database a field that shows date and time
together in each cell. I have figured out how to separate date and time into
separate columns. But I want to convert all the hours:minutes into the hour
only, for instance 6:01, 6:17, and 6:20 should all become 6:00. I have tried
doing ROUNDDOWN, but this simply rounds down to various hours and minutes,
depending on how many "decimals" I say to retain. TRUNCATE likewise does not
work. The new value needs to be exactly at the hour so that all transactions
during 6:00-6:59 show 6:00 as the underlying value. How do I do this

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Removing minutes from hours:minutes in Excel

Try

=HOUR(A1)

Mike

"wpc09" wrote:

I am trying to track the number of online transactions throughout the day by
hour. I have exported from a database a field that shows date and time
together in each cell. I have figured out how to separate date and time into
separate columns. But I want to convert all the hours:minutes into the hour
only, for instance 6:01, 6:17, and 6:20 should all become 6:00. I have tried
doing ROUNDDOWN, but this simply rounds down to various hours and minutes,
depending on how many "decimals" I say to retain. TRUNCATE likewise does not
work. The new value needs to be exactly at the hour so that all transactions
during 6:00-6:59 show 6:00 as the underlying value. How do I do this

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Removing minutes from hours:minutes in Excel

One way:

=FLOOR(A1,TIME(1,0,0))


In article ,
wpc09 wrote:

I am trying to track the number of online transactions throughout the day by
hour. I have exported from a database a field that shows date and time
together in each cell. I have figured out how to separate date and time into
separate columns. But I want to convert all the hours:minutes into the hour
only, for instance 6:01, 6:17, and 6:20 should all become 6:00. I have tried
doing ROUNDDOWN, but this simply rounds down to various hours and minutes,
depending on how many "decimals" I say to retain. TRUNCATE likewise does not
work. The new value needs to be exactly at the hour so that all transactions
during 6:00-6:59 show 6:00 as the underlying value. How do I do this

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting total minutes into hours and minutes in Excel colette Excel Worksheet Functions 11 December 26th 07 07:24 PM
converting Days Hours & minutes into just minutes in excel Six Sigma Blackbelt Excel Discussion (Misc queries) 5 April 28th 06 09:45 PM
how to change a decimal number (minutes) into hours and minutes? Erwin Excel Discussion (Misc queries) 2 November 5th 05 04:22 PM
Convert a number of minutes like 400 into hours and minutes bloke Excel Worksheet Functions 3 June 24th 05 05:00 PM
add column of minutes, show total in hours & minutes glider pilot Excel Worksheet Functions 1 December 30th 04 10:27 PM


All times are GMT +1. The time now is 12:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"