samirsaid123
New member
- Local time
- Today, 22:24
- Joined
- Jan 30, 2007
- Messages
- 2
Hello,
I need help with a problem I have. The case is as follows:
I have two files. File A includes information about employees in respective departments, looking like this:
Month | Year | Total | Department 1 | Department 2 | etc.
12 | 2006 | 10 | 4 | 5 | ....
01 | 2007 | 12 | 6 | 7 | .....
Every month fills a new row in the file.
File B has the following 4 fields:
A1: 100 USD (cost)
A2: Department 1 (text, same as in File A the title of the department)
A3: 01 (month)
A4: 2006 (year)
I would like to run the following operation:
Based on input in A3/A4 the command shall find the respective entry in File A and divide A1 by the total amount of people of that respective month and multiple it by the amount of people of the department specified in A2.
Example: I enter:
A1: 100
A2: Department 1
A3: 12
A4: 2006
The command shall now divide 100 by 14 multiplied by 4. How do I do that?
I need help with a problem I have. The case is as follows:
I have two files. File A includes information about employees in respective departments, looking like this:
Month | Year | Total | Department 1 | Department 2 | etc.
12 | 2006 | 10 | 4 | 5 | ....
01 | 2007 | 12 | 6 | 7 | .....
Every month fills a new row in the file.
File B has the following 4 fields:
A1: 100 USD (cost)
A2: Department 1 (text, same as in File A the title of the department)
A3: 01 (month)
A4: 2006 (year)
I would like to run the following operation:
Based on input in A3/A4 the command shall find the respective entry in File A and divide A1 by the total amount of people of that respective month and multiple it by the amount of people of the department specified in A2.
Example: I enter:
A1: 100
A2: Department 1
A3: 12
A4: 2006
The command shall now divide 100 by 14 multiplied by 4. How do I do that?