简体   繁体   English

Excel日期和时间与值图

[英]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. 我正在处理具有30,000行以上的数据集,并且需要创建时间值图。

My data consists of 4 types of columns 我的数据包含4种类型的列

  • item 项目
  • date[YYYY-MM-DD] 日期[YYYY-MM-DD]
  • time[00:00:00] 时间[00:00:00]
  • simple values 简单的价值观

I have 15 names in total, and the values are recorded every 10 minutes for 14 days. 我总共有15个名字,这些值每10分钟记录一次,共14天。

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? 如果要创建一个图形,该图形上有15条曲线,x轴上的date&time ,y轴上的value ,该怎么办?

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 行字段: datetime
  • Column field: item 栏位: item
  • Data field: value 数据字段: value

Create your graph from there. 从那里创建图形。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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