Frequency * Time histogram data

Measels

New Member
Joined
Dec 12, 2016
Messages
2
Hi,

I have searched far and wide for a solution to this and spent hours trying to figure it out, and I am now admiting defeat and hoping someone will be able to help me.

I have the following type of data:

Example dataset:
ABCDE
1LevelTimeBin RangeLevel FrequencyLevel Frequency * Time
21.24002
33.510010
43.93020
52.813033
61.65041
76.28050
83.41061
94.724070

<tbody>
</tbody>


The real data is more substantial (over 10,000 cells worth), this is just to illustrate.

I have generated the frequencies using the following formula "=COUNTIF(A:A,"<"&C3)-COUNTIF(A:A,"<"&C2)". This has worked fine and I can generate a histogram from this.

The problem is that in addition to this, I would like to look not just at the frequency of the level appearing, but to generate a histogram of time spent at that level. I.E. I am trying to come up with a formula that looks at the column with the levels (column A) if the value in column A falls in the correct range, then the corresponding value in column B would be recorded and summed.

Not sure if I explained that too well. For this small data set, I can of course fill in the values manually, and they would come out as shown below:


Example manually calculated solution:
ABCDE
1LevelTimeBin RangeLevel FrequencyLevel Frequency * Time
21.2400290
33.51001040
43.930200
52.813033140
61.65041240
76.280500
83.4106180
94.7240700

<tbody>
</tbody>


Thank you in advance for any suggestions to do this! It's driving me crazy!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Thank you so much, that worked brilliantly, and so much more simple than the various things I was trying.

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,214,629
Messages
6,120,630
Members
448,973
Latest member
ChristineC

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