[Webinar] Streamline your web hosting managementRegister Today

x
• Status: Solved
• Priority: Medium
• Security: Public
• Views: 372

# Excel: Count time formula

Experts does anyone know how I can create a histogram with the data that I have attached?

I need to show how many minutes each ticket took, and build a histogram.

starting with 1 min to infinitie

I need a way to caluclate the times first into minute format.

Count-Times.xls
0
Maliki Hassani
• 5
• 2
• 2
• +1
2 Solutions

Commented:
To get the minutes taken for each line you should be able to create a column with a formula like this on each line:

=(C4-B4)/60*100000

Then round up or down as appropriate. If you need seconds, just don't divide by 60. Some results will look off - this is because of how Excel rounds to the closest minute in your date / time rows.
0

Author Commented:

I can't seem to get it..  gives me ##########
0

Author Commented:
I don't need seconds either just minutes
0

Commented:
Hello alanmsl,

I don't think that formula will give you an accurate number of minutes. For example, taking into account the seconds the difference between C4 and B4 is 3 mins 20 seconds, 3.33 as a decimal representation, your formula gives 3.86

To get minutes in decimal from time you need to multiply by 1440 (the number of minutes in a day), i.e.

=(C4-B4)*1440

format result cell as number

regards, barry
0

Author Commented:
I got it!  I just chnaged the format..

Any idea on how to make a histogram?
0

Commented:
See attached

regards, barry
26647577.xls
0

Author Commented:
Experts:

I have attached the spreadsheet but I still cant seem to make the graph correctly.  I have created a what I would like to see on the spreadsheet.  Please help..   Count-Times.xls
0

Commented:
You may have to make sure the Analysis ToolPak add-in is loaded, but the Data menu has an item called Data Analysis. There is a histogram option under that. One of the options in the histogram (at least for Excel 2010) is to produce a chart.

You will need to produce a list of the "bins" before trying to use this feature. I chose the numbers 1 through 56 for my bins, but you could use even larger numbers if you like.

The data does not need to be sorted (although there is no harm). The bin sizes don't need to be all the same increment. For example you might start increasing bin size after a certain point as I did in the sample workbook.

Count-TimesQ26647577.xls
0

Commented:
LANCE_S_P,
Since my sample workbook used barryhoudini's formula to get the number of minutes, don't you think this question should have been a Split? Hoping that you will agree, I reopened the question--acting in my capacity as Page Editor.