How to sort a single column of dated & timed hourly data into Weekday & Weekend profiles.

DalkeyJMo

New Member
Joined
May 19, 2014
Messages
2
Hi, hope some of you gurus can help me please.

I have a large download of data from a Gas meter, which I need to analyse to show a line chart with 3 lines: max, min and avg values for each time slot per weekday (M-F) and per weekend day (S-S). Time slots on X axis (horiz) & value of gas used on Y axis (Vertical).

Data downloads in 2 columns:

14/07/2010 00:00372.315
14/07/2010 01:00326.365
14/07/2010 02:00315.761
14/07/2010 03:00269.811
14/07/2010 04:00243.89
14/07/2010 05:00233.286
14/07/2010 06:00248.603
14/07/2010 07:00230.93
14/07/2010 08:00239.177
14/07/2010 09:00262.742
14/07/2010 10:00242.712
14/07/2010 11:00212.078
14/07/2010 12:00247.425
14/07/2010 13:00250.959
14/07/2010 14:00247.425
14/07/2010 15:00239.177
14/07/2010 16:00223.861
14/07/2010 17:0083.653
14/07/2010 18:0060.089
14/07/2010 19:0057.732
...............
16/04/2014 00:00271.059
16/04/2014 01:00279.646
16/04/2014 02:00300.62
16/04/2014 03:00344.897
16/04/2014 04:00327.419
16/04/2014 05:00336.741
16/04/2014 06:00304.115
16/04/2014 07:00285.472
16/04/2014 08:00284.307
16/04/2014 09:00262.168
16/04/2014 10:00255.177
16/04/2014 11:00255.177
16/04/2014 12:00251.682
16/04/2014 13:00244.691
16/04/2014 14:00227.213
16/04/2014 15:00238.865
16/04/2014 16:00252.847
16/04/2014 17:00236.534
16/04/2014 18:00254.012
16/04/2014 19:00250.517
16/04/2014 20:00238.865
16/04/2014 21:00233.039
16/04/2014 22:00241.195
16/04/2014 23:00302.95
17/04/2014 00:00300.972


Total height of column is nearly 33,000 rows, so very difficult to manually sort this out, even adding prefixes 1-7 etc.

Is there a straightorward way to parse this monster pair of columns into 2 overviews: 1 for workdays (M-F) and 1 for weekends (S-S).

My Excel skills extend to Filter, Sorting, Lookups & various formulas.

Thanks in advance for any help.

JMo
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Add a helper formula to determine if it is a weekend or weekday.

=IF(WEEKDAY(A2,2)<=5,"Weekday","Weekend")

Then just use a pivot table to summarize it based on that column.
 
Upvote 0
Hi,
You can use either of these formuals. Insert a new column and make the formula reference the cell(s) in the date column. I have set mine up in Column a And had the date in Column B.

This one will tell you which day of the week the date is
=TEXT(WEEKDAY(B2),"dddd")

And this one will split it into weekday and SS

=IF(OR(WEEKDAY(B3)=1,WEEKDAY(B3)=7),"SS","Weekday")
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,198
Members
449,072
Latest member
DW Draft

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