简体   繁体   中英

Excel 2010 Pivot Table - Convert Text into Data

I have 2 worksheets that I need to create 2 different pivot tables for.

On the first worksheet (Injuries) I need the data to be sorted by Department (FSD or Dist), which is marked by placing an "X" in the correct category.

I then need columns that quantify which type of injury it was, for example "Record Only", "Lost Time", etc. and know how many lost days there are for each department.

I'm stumped on how to change the marked categories into actual numerical data in the table.

On the second table , "Motor Vehicle Accidents", I again need the data sorted between department, which is marked with an "X".

I then need to know which type of accident it was, for example "Preventable" or "Parked".

在此处输入图片说明

在此处输入图片说明

Make a Column that maps that for you. For example, for the first Sheet, you can make a column and put the following formula on the cell:

=IF(D46<>"";"FSD";"DST")

For the second, it will be the same principle:

=IF(G85<>"";"PREVENTABLE";IF(H85<>"";"NON PREVENTABLE;IF(I85<>"";"PARKED";"1-800 MOR")))

Hope it helps.

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