Excel时间表 [英] Excel Timesheet

查看:175
本文介绍了Excel时间表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些以下格式的数据:



工资

代码InTime



1690 09:03:00

1690 09:13:00

1690 09:07:00

1691 08:48:00

1691 08:52:00

1691 08:50:00

1691 08:54:00

1691 08:46:00 < br>
1691 09:28:00

1691 08:59:00

1691 08:53:00

1691 09:02: 00

1693 08:57:00

1693 09:01:00

1693 08:54:00

1693 09: 22:00

1693 09:16:00

1693 08:58:00

1693 09:03:00

1693 09:01:00

1693 09:02:00

1693 09:44:00

1885 09:28:00

1885 09:04:00

1885 09:20:00

1885 08:57:00



它大约2000行
我需要绘制一个线图,绘制每个工资代码的时间作为趋势,与单独的行的独立的薪水代码。有自动化的方法吗?
请注意,薪金代码每天重复。

解决方案

它可以在没有编程的情况下完成,但有一个需要添加的信息位,以便使其有意义 - 每个条目的日期或序列号。
然后您将能够绘制:


  1. 工资代码:

  2. 日期或序列号:x轴

  3. 时间:值/ y轴

最简单的方法是使用PivotChart向导:




  • 选择(现在)3列并选择Data | PivotTable and PivotChart Report。

  • 选择PivotChart类型

  • 点击向导完成...您应该会看到原始图表页面

  • 右键点击图表,从数据透视表字段列表中选择图表类型并更改为线类型

  • ,选择:


    • 日期或序列号 - 添加到类别轴

    • 工资代码 - 添加到系列轴

    • 时间 - 添加到数据区


  • 默认情况下,它会绘制时间计数右键点击时间计数字段按钮小部件

  • 选择格式数据透视图字段 / li>
  • 更改为sum,average,max或min(代表实际数据的任何值 - 只适用于一个值,因此聚合函数很好)


    • 现在,您的图表行应该可以,但y轴只是一个无意义的值。


      • 右键单击y轴并选择格式轴

      • 转到数字将格式更改为时间




    每个工资代码的行,每天绘制时间趋势


    I have some data in the following format:

    Salary
    Code InTime

    1690 09:03:00
    1690 09:13:00
    1690 09:07:00
    1691 08:48:00
    1691 08:52:00
    1691 08:50:00
    1691 08:54:00
    1691 08:46:00
    1691 09:28:00
    1691 08:59:00
    1691 08:53:00
    1691 09:02:00
    1693 08:57:00
    1693 09:01:00
    1693 08:54:00
    1693 09:22:00
    1693 09:16:00
    1693 08:58:00
    1693 09:03:00
    1693 09:01:00
    1693 09:02:00
    1693 09:44:00
    1885 09:28:00
    1885 09:04:00
    1885 09:20:00
    1885 08:57:00

    and so it goes for about 2000 lines I need to plot a line graph , that plots the intime for each salary code as a trend, with seperate lines for seperate salary codes. Is there an automated way to do this? Please note that the salary codes repeat for each day. The trend required is for each salary code, not row by row.

    解决方案

    It can be done without programming, but there is one bit of information you need to add in order for this to make sense - the date or sequence number for each entry. Then you will be able to plot:

    1. salary code: the series
    2. date or sequence number: the x-axis
    3. In Time: the value / y-axis

    The easiest way is with the PivotChart Wizard:

    • select the (now) 3 columns and choose "Data | PivotTable and PivotChart Report.."
    • select PivotChart type
    • click through the wizard to completion ... you should end up the raw chart page
    • right-click chart are, choose "chart type" and change to "line" type
    • from the "PivotTable Field List", choose:
      • date or sequence number - add to "Category Axis"
      • salary code - add to the series axis
      • in time - add to the data area
    • By default, it will plot "Count of In Time": need to change this
      • right-click the "Count of In Time" field button widget
      • choose "Format PivotChart Field"
      • change to sum, average, max or min (anything that represents the actual data - it only applies to the one value so aggregate functions are fine)
    • Now your chart lines should be OK, but the y-axis is just a meaningless value.
      • right-click the y-axis and choose "format axis"
      • go to the "Number" tab and change the format to "Time"

    Voila! Lines for each salary code, plotting the "in time" trend day by day

    这篇关于Excel时间表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆