chimneytop
New Member
- Joined
- Aug 13, 2015
- Messages
- 7
I have the table located below. The column headers are standardized but do not always appear in the same location. Sometimes Gender is first, sometimes Salary is second etc. I want to be able to Average the salary column for all class 1 people that have a unique Employee ID. How do I reference standardized column header names that appear in dynamic locations? (essentially I want to do where row 1 says salary, average that column if unique employee id)
[TABLE="width: 500"]
<tbody>[TR]
[TD]Employee ID
[/TD]
[TD]Class
[/TD]
[TD]Salary
[/TD]
[TD]Gender
[/TD]
[/TR]
[TR]
[TD]115489422478
[/TD]
[TD]1
[/TD]
[TD]50000
[/TD]
[TD]M
[/TD]
[/TR]
[TR]
[TD]216577849874
[/TD]
[TD]1
[/TD]
[TD]75000
[/TD]
[TD]F
[/TD]
[/TR]
[TR]
[TD]548786330225
[/TD]
[TD]3
[/TD]
[TD]25000
[/TD]
[TD]M
[/TD]
[/TR]
[TR]
[TD]364789512687
[/TD]
[TD]5
[/TD]
[TD]50000
[/TD]
[TD]F
[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 500"]
<tbody>[TR]
[TD]Employee ID
[/TD]
[TD]Class
[/TD]
[TD]Salary
[/TD]
[TD]Gender
[/TD]
[/TR]
[TR]
[TD]115489422478
[/TD]
[TD]1
[/TD]
[TD]50000
[/TD]
[TD]M
[/TD]
[/TR]
[TR]
[TD]216577849874
[/TD]
[TD]1
[/TD]
[TD]75000
[/TD]
[TD]F
[/TD]
[/TR]
[TR]
[TD]548786330225
[/TD]
[TD]3
[/TD]
[TD]25000
[/TD]
[TD]M
[/TD]
[/TR]
[TR]
[TD]364789512687
[/TD]
[TD]5
[/TD]
[TD]50000
[/TD]
[TD]F
[/TD]
[/TR]
</tbody>[/TABLE]
Last edited: