Date & Time Cell Format for Chart Horizontal Axis

Prevost

Board Regular
Joined
Jan 23, 2014
Messages
198
Hi There. I format my cells to the custom format of dd/mm/yyyy hh:mm:ss to use for a chart. It displays the chart correctly for XY Scatter but this type also doesn't recognize it directly as dates (it converts it to numbers which can then be transferred to dates). When I change the chart type to Clustered Bar, it only displays the chart with one large bar, but it does recognize horizontal axis as a date and has the formatting options for a horizontal date axis. When I change the type to text, it displays correctly but I lose any control over how it is formatted. I would really like to be able to use that cell format and set the axis options (bounds and units) with the other chart types.

I can also format the cells as Time and enter in dd/mm/yyyy hh:mm:ss and only the time shows up in the cell (but in the bar at the top of the screen it displays the date). This will format in the charts correctly, but only displays the time on the horizontal axis and note the full date as required.

Can anyone clarify or help on this issue?

I also haven't been able to figure out how to format the cell as date, but enter in date and time, with it only displaying the date - kind of the reverse situation as above.

Thanks!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Okay then, well does anyone have any suggestions of the best way to plot a chart with the day and time on the horizontal axis?
Thanks!
 
Upvote 0

Forum statistics

Threads
1,215,758
Messages
6,126,709
Members
449,331
Latest member
smckenzie2016

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