Date format in a chart (x-Axis)

david23

New Member
Joined
Apr 1, 2013
Messages
1
Hi,
i have to plot the air temperature measured during many years 4 times per day.

as x-data i have to give the full date (dd/mm/yyyy hh:mm), but then i want that the chart just displays the year one time. If i change the format of x-axis as yyyy;@ i become the years 1900, 1901, ..., 1909, while my datas go from 2010 to 2012..

can someone help me?

Thanks a lot!:)

EDIT: i also have date and hour in separate columns (1 column for year, 1 for month, 1 for day, 1 for hour, 1 for minutes) but i collapsed all with vba because i thinked it was easier, isn't it?
 
Last edited:

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,214,943
Messages
6,122,380
Members
449,080
Latest member
Armadillos

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