Results 1 to 5 of 5
  1. #1
    raj_20 is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2015
    Location
    india
    Posts
    3

    convert minutes to hours in pivot table...

    Could anybody help me out with this...
    I have created this pivot table in ms access 2007 out of the data available. These are averages of minutes (time) for every month out of the total minutes for that month. Now i want to convert this minutes into hh:mm (hours:minutes)format inorder to get a better analysis.. how do i go about?
    Thanks...



    Click image for larger version. 

Name:	hr_min.jpg 
Views:	11 
Size:	108.5 KB 
ID:	23519

  2. #2
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,444
    Assuming you can have more than 24 hours returned (1440 minutes) you can't actually use a date format to get the hours but will need to use a formula

    assuming 121.5028902 is minutes would be

    format(minutes\60,"00") & ":" & format(minutes mod 60,"00")

    which will give you 02:02

    which rounds the minutes

    if you are always below the 24 hr limit then you can use

    format(minutes/(60*24),"hh:nn")

    which does not round minutes

  3. #3
    raj_20 is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2015
    Location
    india
    Posts
    3
    Tnks Ajax for your valuable reply...
    but the format code you have provided can be utilised in Query.. How do i do it in Pivot table?
    From the attached image you could examine that only the count field is highlighted and can be used whereas i cannot use the average function...
    Please tell me how to go about it now...
    Click image for larger version. 

Name:	formt.png 
Views:	9 
Size:	92.7 KB 
ID:	23524

  4. #4
    CJ_London is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,444
    regret I've not used pivot tables to any great extent but think you will need to do something slightly different to what I original suggested

    1. create your calculated 'min' value as minutes/(60*24)

    2. then in the pivot table view, right click on the min column heading and select properties. In the format tab - number put hh:nn or perhaps hh:mm

    This will only work for values less that 1440

  5. #5
    raj_20 is offline Novice
    Windows XP Access 2007
    Join Date
    Feb 2015
    Location
    india
    Posts
    3
    Thanks Ajax.. for the solution
    I could manage to do it the way i want.. but still its a big data-sheet, i would let you know if i am having any difficulties...

    thanks once again..

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 08-30-2015, 05:17 AM
  2. convert hours into minutes
    By princess12 in forum Access
    Replies: 5
    Last Post: 04-13-2015, 01:12 PM
  3. Replies: 4
    Last Post: 06-12-2013, 10:20 AM
  4. Converting minutes into hours in report
    By jinro in forum Access
    Replies: 13
    Last Post: 04-01-2013, 07:06 PM
  5. Converting Minutes Into Hours
    By KellyM in forum Reports
    Replies: 8
    Last Post: 04-23-2012, 12:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums