Date / time for x axis chart

LeepII

New Member
Joined
Jul 18, 2014
Messages
12
I know this has been asked before, but I have tried every fix I have found on this board and microsofts, and none of them have worked.
Using Microsoft Office 365 ProPlus.

Just need a chart that shows temperature and humidity vs date/time. My data set is pretty small, only 20,000 lines over a week (the data logger records every 30 sec). No matter what I try excel positively refuses to put date / time on the x-axis.
I have: Formatted my date/time cells as date time, text, and general, no affect.
I have: selected the x axis and and said the data was time, no affect. Temperature and humidity cells have been formatted as numbers, general, text, no affect.
Tried scatterplot, 2d line both dont work.

Here is the first couple of lines of my data set to look at:
SampleTemp (F)Hum (%RH)Dew Point (F)Date Time
171.451.8552.795/16/2018 9:07
271.750.2552.225/16/2018 9:07
371.8549.151.735/16/2018 9:08
471.8548.751.515/16/2018 9:08
571.8548.551.395/16/2018 9:09
671.7548.5551.335/16/2018 9:09
771.7548.5551.335/16/2018 9:10
871.748.4551.235/16/2018 9:10
971.748.4551.235/16/2018 9:11

<tbody>
</tbody>

The plan was to write a VBA to auto import the data and have the charts update weekly, but I cannot get excel to produce the chart in the first place so I can never get to the actual scripting.

Any help would be most appreciated.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
I have: selected the x axis and and said the data was time, no affect. Temperature and humidity cells have been formatted as numbers, general, text, no affect.

I changed the x axis type to "Text axis" and date and time show up for all data points. Have you tried that?
 
Upvote 0
Oscar,

Yes I had tried the same, still had the same problem.

However Im stubborn, I finally found a method that always puts the date / time on the x axis. This method works no matter the formatting applied to the date / time column or the data column.

1 - Select the column that has the data you wanted plotted for the y-axis, DO NOT select the date / time column at this time.
2 - Insert 2D chart
3 - Right click on chart area and select "Select Data".
4 - Edit Horizontal
5 - Pick the column that has date/time for the data selected.
6 - Click OK, click OK.

You now have a chart that properly puts date / time on the x axis. No idea why excel makes it so difficult. JMP would just see date vs data and automatically sort it out.
 
Upvote 0

Forum statistics

Threads
1,216,569
Messages
6,131,466
Members
449,652
Latest member
ylsteve

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