简体   繁体   中英

Excel Date&Time vs value plot

I am working on a dataset that has over 30,000 rows, and I need to create a time-value plot.

My data consists of 4 types of columns

  • item
  • date[YYYY-MM-DD]
  • time[00:00:00]
  • simple values

I have 15 names in total, and the values are recorded every 10 minutes for 14 days.

If I want to create a graph that has 15 curves on it with date&time on the x-axis and value on the y-axis, how should I do it?

I sorted the data with names, date, time, so I could do it manually by selecting the values and Date&time for each item which would be ridiculous. Would creating a Loop in Macro help and how to code it? or is there another way of doing it?

Create a pivot table with

  • Row fields: date and time
  • Column field: item
  • Data field: value

Create your graph from there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM