Consumption data - Energy plot

chally3

Board Regular
Joined
Mar 22, 2006
Messages
157
Hi all,

I'm trying to create a graph to show energy consumption between certain hours and the data I have is imported into excel every half hour.

Column A is a Kwh value column B is a start time stamp column c is a finish time stamp

What I would to do is column D is if the time stamp is between '05:30 to 23:00 on the same day return the value in A
In column E the same principal, but show the data from column A if the time stamp is between 05:30-23:00

Could anyone with a formula to do this as I need to plot both lines on a graph.

Thank you and I hope that explains it


snap of data below

Consumption (kWh)StartEnd
0.3942022-10-01T00:00:00+01:002022-10-01T00:30:00+01:00
1.142022-10-01T00:30:00+01:002022-10-01T01:00:00+01:00
0.0682022-10-01T01:00:00+01:002022-10-01T01:30:00+01:00
0.0892022-10-01T01:30:00+01:002022-10-01T02:00:00+01:00
0.0522022-10-01T02:00:00+01:002022-10-01T02:30:00+01:00
0.0672022-10-01T02:30:00+01:002022-10-01T03:00:00+01:00
0.0382022-10-01T03:00:00+01:002022-10-01T03:30:00+01:00
0.0582022-10-01T03:30:00+01:002022-10-01T04:00:00+01:00
0.0862022-10-01T04:00:00+01:002022-10-01T04:30:00+01:00
0.0732022-10-01T04:30:00+01:002022-10-01T05:00:00+01:00
0.0662022-10-01T05:00:00+01:002022-10-01T05:30:00+01:00
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,224,826
Messages
6,181,192
Members
453,021
Latest member
pingpong7117

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